/* Shared style of the static legal pages (/privacidad.html, /aviso-legal.html,
   /condiciones.html and their /en/ versions). Plain HTML + this file: they read
   without JS and load nothing from third parties (fonts are self-hosted). */
:root {
  --ink-black: #050507;
  --ink-surface: #111116;
  --ink-hairline: #2a2a35;
  --paper: #ecedf0;
  --paper-dim: #b8b9c0;
  --gold: #d4b776;
  --gold-soft: rgba(212, 183, 118, 0.14);
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;
  --font-label: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --ink-black: #f6f3ec;
    --ink-surface: #ece7dc;
    --ink-hairline: #d6cfbf;
    --paper: #1b1a17;
    --paper-dim: #54503f;
    --gold: #8a6a1f;
    --gold-soft: rgba(138, 106, 31, 0.12);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink-black);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 780px; margin: 0 auto; padding: 1.25rem 1rem 4rem; }

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ink-hairline);
  margin-bottom: 2.25rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
}
.doc-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; font-family: var(--font-label); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; }
.doc-nav a { color: var(--paper-dim); text-decoration: none; padding: 0.3rem 0; }
.doc-nav a:hover { color: var(--gold); }
.doc-nav a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.doc-nav .lang { color: var(--paper); border: 1px solid var(--ink-hairline); border-radius: 999px; padding: 0.3rem 0.75rem; }

h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.15; margin: 0 0 0.35rem; }
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--gold);
  margin: 2.4rem 0 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--ink-hairline);
  scroll-margin-top: 1rem;
}
h3 { font-size: 1rem; margin: 1.4rem 0 0.4rem; }
.updated { color: var(--paper-dim); font-size: 0.92rem; margin: 0 0 1.75rem; }
.lead { font-size: 1.05rem; }

a { color: var(--gold); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
ul, ol { padding-left: 1.3rem; }
li { margin: 0.3rem 0; }
strong { font-weight: 600; }

.toc { background: var(--ink-surface); border: 1px solid var(--ink-hairline); border-radius: 10px; padding: 0.9rem 1.2rem; margin: 0 0 1.5rem; }
.toc p { margin: 0 0 0.35rem; font-family: var(--font-label); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; color: var(--paper-dim); }
.toc ol { margin: 0; columns: 2 16rem; column-gap: 2rem; font-size: 0.95rem; }
.toc li { break-inside: avoid; margin: 0 0 0.35rem; }

.table-wrap { overflow-x: auto; margin: 0.8rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--ink-hairline); vertical-align: top; }
th { color: var(--gold); font-weight: 600; font-family: var(--font-label); letter-spacing: 0.04em; }
td code, li code { font-size: 0.85em; background: var(--ink-surface); padding: 0.05rem 0.3rem; border-radius: 4px; word-break: break-all; }

.summary { background: var(--gold-soft); border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; padding: 0.9rem 1.2rem; margin: 1.5rem 0; }
.summary p:first-child { margin-top: 0; }
.summary p:last-child, .summary ul:last-child { margin-bottom: 0; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.25rem; margin: 0.8rem 0; }
dl.facts dt { color: var(--paper-dim); }
dl.facts dd { margin: 0; }
@media (max-width: 520px) { dl.facts { grid-template-columns: 1fr; gap: 0.1rem; } dl.facts dd { margin-bottom: 0.6rem; } }

/* Holder data still to be filled in: impossible to miss. */
.ph { background: #ffd54a; color: #1b1a17; padding: 0 0.3rem; border-radius: 3px; font-weight: 600; }

footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--ink-hairline); color: var(--paper-dim); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: space-between; }
