/* Páginas legales (terminos.html, privacidad.html, contacto.html): sobrias, legibles y sin
   recursos externos. Se sirven en /terminos, /privacidad, /contacto y /creditos, con rutas
   absolutas desde la raíz (/legal.css, /assets/…): docs/online/RUTAS-Y-SEO.md. */
:root {
  --fondo: #0a0914;
  --papel: #15121f;
  --texto: #f5efe0;
  --suave: #c9c0ad;
  --oro: #d4af37;
  --oro-claro: #f2d77a;
  --borde: #3a2f1c;
  --aviso: #3b1d12;
  --aviso-borde: #c0672e;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --fondo: #f6f1e4;
    --papel: #fffdf7;
    --texto: #221c12;
    --suave: #5c5240;
    --oro: #8a6512;
    --oro-claro: #6b4c0a;
    --borde: #e0d3b2;
    --aviso: #fdebdd;
    --aviso-borde: #c0672e;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 16px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 32px 16px 64px;
}
header.legal {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
header.legal img { width: 40px; height: 40px; }
header.legal a { color: var(--oro-claro); text-decoration: none; font-weight: 600; letter-spacing: .02em; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.25; color: var(--oro-claro); }
h1 { font-size: 2rem; margin: 0 0 8px; }
h2 { font-size: 1.3rem; margin: 40px 0 8px; padding-top: 16px; border-top: 1px solid var(--borde); }
h3 { font-size: 1.05rem; margin: 24px 0 4px; }
p, li { color: var(--texto); }
.suave, small { color: var(--suave); }
a { color: var(--oro-claro); }
ul { padding-left: 1.25rem; }
li + li { margin-top: 4px; }
.borrador {
  background: var(--aviso);
  border: 1px solid var(--aviso-borde);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0 24px;
}
.borrador strong { color: var(--texto); }
mark.pendiente {
  background: transparent;
  color: var(--aviso-borde);
  font-weight: 600;
}
.tabla { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--borde); }
th { color: var(--oro-claro); font-weight: 600; }
nav.indice { background: var(--papel); border: 1px solid var(--borde); border-radius: 8px; padding: 12px 16px; }
nav.indice ol { margin: 0; padding-left: 1.25rem; }
footer.legal { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--borde); font-size: .9rem; color: var(--suave); }
footer.legal a { margin-right: 16px; }

/* Selector de idioma (i18n.js) en la cabecera de las páginas legales. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.idioma-legal { margin-left: auto; }
.idioma-legal select { min-height: 40px; padding: 6px 10px; border: 1px solid var(--borde); border-radius: 8px; background: transparent; color: inherit; font: inherit; }
