:root {
  --ink: #172033;
  --muted: #657084;
  --paper: #ffffff;
  --canvas: #f4f6fa;
  --line: #e3e8f0;
  --accent: #3559e0;
  --accent-soft: #edf1ff;
  --accent-deep: #233c9a;
  --max: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent-deep); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.site-shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.hero { padding: 30px 0 54px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 76px; }
.brand { color: var(--ink); font-weight: 760; letter-spacing: -.03em; text-decoration: none; }
.brand span { color: var(--accent); }
.back-link { color: var(--muted); font-size: .9rem; text-decoration: none; }
.back-link:hover { color: var(--accent-deep); }
.eyebrow { margin: 0 0 15px; color: var(--accent-deep); font-size: .78rem; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.035em; }
h1 { max-width: 800px; margin: 0; font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 780; }
.hero-copy { max-width: 660px; margin: 24px 0 0; color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.2rem); }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; color: var(--muted); font-size: .84rem; }
.meta span { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); }
.policy-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 72px; }
.toc { position: sticky; top: 24px; padding: 18px 0; border-top: 2px solid var(--accent); }
.toc-title { margin: 0 0 12px; font-size: .74rem; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.toc a { display: block; padding: 5px 0; color: var(--muted); font-size: .88rem; text-decoration: none; }
.toc a:hover { color: var(--accent-deep); }
.policy-content { min-width: 0; padding: 40px clamp(22px, 5vw, 64px); border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 18px 50px rgba(28, 39, 67, .06); }
.summary { margin: 0 0 42px; padding: 18px 20px; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--accent-soft); color: #33405b; }
.policy-section { padding: 32px 0 8px; border-top: 1px solid var(--line); scroll-margin-top: 28px; }
.policy-section:first-of-type { padding-top: 0; border-top: 0; }
h2 { margin: 0 0 16px; font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
h3 { margin: 24px 0 8px; font-size: 1.05rem; }
p { margin: 0 0 16px; color: #3f4b60; }
ul { margin: 12px 0 18px; padding-left: 1.2rem; color: #3f4b60; }
li { margin: 7px 0; padding-left: 4px; }
strong { color: var(--ink); }
.policy-content a { text-underline-offset: 3px; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.footer p { color: inherit; margin: 0; }
.maker { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.maker svg { flex: 0 0 auto; }
.theme-noty { --accent: #6757d9; --accent-soft: #f0eeff; --accent-deep: #4d3caf; }
.theme-anotadito { --accent: #009d62; --accent-soft: #e8faf2; --accent-deep: #00764a; }
.theme-cuenta { --accent: #c05272; --accent-soft: #fff0f4; --accent-deep: #96354f; }
.theme-radio { --accent: #1f63d3; --accent-soft: #eaf2ff; --accent-deep: #17499d; }
.theme-tucambio { --accent: #0c8a82; --accent-soft: #e6f8f6; --accent-deep: #08635e; }
.theme-veerla { --accent: #c45f67; --accent-soft: #fff0f0; --accent-deep: #943c45; }
.theme-lomas { --accent: #0d617e; --accent-soft: #e9f6fa; --accent-deep: #08465c; }
.theme-notedup { --accent: #e18a1c; --accent-soft: #fff5e5; --accent-deep: #9b5a00; }
@media (max-width: 760px) {
  .site-shell { width: min(100% - 28px, var(--max)); }
  .hero { padding-top: 22px; }
  .topbar { margin-bottom: 54px; }
  .policy-layout { display: block; }
  .toc { position: static; margin-bottom: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .toc a { display: inline-block; margin: 0 14px 4px 0; }
  .policy-content { padding: 28px 20px; border-radius: 18px; }
  .footer { display: block; }
  .footer p + p { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
