/* Super Ridolfo. Páginas legales (privacidad.html y terminos.html). Se carga después de styles.css:
   misma fuente, colores, escala de espacios y escala tipográfica. Una columna de lectura de 720 px.
   Único movimiento: un fundido de entrada (se anula con prefers-reduced-motion en styles.css). */
html { scroll-padding-top: var(--s5); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Cabecera: placa del logo (vuelve al inicio) y enlace "Volver al inicio" */
.legal-top {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s4) var(--gut);
  background: var(--ink); color: var(--white);
}
.legal-top .plate { align-self: center; display: block; width: 64px; padding: var(--s2); border-radius: 12px; }
.back {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: var(--s7);
  font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: -.01em;
  text-decoration: underline 2px transparent; text-underline-offset: .24em;
  transition: text-decoration-color .4s var(--out);
}
.back:hover, .back:focus-visible { text-decoration-color: currentColor; }
.back .ico { width: 20px; height: 20px; transform: scaleX(-1); }

/* Hoja blanca con la columna de lectura */
.legal { background: var(--white); color: var(--ink); padding: var(--s8) var(--gut) var(--sec); }
.legal__col { max-width: 720px; margin-inline: auto; animation: legal-in .7s var(--out) both; }
@keyframes legal-in { from { opacity: 0; transform: translateY(12px); } }

.legal__title {
  font-weight: 800; font-stretch: 62%;
  font-size: clamp(40px, 12vw, 48px); line-height: 1.02; letter-spacing: -.01em;
  text-transform: uppercase; text-wrap: balance;
}
.legal__date { margin-top: var(--s3); font-size: 15px; font-weight: 400; opacity: .7; }
.legal__lead { margin-top: var(--s5); font-size: var(--t1); line-height: 1.35; font-weight: 500; letter-spacing: -.01em; }

/* Índice con anclas */
.toc { margin-top: var(--s7); padding: var(--s5) 0; border-block: 1px solid rgba(11, 31, 18, .16); }
.toc__title { font-weight: 700; font-stretch: 80%; font-size: 15px; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; }
.toc ol { margin: var(--s3) 0 0; padding: 0 0 0 1.5em; }
.toc li { padding: var(--s2) 0; font-weight: 600; line-height: 1.25; }
.toc a, .legal__col p a, .legal__col li li a, .legal__col section li a {
  text-decoration: underline 1px rgba(11, 31, 18, .4); text-underline-offset: .2em;
  transition: text-decoration-color .3s var(--out);
}
.toc a:hover, .toc a:focus-visible, .legal__col p a:hover, .legal__col section li a:hover { text-decoration-color: currentColor; }

/* Secciones */
.legal__col section { margin-top: var(--s8); }
.legal__col h2 {
  margin: 0;
  font-weight: 800; font-stretch: 75%;
  font-size: var(--t2); line-height: 1.14; letter-spacing: -.01em; text-wrap: balance;
}
.legal__col section p { margin-top: var(--s4); }
.legal__col section ul, .legal__col section ol { margin: var(--s4) 0 0; padding-left: 1.3em; }
.legal__col section li { margin-top: var(--s2); }
.legal__col section li::marker { color: var(--orange); font-weight: 700; }
.legal__col strong { font-weight: 700; }
.legal__end { margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid rgba(11, 31, 18, .16); }
.legal__end .back { text-decoration-color: rgba(11, 31, 18, .4); }

@media (min-width: 900px) {
  .legal-top .plate { width: 64px; padding: var(--s2); border-radius: 12px; }
  .legal { padding-top: var(--s9); }
  .legal__title { font-size: var(--t5); line-height: 1; }
  .toc ol { columns: 2; column-gap: var(--s7); }
  .toc li { break-inside: avoid; }
}
