/* The legal pages (terminos.html, privacidad.html), generated from page.html.
   Same Bosque look as index.html: the tokens, topbar, lockup and footer below
   repeat its inline CSS, so a change to one of those goes in both places. */
:root {
  --bosque: #0F2419;
  --pino: #234430;
  --musgo: #3F7A2E;
  --hoja: #8CC43A;
  --lima: #D4FF2E;
  --helecho: #2B6B3E;
  --neblina: #EEF3EC;
  --blanco: #FFFFFF;

  --tinta: #0F2419;
  --tinta-suave: #4E6255;
  --borde: #DBE4D9;
  --banda-texto: #EEF3EC;
  --banda-suave: #B9CBBE;
  --banda-tenue: #8BA493;
  --capa: #15301F;

  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-card: 20px;
  --r-sheet: 28px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --doc: 780px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bosque);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--helecho); outline-offset: 3px; border-radius: 8px; }
.sheet--banda :focus-visible { outline-color: var(--lima); }

.i { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ── Sheets ── */
.sheet { position: relative; overflow: clip; }
.sheet + .sheet { margin-top: calc(-1 * var(--r-sheet)); border-radius: var(--r-sheet) var(--r-sheet) 0 0; }
.sheet--banda { background: var(--bosque); color: var(--banda-texto); }
.sheet--claro { background: var(--neblina); color: var(--tinta); }

.stripes { position: absolute; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.stripes i { display: block; height: 7px; border-radius: 999px 0 0 999px; }
.stripes i:nth-child(1) { width: 100%; background: var(--pino); }
.stripes i:nth-child(2) { width: 68%; background: var(--helecho); }
.stripes i:nth-child(3) { width: 40%; background: var(--musgo); }
.stripes--right { right: 0; align-items: flex-end; }

/* ── Lockup + topbar ── */
.lockup { display: inline-flex; align-items: center; gap: 8px; color: var(--banda-texto); text-decoration: none; }
.mark { display: inline-flex; align-items: center; }
.mark i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.mark i:nth-child(1) { background: var(--musgo); }
.mark i:nth-child(2) { background: var(--hoja); margin-left: -16px; }
.mark i:nth-child(3) { background: var(--lima); margin-left: -16px; color: var(--bosque); }
.mark .i { width: 15px; height: 15px; stroke-width: 3.5; }
.wordmark { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 125%; font-size: 23px; line-height: 1; letter-spacing: -0.04em; }
.topbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.btn-lima {
  display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px;
  background: var(--lima); color: var(--bosque); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease;
}
.btn-lima:active { transform: scale(.98); }

/* ── Band: label, title, date and the switch between the two documents.
   Lined up with the document card below, not with the topbar. ── */
.doc-banda { padding-bottom: calc(clamp(48px, 6vw, 72px) + var(--r-sheet)); }
.doc-banda > .stripes { top: 132px; width: clamp(120px, 20vw, 280px); }
.doc-cabeza {
  position: relative; display: grid; gap: 14px; justify-items: start;
  width: min(var(--doc), 100% - 2 * var(--gutter)); margin-inline: auto; padding-top: clamp(28px, 5vw, 56px);
}
.etiqueta { margin: 0; font-size: 14px; line-height: 18px; font-weight: 500; letter-spacing: .01em; color: var(--hoja); }
.titulo {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(31px, 4.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.doc-fecha { margin: 0; font-size: 15px; color: var(--banda-suave); }
.doc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.doc-nav a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--pino); color: var(--banda-suave); font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.doc-nav a:hover { background: var(--capa); color: var(--banda-texto); }
.doc-nav a[aria-current="page"] { background: var(--neblina); border-color: var(--neblina); color: var(--bosque); }

/* ── The document: one white card on the Neblina sheet, sections split by hairlines ── */
.doc-hoja { padding-block: clamp(40px, 6vw, 72px) calc(clamp(64px, 8vw, 104px) + var(--r-sheet)); }
.doc {
  width: min(var(--doc), 100% - 2 * var(--gutter)); margin-inline: auto;
  padding: clamp(22px, 5vw, 56px); background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--r-card);
  font-size: clamp(16px, 1.4vw, 17px); line-height: 1.65; color: var(--tinta-suave); text-wrap: pretty;
}
.doc-intro { margin: 0 0 28px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--tinta); }
.doc section { padding-block: 28px; border-top: 1px solid var(--borde); scroll-margin-top: 24px; }
.doc section:last-child { padding-bottom: 0; }
.doc h2 { margin: 0 0 12px; font-size: clamp(19px, 1.8vw, 21px); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; color: var(--tinta); }
.doc h3 { margin: 22px 0 8px; font-size: 17px; line-height: 1.35; font-weight: 600; color: var(--tinta); }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 1.25em; display: grid; gap: 8px; }
.doc li::marker { color: var(--musgo); }
.doc p:last-child, .doc ul:last-child, .doc ol:last-child { margin-bottom: 0; }
.doc strong { color: var(--tinta); font-weight: 600; }
.doc a { color: var(--tinta); font-weight: 600; text-decoration-color: var(--musgo); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc a:hover { text-decoration-color: var(--helecho); }

/* ── Footer (same as index.html's) ── */
.pie { padding-block: clamp(48px, 6vw, 72px) 40px; }
.footer { display: grid; gap: 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-marca { display: grid; gap: 12px; max-width: 22em; }
.footer-marca p { margin: 0; color: var(--banda-suave); }
.footer-cols { display: flex; gap: clamp(32px, 6vw, 72px); flex-wrap: wrap; }
.footer-cols div { display: grid; gap: 10px; align-content: start; }
.footer-cols h3 { margin: 0 0 4px; font-size: 14px; font-weight: 500; color: var(--hoja); }
.footer-cols a { color: var(--banda-suave); text-decoration: none; overflow-wrap: anywhere; }
.footer-cols a:hover { color: var(--banda-texto); text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { display: grid; gap: 8px; font-size: 13px; line-height: 1.55; color: var(--banda-tenue); }
.footer-legal p { margin: 0; max-width: 72em; }

@media (max-width: 639px) {
  .doc-banda > .stripes { display: none; }
  .btn-lima { height: 40px; padding: 0 16px; font-size: 14px; }
}
@media (max-width: 359px) {
  .btn-lima { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
