/* Estudios Védicos, aviso-legal v2 (session 11, 24 Nov 2026): the page's own layer, on page/v2-base.css.
   Seeded from the theme's sections-legal.css and restyled to home v2's language, section by section. It serves
   the legal template, so the privacy, cookies and purchase terms pages read it too (their lists and tables are
   styled here). Same text, word for word.
   Round 2 (26 Nov 2026, Ben's notes 28 to 37):
   - the title band is one centred head at every width, its gaps on the one ratio (notes 28, 29);
   - the reading frame is body copy, so all of it reads left at every width: the contents sheet, the clauses and
     the facts (note 29: left for body copy over 3 lines, never both in one block);
   - no leaf marks on the contents or on lists (note 32); the five facts sit in the table rows the privacy and
     cookies tables use, one design for data rows (notes 28, 37), so no fact is left alone on a row;
   - the other legal pages are the locked icons band row (note 39, row 60: a small band, its heading with no
     extra line), each page with a drawn icon that moves (note 30); the desk photograph went with the old split
     (note 35: it belonged to no block);
   - gaps on --g1, --g2, --g3 and the band padding (note 28).
   Every colour is a token from v2-base.css. Mobile first. */

/* Line icon of the title band: home v2's 1.5 stroke */
.lgl-hero__icon svg [stroke] { stroke-width: 1.5; }

/* ---------------------------------------------------------------- 1. Title band: the classroom under home v2's shade */
.lgl-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: var(--paper); padding: clamp(72px, 10vh, 112px) 0; }
.lgl-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; z-index: -2; filter: sepia(.14) saturate(.92) contrast(1.04); }
.lgl-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, color-mix(in srgb, var(--ink) 90%, transparent) 0%, color-mix(in srgb, var(--ink) 76%, transparent) 100%); }
.lgl-hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lgl-hero__icon { display: flex; color: var(--saffron); margin-bottom: var(--g2); }
.lgl-hero__icon svg { width: 40px; height: 40px; overflow: visible; }
.lgl-hero__title { margin: 0; max-width: 920px; color: var(--paper); font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4.5rem); line-height: 1; letter-spacing: -0.02em; font-variation-settings: "opsz" 144; text-wrap: balance; }
.lgl-hero__lead { max-width: 760px; margin: var(--g1) 0 0; font-size: var(--fs-lead); line-height: 1.5; color: var(--paper); text-wrap: pretty; }
.lgl-hero__date { margin: var(--g2) 0 0; font-size: var(--fs-small); font-weight: 600; color: var(--sage-l); }
/* The shade is even across the band at every width (the head is centred, so no side carries the words). */
/* Entrance, this section's own: the notice is written. The document icon draws its page, folds its corner and
   writes its three lines; the title and the line arrive as it writes, the date comes last; the photograph settles. */
.lgl-hero__bg { animation: lgl-settle 1.6s var(--ease) both; }
@keyframes lgl-settle { from { transform: scale(1.06); } to { transform: none; } }
.lgl-hero__icon path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: lgl-write .75s var(--ease) .1s forwards; }
.lgl-hero__icon path:nth-child(2) { stroke-dasharray: 9; stroke-dashoffset: 9; animation-duration: .3s; animation-delay: .7s; }
/* The three lines are one path of three strokes: a dash longer than all three (17) shows them whole in every browser */
.lgl-hero__icon path:nth-child(3) { stroke-dasharray: 18; stroke-dashoffset: 18; animation-duration: .65s; animation-delay: .9s; }
@keyframes lgl-write { to { stroke-dashoffset: 0; } }
.lgl-hero__title, .lgl-hero__lead { animation: lgl-arrive .8s var(--ease) both; }
.lgl-hero__title { animation-delay: .2s; }
.lgl-hero__lead { animation-delay: .38s; }
@keyframes lgl-arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.lgl-hero__date { animation: lgl-fade .5s ease 1.05s both; }
@keyframes lgl-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------- 2. The text: one reading frame, left at every width */
.lgl-frame { max-width: 46rem; margin: 0 auto; text-align: left; }

/* The contents, open, on home v2's paper sheet: the page's clauses as plain links (their numbers are part of the
   clause titles' text), no marks; the copper line draws under the link you point at. */
