/* Páginas legales (privacidad.html y aviso-legal.html): cabecera mínima y una columna de texto.
   Usa los tokens y la base de base.css. */
.legal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h);
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2), env(safe-area-inset-left), env(safe-area-inset-right));
  border-bottom: 1px solid var(--line-soft);
}
.legal-back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 0.9375rem; font-weight: 500; color: var(--text-2); text-decoration: none;
  transition: color 0.25s var(--ease-out), transform 0.16s var(--ease-out);
}
.legal-back:active { transform: scale(0.97); }
.legal-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.legal { max-width: 720px; margin-inline: auto; padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(64px, 9vw, 112px); }
.legal h1 { font-size: var(--fs-h2-xl); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.legal-date { margin-top: 14px; font-size: var(--fs-small); color: var(--text-2); }
.legal h2 { margin-top: clamp(36px, 4vw, 48px); font-size: 1.375rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.legal p, .legal li { margin-top: 12px; color: var(--text-2); line-height: 1.65; text-wrap: pretty; }
.legal ul { padding-left: 20px; list-style: disc; }
.legal li::marker { color: var(--human); }
.legal strong { color: var(--text); font-weight: 700; }
.legal a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }

.legal-footer { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); font-size: var(--fs-small); color: var(--text-2); }
.legal-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.legal-footer a { color: var(--text-2); text-decoration: none; }
.legal-footer a[aria-current="page"] { color: var(--text); }

@media (hover: hover) and (pointer: fine) {
  .legal-back:hover, .legal-footer a:hover { color: var(--text); }
  .legal a:hover { text-decoration-color: currentColor; }
}

/* «Preferencias de cookies» (abre el aviso de js/cookies.js) con aspecto de enlace. */
.legal-cookies { padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.legal-cookies-inline { color: var(--text); }
