/* Inolvidia · páginas legales (/privacidad y /terminos, §18.1 y §20). Sin JavaScript.
   Marca v2 (/brand/tokens.css): marfil y arena, noche para leer, oro rosa como el hilo. Jost (titulares 300 y texto).
   Lectura larga: cuerpo marfil; cabecera arena con el hilo; pie noche.
   Móvil primero (390×844). Las variables locales apuntan a los --ino-* de /brand/tokens.css (con respaldo). */

:root {
  --ciruela-noche: var(--ino-noche, #1B1630);
  --ciruela: var(--ino-noche, #1B1630);
  --ciruela-suave: var(--ino-texto-suave, #5C5370);
  --malva: var(--ino-niebla, #B9AFC6);
  --marfil: var(--ino-marfil, #FBF6F2);
  --arena: var(--ino-arena, #F3EAE3);
  --lino: var(--ino-linea, #E4D9D1);
  --terracota: var(--ino-oro-rosa, #B06E66);
  --terracota-profunda: var(--ino-oro-rosa-profundo, #94524C);
  --terracota-honda: var(--ino-oro-rosa-profundo-hover, #7E443F);
  --terracota-luz: var(--ino-oro-rosa-luz, #E3B2A4);
  --line: rgba(27, 22, 48, .12);
  --ff-display: var(--font-display, 'Jost', 'Segoe UI', system-ui, sans-serif);
  --ff-body: var(--font-texto, 'Jost', 'Segoe UI', system-ui, sans-serif);
  --hilo-subraya: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M2 12.5C40 9.5 70 4.5 112 4.8 146 5 170 8 198 6' fill='none' stroke='%23B06E66' stroke-width='3' stroke-linecap='butt' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --gutter: 16px;
  --radius: 22px;
  color-scheme: light;
}
@media (min-width: 900px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--marfil); scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.lg {
  margin: 0; min-height: 100vh; background: var(--marfil); color: var(--ciruela);
  font: 400 16px/1.7 var(--ff-body); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--terracota-honda); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ciruela); text-decoration-color: var(--terracota); }
:focus-visible { outline: 3px solid var(--terracota); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ul, ol { margin: 0; }
::selection { background: var(--terracota); color: #fff; }
.lg-wrap { width: min(100% - var(--gutter) * 2, 860px); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 10; padding: 12px 18px; border-radius: 12px; background: var(--ciruela); color: var(--marfil); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ───────── cabecera (arena, con el hilo de la marca) ───────── */
.lg-top {
  position: relative; overflow: hidden; color: var(--ciruela);
  background: var(--arena);
  padding: 18px 0 78px; border-radius: 0 0 30px 30px;
}
.lg-top__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lg-top__brand { display: inline-flex; border-radius: 8px; }
.lg-top__brand img { height: 33px; width: auto; aspect-ratio: 1203 / 260; } /* kit v2: micro de 150 a 260 px */
.lg-top__back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; color: var(--ciruela-suave); font-size: 14px; font-weight: 600; text-decoration: none; }
.lg-top__back:hover { color: var(--ciruela); text-decoration: underline; text-decoration-color: var(--terracota); }
.lg-top__main { position: relative; z-index: 1; margin-top: 36px; }
.lg-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--terracota-honda); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.lg-eyebrow svg { width: 22px; height: 13px; fill: none; stroke: var(--terracota); stroke-width: 2.2; stroke-linecap: round; }
.lg-title { margin-top: 10px; font: 400 clamp(2.1rem, 8vw, 3.4rem)/1.05 var(--ff-display); letter-spacing: -.02em; }
.lg-title em { position: relative; display: inline-block; color: var(--terracota-honda); padding-right: .06em; }
.lg-title em::after { content: ''; position: absolute; left: 0; right: -.04em; bottom: -.1em; height: .18em; background: var(--hilo-subraya) center / 100% 100% no-repeat; }
.lg-lead { margin-top: 14px; max-width: 60ch; color: var(--ciruela-suave); font-size: 16.5px; }
.lg-meta { margin-top: 16px; color: var(--ciruela-suave); font-size: 13.5px; }
/* El hilo cruza la cabecera de borde a borde (sin degradados ni destellos) */
.lg-top__orn { position: absolute; left: 0; right: 0; bottom: 12px; width: 100%; height: 54px; pointer-events: none; }
.lg-top__orn path { fill: none; stroke: var(--terracota); stroke-width: 3; stroke-linecap: butt; vector-effect: non-scaling-stroke; opacity: .85; }

/* ───────── cuerpo ───────── */
.lg-main { padding: 34px 0 20px; }
.lg-summary {
  padding: 22px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(27, 22, 48, .06);
}
.lg-summary h2 { font: 400 1.35rem/1.2 var(--ff-display); }
.lg-summary ul { margin-top: 12px; padding: 0; list-style: none; display: grid; gap: 10px; }
.lg-summary li { position: relative; padding-left: 26px; }
.lg-summary li::before { content: ''; position: absolute; left: 3px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--terracota); }
.lg-toc { margin-top: 26px; padding: 18px 20px; border-radius: var(--radius); background: var(--arena); }
.lg-toc h2 { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--terracota-honda); }
.lg-toc ol { margin-top: 10px; padding-left: 22px; display: grid; gap: 4px; }
.lg-toc a { color: var(--ciruela); text-decoration: none; font-weight: 600; font-size: 15px; }
.lg-toc a:hover { text-decoration: underline; text-decoration-color: var(--terracota); }
@media (min-width: 720px) { .lg-toc ol { grid-template-columns: 1fr 1fr; column-gap: 32px; } }

.lg-sec { margin-top: 40px; }
.lg-sec h2 { font: 400 clamp(1.45rem, 5vw, 1.8rem)/1.2 var(--ff-display); letter-spacing: -.01em; color: var(--ciruela); }
.lg-sec h2 .n { color: var(--terracota-profunda); margin-right: .25em; }
.lg-sec h3 { margin-top: 22px; font-size: 1.02rem; font-weight: 600; color: var(--ciruela); }
.lg-sec p, .lg-sec ul, .lg-sec ol { margin-top: 12px; }
.lg-sec ul, .lg-sec ol { padding-left: 22px; }
.lg-sec li + li { margin-top: 6px; }
.lg-sec strong { color: var(--ciruela); }
.lg-note { margin-top: 14px; padding: 14px 16px; border-left: 3px solid var(--terracota); border-radius: 0 14px 14px 0; background: rgba(243, 234, 227, .7); font-size: 15px; }
.lg-todo { padding: 1px 6px; border-radius: 6px; background: rgba(176, 110, 102, .14); color: var(--terracota-honda); font-weight: 600; font-size: .92em; }

/* Tablas: en móvil cada fila es una tarjeta */
.lg-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 15px; }
.lg-table th, .lg-table td { text-align: left; vertical-align: top; padding: 12px 14px; }
.lg-table thead th { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ciruela-suave); border-bottom: 2px solid var(--line); }
.lg-table tbody td { border-bottom: 1px solid var(--line); }
.lg-table tbody td:first-child { font-weight: 600; color: var(--ciruela); }
@media (max-width: 719px) {
  .lg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lg-table, .lg-table tbody, .lg-table tr, .lg-table td { display: block; width: 100%; }
  .lg-table tr { margin-top: 12px; padding: 6px 0; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
  .lg-table tbody td { border: 0; padding: 6px 16px; }
  .lg-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ciruela-suave); }
}

/* Derechos por país */
.lg-countries { margin-top: 16px; display: grid; gap: 12px; }
@media (min-width: 720px) { .lg-countries { grid-template-columns: 1fr 1fr; } }
.lg-country { padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.lg-country h3 { margin: 0; font-size: 1rem; }
.lg-country p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; }

/* Planes (términos) */
.lg-plans { margin-top: 16px; display: grid; gap: 12px; }
@media (min-width: 720px) { .lg-plans { grid-template-columns: repeat(3, 1fr); } }
.lg-plan { padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.lg-plan h3 { margin: 0; font: 400 1.25rem/1.2 var(--ff-display); }
.lg-plan p { margin-top: 6px; font-size: 14.5px; line-height: 1.6; }

/* ───────── pie (ciruela) ───────── */
.lg-foot { margin-top: 56px; padding: 30px 0 calc(34px + env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0; background: var(--ciruela); color: rgba(251, 246, 242, .76); font-size: 14px; }
.lg-foot a { color: rgba(251, 246, 242, .86); }
.lg-foot a:hover { color: var(--marfil); text-decoration-color: var(--terracota-luz); }
.lg-foot :focus-visible { outline-color: var(--terracota-luz); }
.lg-foot__logo { display: block; height: 36px; width: auto; aspect-ratio: 1203 / 260; margin-bottom: 18px; }
.lg-foot__nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.lg-foot__nav a { text-decoration: none; font-weight: 600; }
.lg-foot__nav a[aria-current='page'] { color: var(--terracota-luz); }
.lg-foot__copy { margin-top: 14px; font-size: 13px; color: var(--malva); }
.lg-review {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: 16px;
  background: rgba(227, 178, 164, .12); border: 1px solid rgba(227, 178, 164, .45); color: var(--marfil); font-size: 14px; line-height: 1.55;
}
.lg-review svg { flex: none; width: 20px; height: 20px; margin-top: 1px; stroke: var(--terracota-luz); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lg-review strong { color: #fff; }

@media print {
  .lg-top, .lg-foot { border-radius: 0; background: #fff; color: #000; }
  .lg-top__orn, .lg-top__back, .skip { display: none; }
  .lg-title em { color: #000; }
  .lg-title em::after { display: none; }
  .lg-review { color: #000; border-color: #000; }
}

/* Kit v2: el énfasis de los titulares va recto (Jost no se inclina) y en color */
.lg-title em { font-style: normal; }
