/* Páginas legales (aviso legal, privacidad, cookies): mismos colores y letra que la portada */
@font-face {
  font-family: "Inter Var";
  src: url("/assets/fonts/inter-latin-opsz.woff2") format("woff2-variations"),
       url("/assets/fonts/inter-latin-opsz.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter Var", system-ui, sans-serif;
  --abyss: #183d61;
  --sprout: #acd99c;
  --gold: #e0cd39;
  --abyss-rgb: 24 61 97;
  --ground: #f3f5f7;
  --ink: var(--abyss);
  --ink-rgb: var(--abyss-rgb);
  --ink-soft: #3b5a79;
  --shade: var(--abyss-rgb);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; background-color: var(--ground); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(60% 40% at 8% 0%, #dae7e9, transparent 62%),
    radial-gradient(50% 35% at 100% 6%, #f5efc0, transparent 60%),
    var(--ground);
  background-color: var(--ground);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: #2f6c81; }

.lg-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(100% - 32px, 860px); margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 0 0; }
.lg-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1rem; line-height: 1; }
.lg-brand img { width: auto; height: 20px; }
.lg-brand b { font-weight: 700; letter-spacing: 0.04em; }
.lg-brand span { font-weight: 400; color: var(--ink-soft); }
.lg-back { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 0.9375rem; text-decoration: none; color: #fff; background: var(--abyss); }
.lg-back:hover { color: #fff; background: #2f5071; }

.lg { width: min(100% - 32px, 860px); margin: clamp(28px, 6vw, 64px) auto clamp(40px, 8vw, 90px); padding: clamp(22px, 5vw, 56px); border-radius: clamp(22px, 3vw, 34px); background: rgb(255 255 255 / 0.72); box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / 0.06), 0 40px 80px -60px rgb(var(--shade) / 0.5); }
.lg h1 { margin: 0 0 6px; font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.04em; }
.lg .lg-date { margin: 0 0 clamp(22px, 4vw, 34px); font-size: 0.875rem; color: var(--ink-soft); }
.lg h2 { margin: clamp(28px, 4vw, 40px) 0 10px; font-size: clamp(1.2rem, 2.6vw, 1.45rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.lg h3 { margin: 22px 0 6px; font-size: 1.0625rem; font-weight: 600; }
.lg p, .lg li { color: #24476a; }
.lg p { margin: 0 0 12px; }
.lg ul { margin: 0 0 14px; padding-left: 1.2em; }
.lg li { margin-bottom: 6px; }
.lg dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 14px; }
.lg dt { font-weight: 600; }
.lg dd { margin: 0; color: #24476a; }
.lg-table { width: 100%; overflow-x: auto; margin: 6px 0 16px; }
.lg table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9375rem; }
.lg th, .lg td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid rgb(var(--ink-rgb) / 0.1); }
.lg th { font-weight: 600; background: rgb(var(--ink-rgb) / 0.04); }
.lg td { color: #24476a; }
.lg code { font-size: 0.875em; padding: 1px 6px; border-radius: 6px; background: rgb(var(--ink-rgb) / 0.06); }
.todo { padding: 0 4px; border-radius: 4px; color: #7a2e00; background: #ffe2a8; }
@media (max-width: 560px) { .lg dl { grid-template-columns: 1fr; gap: 2px; } .lg dd { margin-bottom: 8px; } }

.lg-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; width: min(100% - 32px, 860px); margin: 0 auto; padding: 0 0 max(28px, env(safe-area-inset-bottom)); font-size: 0.875rem; color: var(--ink-soft); }
.lg-foot a, .lg-foot button { padding: 0; border: 0; font: inherit; color: inherit; text-decoration: none; background: none; cursor: pointer; }
.lg-foot a:hover, .lg-foot button:hover { color: var(--ink); }
.lg-foot a[aria-current="page"] { color: var(--ink); font-weight: 600; }
