/*
 * Tell Andrew — Páginas legales, borrado, acceso y 404.
 * Unificada con el lenguaje visual de portada.css («mezcla», 2026-10-28):
 * fondo negro #07080d, superficies #101119, tipografía Geist variable local y acento oro #f3d37a.
 * Conserva las clases de las copias legales archivadas (condiciones-1.x, privacidad-2.x).
 */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(./assets/fonts/geist-variable.woff2) format('woff2');
}

:root {
  color-scheme: dark;
  --fondo: #07080d;
  --superficie: #101119;
  --superficie-2: #161826;
  --tinta: #f4f4f7;
  --gris: #b2b3c2;
  --tenue: #9496a8;
  --ambar: #f3d37a;
  --linea: rgb(255 255 255 / .08);
  --borde-fuerte: rgb(255 255 255 / .2);
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 640; margin: 0; letter-spacing: -0.035em; text-wrap: balance; color: var(--tinta); }
p { margin: 0; }
em { font-style: normal; color: var(--ambar); }
:focus-visible { outline: 2px solid var(--ambar); outline-offset: 3px; border-radius: 8px; }

.envoltura { width: min(1160px, 100% - 40px); margin: 0 auto; }
.etiqueta { font-size: 12px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ambar); font-weight: 600; }
.suave { color: var(--gris); }
.nota { font-size: 13px; color: var(--tenue); }

/* Botones (píldora, como en la portada) */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 560; font-size: 16px; letter-spacing: -0.01em;
  text-decoration: none; transition: transform 0.2s ease, background-color 0.2s ease;
}
.boton:hover { transform: translateY(-1px); }
.boton-ambar { background: var(--tinta); color: var(--fondo); }
.boton-cristal { background: transparent; border: 1px solid var(--borde-fuerte); color: var(--tinta); }
.boton-cristal:hover { background: rgb(255 255 255 / .06); }

/* Cabecera (barra fina de cristal oscuro, a juego con portada.css) */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(7 8 13 / .84);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--linea);
}
.cabecera { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; }
.marca img { width: 26px; height: 26px; border-radius: 7px; }
.menu { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.menu a { text-decoration: none; color: #cdcdd9; }
.menu a:hover { color: var(--tinta); }
.menu .boton { min-height: 34px; padding: 7px 14px; font-size: 14px; border-radius: 999px; color: var(--fondo); background: var(--tinta); }
.menu .boton:hover { color: var(--fondo); }
.mobile-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.mobile-toggle span { display: block; height: 2px; background: var(--tinta); margin: 5px 0; border-radius: 2px; }

/* Páginas legales: texto largo en una columna de lectura limpia */
.legal-content { padding: 56px 0 0; }
.container-legal { width: min(760px, 100% - 40px); margin: 0 auto; }
.legal-header { padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--linea); }
.legal-header h1 { font-size: clamp(38px, 6vw, 64px); line-height: 0.98; letter-spacing: -0.045em; }
.legal-meta { margin-top: 14px; font-size: 13.5px; color: var(--tenue); }
.legal-box-highlight {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; padding: 24px 28px;
  border-radius: 22px; background: linear-gradient(160deg, var(--superficie-2), var(--superficie) 70%);
  border: 1px solid var(--borde-fuerte);
}
.privacy-index { display: flex; flex-wrap: wrap; gap: 8px; }
.privacy-index a {
  font-size: 13.5px; text-decoration: none; color: var(--gris);
  border: 1px solid var(--borde-fuerte); border-radius: 999px; padding: 7px 14px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.privacy-index a:hover { color: var(--tinta); background: rgb(255 255 255 / .06); }
.legal-content section { display: flex; flex-direction: column; gap: 14px; padding-top: 40px; scroll-margin-top: 76px; }
.legal-content h2 { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.12; letter-spacing: -0.035em; }
.legal-content h3 { font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.legal-content p, .legal-content li { color: var(--gris); }
.legal-content strong { color: var(--tinta); font-weight: 600; }
.legal-content ul, .legal-content ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-content a:not(.boton):not(.privacy-index a) { color: var(--ambar); }
.legal-content details { margin-top: 12px; border-top: 1px solid var(--linea); padding-top: 14px; }
.legal-content summary { cursor: pointer; color: var(--tinta); font-weight: 560; }
.legal-content details ul { margin-top: 12px; }

/* Pie */
.pie {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 40px 0 56px; margin-top: 80px; border-top: 1px solid var(--linea);
  font-size: 14px; color: var(--tenue);
}
.pie nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.pie a { color: var(--tinta); }

/* Móvil */
@media (max-width: 1024px) {
  .mobile-toggle { display: block; }
  .menu {
    display: none; position: absolute; top: 58px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px;
    background: rgb(7 8 13 / .97); border-bottom: 1px solid var(--linea);
  }
  .menu.is-open { display: flex; }
  .menu li a { display: block; padding: 12px 0; }
  .menu .boton { margin-top: 8px; text-align: center; }
}
@media (max-width: 759px) {
  body { font-size: 16px; }
  .legal-content { padding-top: 40px; }
  .legal-box-highlight { padding: 20px 22px; }
}