.lgl-toc { margin: 0 0 var(--g3); padding: clamp(24px, 3.2vw, 44px); background-color: var(--paper); background-image: var(--noise), var(--surface-paper); background-blend-mode: soft-light, normal; border-radius: var(--rm); box-shadow: var(--pop); }
.lgl-toc__title { margin: 0 0 var(--g1); font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--forest); font-variation-settings: "opsz" 72; }
.lgl-toc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.lgl-toc__link { display: inline-block; padding: 6px 0; color: var(--text); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 5px; line-height: 1.4; transition: text-decoration-color .25s ease, color .25s ease; }
.lgl-toc__link:hover, .lgl-toc__link:focus-visible { color: var(--forest); text-decoration-color: var(--copper); }

/* The clauses: a readable measure, Fraunces titles, the Spanish term under each one. */
.lgl-doc { min-width: 0; }
.lgl-clause { scroll-margin-top: var(--s-4); }  /* the base's scroll-padding-top already keeps the header clear */
.lgl-clause + .lgl-clause { margin-top: var(--g3); }
.lgl-clause__title { margin: 0; font-size: clamp(1.625rem, 1.35rem + 1vw, 2.125rem); font-variation-settings: "opsz" 72; line-height: 1.15; letter-spacing: -0.01em; color: var(--forest); text-wrap: balance; }
.lgl-clause__es { margin: 4px 0 var(--g2); font-family: var(--fd); font-size: var(--fs-body); font-style: italic; font-variation-settings: "opsz" 36; color: var(--muted); }
.lgl-p { margin: 0; font-size: var(--fs-body); line-height: 1.7; color: var(--text); }
.lgl-doc .lgl-clause > * + .lgl-p, .lgl-doc .lgl-clause > .lgl-p + * { margin-top: var(--g2); }
.lgl-doc .lgl-clause > .lgl-clause__es + * { margin-top: 0; }
.lgl-p a, .lgl-list a, .lgl-facts a, .lgl-table a, .lgl-more__contact a { color: var(--forest); font-weight: 600; text-decoration-color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lgl-p a:hover, .lgl-list a:hover, .lgl-facts a:hover, .lgl-table a:hover, .lgl-more__contact a:hover { text-decoration-thickness: 2px; }
/* A link in the running text or a list may be a full address (the cookie policy's Google and browser help pages):
   it wraps inside the line on a phone instead of pushing the page sideways. Text links only: in the facts and tables
   the value cell already wraps, and a table's column widths must not change. */
.lgl-p a, .lgl-list a { overflow-wrap: anywhere; }

/* Lists (privacy, cookies, purchase terms): plain lines spaced as paragraphs, no marks (note 32). */
.lgl-list { list-style: none; margin: var(--g2) 0 0; padding: 0; display: grid; gap: var(--g1); }
.lgl-list li { font-size: var(--fs-body); line-height: 1.65; }

/* Facts and tables share one design: rows on a bone tint and paper by turns, no lines. The tint is bone-2 eased
   into paper, so the odd rows still show where the paper band turns to bone at its foot. The term (with its
   Spanish name under it) on the left, the value beside it from 768 px, under it on a phone. */
.lgl-facts { margin: var(--g2) 0 0; display: grid; }
.lgl-facts__item { display: grid; gap: 4px; padding: var(--g1) var(--s-4); border-radius: var(--r); }
.lgl-facts__item:nth-child(odd), .lgl-table tbody tr:nth-child(odd) { background: color-mix(in srgb, var(--bone-2) 62%, var(--paper)); }
.lgl-facts__t { font-weight: 700; font-size: var(--fs-body); line-height: 1.4; color: var(--forest); }
.lgl-facts__es { display: block; font-size: var(--fs-small); font-weight: 400; font-style: italic; color: var(--muted); }
.lgl-facts__v { margin: 0; font-size: var(--fs-body); line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }

.lgl-table { width: 100%; border-collapse: collapse; margin: var(--g2) 0 0; font-size: var(--fs-small); line-height: 1.45; }
.lgl-table thead { display: none; }
.lgl-table tr { display: grid; gap: 6px; padding: var(--g1) var(--s-4); border-radius: var(--r); }
.lgl-table th, .lgl-table td { display: block; padding: 0; text-align: inherit; font-weight: 400; }
.lgl-table .lgl-table__name { font-weight: 700; color: var(--forest); font-size: var(--fs-body); overflow-wrap: anywhere; }
.lgl-table__lab { display: block; font-size: .8125rem; color: var(--muted); }
.lgl-table__val { display: block; }

@media (min-width: 768px) {
  .lgl-toc__list { grid-template-columns: 1fr 1fr; column-gap: var(--g2); }
  .lgl-facts__item { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: var(--g2); align-items: baseline; }
  .lgl-table thead { display: table-header-group; }
  .lgl-table tr { gap: var(--s-4); padding: var(--g1) var(--s-4); align-items: baseline; }
  .lgl-table--c4 tr { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1fr); }
  .lgl-table--c3 tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.7fr); }
  .lgl-table thead th { font-weight: 700; color: var(--forest); font-size: var(--fs-small); }
  .lgl-table .lgl-table__name { font-size: var(--fs-small); }
  .lgl-table__lab { display: none; }
}
/* Entrance, this section's own and quiet: the contents sheet is laid onto the page (it comes down from a little
   above the paper, its shadow drawing in close), then its six entries list themselves in reading order, by
   opacity alone. The legal text below never moves. */
