/* Páginas legales — usa la paleta y tipografías del sitio */
:root {
  --lg-bg: #050608; --lg-surface: #0b0d12; --lg-text: #eef2f7; --lg-muted: #9aa3b2;
  --lg-line: rgba(255,255,255,.1); --lg-accent: #34f5a3; --lg-grad: linear-gradient(100deg,#34f5a3,#3b82f6 60%,#a5f3fc); --lg-radius: 22px;
  --lg-head: 'Unbounded', system-ui, sans-serif; --lg-body: 'Inter Tight', system-ui, sans-serif;
  --lg-border: 1px solid rgba(255,255,255,.1); --lg-shadow: 0 30px 60px -40px rgba(0,0,0,.9);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.legal-page { margin: 0; background: var(--lg-bg); color: var(--lg-text); font-family: var(--lg-body); font-size: 16px; line-height: 1.7; overflow-x: hidden; }
body.legal-page::before { content: ""; position: fixed; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; background: var(--lg-grad); filter: blur(120px); opacity: .16; border-radius: 50%; pointer-events: none; z-index: 0; }
.legal-page > * { position: relative; z-index: 1; }
.lg-wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--lg-surface); color: var(--lg-text); padding: .5rem .9rem; border-radius: 8px; }
.legal-page a { color: var(--lg-accent); text-underline-offset: 3px; }
.legal-page a:focus-visible { outline: 2px solid var(--lg-accent); outline-offset: 3px; border-radius: 4px; }

.lg-top { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: color-mix(in srgb, var(--lg-bg) 82%, transparent); border-bottom: var(--lg-border); }
.lg-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; padding-block: .6rem; }
.lg-brand { font-family: var(--lg-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; color: var(--lg-text) !important; text-decoration: none; }
.lg-nav { display: flex; gap: .35rem; flex-wrap: wrap; }
.lg-nav a { color: var(--lg-muted); text-decoration: none; font-size: .9rem; padding: .4rem .8rem; border-radius: 999px; border: 1px solid transparent; transition: color .2s, border-color .2s, background .2s; }
.lg-nav a:hover { color: var(--lg-text); border-color: var(--lg-line); }
.lg-nav a[aria-current="page"] { color: var(--lg-text); background: var(--lg-surface); border: var(--lg-border); }

.lg-hero { padding: clamp(3rem, 8vw, 6rem) 0 2rem; max-width: 820px; animation: lg-in .7s cubic-bezier(.22,1,.36,1) both; }
.lg-kicker { display: inline-block; margin: 0 0 1rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lg-accent); }
.lg-hero h1 { font-family: var(--lg-head); font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 1.1rem; background: var(--lg-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-lead { font-size: 1.125rem; color: var(--lg-muted); margin: 0 0 .8rem; }
.lg-date { font-size: .85rem; color: var(--lg-muted); margin: 0; }

.lg-note { margin: 0 0 2.5rem; padding: 1rem 1.25rem; border-radius: var(--lg-radius); border: 1px dashed rgba(255,214,0,.55); background: rgba(255,214,0,.22); color: #ffe680; font-size: .92rem; }
.ph { background: rgba(255,214,0,.22); color: #ffe680; padding: 0 .3em; border-radius: 4px; font-weight: 600; }

.lg-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 3rem; align-items: start; padding-bottom: 5rem; }
.lg-toc { position: sticky; top: 88px; padding: 1.25rem; background: var(--lg-surface); border: var(--lg-border); border-radius: var(--lg-radius); box-shadow: var(--lg-shadow); font-size: .9rem; }
.lg-toc p { margin: 0 0 .6rem; font-weight: 700; font-family: var(--lg-head); }
.lg-toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.lg-toc a { color: var(--lg-muted); text-decoration: none; }
.lg-toc a:hover { color: var(--lg-accent); }

.lg-body section { padding: 2rem 0; border-top: var(--lg-border); scroll-margin-top: 90px; }
.lg-body section:first-child { border-top: 0; padding-top: 0; }
.lg-body h2 { font-family: var(--lg-head); font-size: clamp(1.35rem, 2.6vw, 1.7rem); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 1rem; display: flex; gap: .8rem; align-items: baseline; }
.lg-body h2 .num { font-size: .85rem; font-weight: 700; color: var(--lg-accent); font-variant-numeric: tabular-nums; }
.lg-body p, .lg-body li { color: var(--lg-text); }
.lg-body p { margin: 0 0 1rem; }
.lg-body ul { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: .45rem; }
.lg-body ul.facts { list-style: none; padding: 1.1rem 1.25rem; background: var(--lg-surface); border: var(--lg-border); border-radius: var(--lg-radius); }
.lg-body ul.rights li::marker { color: var(--lg-accent); }
.lg-body code { font-size: .88em; padding: .1em .4em; border-radius: 6px; background: var(--lg-surface); border: 1px solid var(--lg-line); }
.tbl { overflow-x: auto; margin: 0 0 1.25rem; border: var(--lg-border); border-radius: var(--lg-radius); background: var(--lg-surface); }
.tbl table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: .8rem 1rem; border-bottom: 1px solid var(--lg-line); }
.tbl th { font-family: var(--lg-head); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--lg-muted); }
.tbl tr:last-child td { border-bottom: 0; }

.lg-foot { border-top: var(--lg-border); padding: 1.6rem 0; font-size: .88rem; color: var(--lg-muted); }
.lg-foot-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.lg-foot-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.lg-foot-links a { color: var(--lg-muted); text-decoration: none; }
.lg-foot-links a:hover, .lg-foot-links a[aria-current="page"] { color: var(--lg-text); }

@keyframes lg-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .lg-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .lg-toc { position: static; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .lg-hero { animation: none; } }
@media print {
  .lg-top, .lg-toc, .lg-note, .lg-foot, body.legal-page::before { display: none !important; }
  body.legal-page { background: #fff; color: #000; }
  .lg-hero h1 { color: #000; background: none; }
  .lg-grid { display: block; }
}
