/* Páginas legales (estáticas, fuera del SPA). Estilo claro con la marca nueva.
   Paleta documentada en design-system/MASTER.md (sección 13). Sin verde. Sin pedidos a otros dominios. */
@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/legal-assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/legal-assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --bg: #FFFFFF;
  --ink: #0E1834;
  --muted: #4C4B4E;
  --blue: #092268;
  --accent: #4A7FD4;
  --line: #D5DAE8;
  --max: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Barra superior (no fija): réplica en CSS del logo del sitio */
.legal-header {
  border-bottom: 3px solid var(--accent);
}

.legal-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--blue);
}

.brand-name {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.5625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Contenido */
.legal-content {
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.legal-content h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--blue);
}

.legal-content h2 {
  margin: 48px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--blue);
  scroll-margin-top: 24px;
}

.legal-content h1 { scroll-margin-top: 24px; }

.legal-content p,
.legal-content li {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
}

.legal-content p { margin: 0 0 16px; }

.legal-content ul { margin: 0 0 16px; padding-left: 24px; }

.legal-content li { margin-bottom: 8px; }

.legal-content em { color: var(--muted); font-style: normal; font-weight: 500; }

.legal-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* Pie */
.legal-footer {
  border-top: 1px solid var(--line);
}

.legal-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.legal-footer p { margin: 0; }

.legal-footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }

.legal-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 640px) {
  .legal-header-inner,
  .legal-footer-inner { padding-left: 16px; padding-right: 16px; }
  .legal-content { padding: 40px 16px 56px; }
  .legal-content h1 { font-size: 1.5rem; }
}
