/* Páginas legales (privacidad, términos y sus versiones en inglés). Mismo sistema
   que la landing: marino de la marca + lima de acción, lectura cómoda en claro y
   oscuro. El contenido legal no depende de este archivo: solo su presentación. */
:root {
  --bg: #f6f5ef;
  --surface: #ffffff;
  --ink: #12142a;
  --muted: #5a5e72;
  --line: #e4e2d8;
  --accent: #4a2fbd;
  --th: #efede4;
  --header: #05071a;
  --header-ink: #f4f5fb;
  --maxw: 760px;
  --fs: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #05071a;
    --surface: #0f1330;
    --ink: #eceef8;
    --muted: #a5a9c2;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #c1ef43;
    --th: #141838;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--fs);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(5, 7, 26, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
header.site .wrap { display: flex; align-items: center; gap: 0.6rem; height: 60px; }
.brand { font-weight: 700; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand a { color: var(--header-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand a::before {
  content: ""; width: 28px; height: 28px; border-radius: 8px;
  background: url("/media/icon-256.webp") center / cover no-repeat;
}
header.site nav { margin-left: auto; font-size: 0.92rem; display: flex; gap: 1.1rem; }
header.site nav a { color: #b9bdd4; text-decoration: none; margin: 0; transition: color 160ms var(--ease-out); }
header.site nav a:hover { color: #ffffff; }

main { padding: 56px 0 88px; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0.2em 0 0.3em; font-weight: 800; }
h2 { font-size: 1.3rem; letter-spacing: -0.015em; margin: 2.6em 0 0.5em; padding-top: 1.2em; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
h3 { font-size: 1.05rem; margin: 1.6em 0 0.4em; }
.meta { color: var(--muted); font-size: 0.9rem; margin: 0.2em 0 1.8em; }
.lead { color: var(--muted); font-size: 1.08rem; }

a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid #22e5ff; outline-offset: 3px; border-radius: 4px; }
code { font-size: 0.9em; background: var(--th); padding: 0.1em 0.35em; border-radius: 5px; }

table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.2em 0; font-size: 0.94rem; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--th); font-weight: 600; }
@media (max-width: 640px) {
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

ul, ol { padding-left: 1.3em; }
li { margin: 0.35em 0; }

.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  margin: 1.4em 0;
}

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; padding: 28px 0 40px; }
footer.site a { color: var(--muted); }

@media print {
  header.site { position: static; background: none; }
  .brand a, header.site nav a { color: #000; }
  body { background: #fff; color: #000; }
}