.lgl-toc { animation: lgl-lay .9s var(--ease) .3s both; }
@keyframes lgl-lay { from { opacity: 0; transform: scale(1.025); box-shadow: 0 56px 90px -30px transparent; } to { opacity: 1; transform: none; box-shadow: var(--pop); } }
.lgl-toc__list > li { animation: lgl-fade .45s ease both; }
.lgl-toc__list > li:nth-child(1) { animation-delay: .7s; }
.lgl-toc__list > li:nth-child(2) { animation-delay: .78s; }
.lgl-toc__list > li:nth-child(3) { animation-delay: .86s; }
.lgl-toc__list > li:nth-child(4) { animation-delay: .94s; }
.lgl-toc__list > li:nth-child(5) { animation-delay: 1.02s; }
.lgl-toc__list > li:nth-child(n+6) { animation-delay: 1.1s; }

/* ---------------------------------------------------------------- 3. The other legal pages: the locked icons band row */
/* The band takes the one compact step (.band--snug) and the locked row (.curious__row from v2-sections.css). Each
   page: its drawn icon, its name as the link, the Spanish name and one line, centred; on a phone the locked row's
   own form (icon beside the words). The contact line is the band's foot, centred. */
.lgl-more .curious__row { align-items: stretch; }
.lgl-more__words { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lgl-more .curious__row .lgl-more__name { margin: 0; }
.lgl-more__name a { color: var(--forest); text-decoration: underline; text-decoration-color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.lgl-more__name a:hover, .lgl-more__name a:focus-visible { text-decoration-thickness: 2px; }
.lgl-more__es { font-family: var(--fd); font-size: var(--fs-body); font-style: italic; font-variation-settings: "opsz" 36; color: var(--muted); }
.lgl-more__blurb { margin-top: 4px; max-width: 18rem; font-size: var(--fs-body); line-height: 1.5; color: var(--text); text-wrap: balance; }
.lgl-more__contact { margin: var(--g3) auto 0; max-width: 48rem; text-align: center; font-size: var(--fs-body); line-height: 1.55; color: var(--text); text-wrap: balance; }
@media (max-width: 767.98px) {
  .lgl-more .curious__row li { align-items: flex-start; }  /* the icon stands level with the page's name, not mid block */
  .lgl-more__words { align-items: flex-start; }
  .lgl-more .curious__row { gap: var(--g2); }
}
/* Entrance, this section's own: the three pages are filed one after another. Each icon draws in (the set's own
   draw, then its one move: the lock clicks shut, the cookie is taken, the card lifts), and its words come up
   from under it as it finishes; the contact line comes last. */
.js .lgl-more[data-in] .lgl-more__words { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .6s var(--ease); }
.js .lgl-more[data-in] .lgl-more__contact { opacity: 0; transition: opacity .5s ease 1.5s; }
.js .lgl-more[data-in] li:nth-child(1) .lgl-more__words { transition-delay: .7s; }
.js .lgl-more[data-in] li:nth-child(2) .lgl-more__words { transition-delay: .9s; }
.js .lgl-more[data-in] li:nth-child(3) .lgl-more__words { transition-delay: 1.1s; }
.js .lgl-more.is-in .lgl-more__words, .js .lgl-more.is-in .lgl-more__contact { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .lgl-hero__bg, .lgl-hero__title, .lgl-hero__lead, .lgl-hero__date, .lgl-toc, .lgl-toc__list > li { animation: none; }
  .lgl-hero__icon path, .lgl-hero__icon path:nth-child(n) { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .lgl-more[data-in] .lgl-more__words, .js .lgl-more[data-in] .lgl-more__contact { opacity: 1; transform: none; transition: none; }
}
