/* ============================================================================
   Denario — Web styles
   "Breathe" design system, mirrored from the app (src/ theme).
   Zero third-party assets · zero trackers · system fonts only.
   ============================================================================ */

:root {
  /* --- Light (default) --- */
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --fg: #111111;
  --fg-soft: #444444;
  --muted: #999999;
  --border: #e5e5e5;
  --hairline: #eeeeee;
  --ink-inverse: #fafafa;

  /* status */
  --red: #ff3b30;
  --green: #30d158;
  --green-deep: #30a14e;
  --amber: #f5a623;

  /* category accents (from the app) */
  --c-dining: #f97316;
  --c-groceries: #22c55e;
  --c-transport: #3b82f6;
  --c-entertainment: #a855f7;
  --c-shopping: #ec4899;
  --c-utilities: #14b8a6;
  --c-health: #ef4444;
  --c-other: #94a3b8;

  /* heatmap */
  --heat-ok: #4ade80;
  --heat-warn: #facc15;
  --heat-over: #f87171;

  /* shape */
  --r-lg: 20px;
  --r-md: 16px;
  --r-sm: 14px;
  --r-xs: 12px;
  --r-pill: 999px;

  /* type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, Helvetica, Arial, system-ui, sans-serif;

  --maxw: 1080px;
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.06);
  --shadow-device: 0 30px 80px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Dark — follows the system, or forced via [data-theme="dark"] */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a;
    --surface: #111111;
    --surface-2: #161616;
    --fg: #f0f0f0;
    --fg-soft: #cfcfcf;
    --muted: #6a6a6a;
    --border: #1f1f1f;
    --hairline: #1a1a1a;
    --ink-inverse: #0a0a0a;
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-device: 0 30px 90px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #161616;
  --fg: #f0f0f0;
  --fg-soft: #cfcfcf;
  --muted: #6a6a6a;
  --border: #1f1f1f;
  --hairline: #1a1a1a;
  --ink-inverse: #0a0a0a;
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-device: 0 30px 90px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* --- reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* --- language toggle visibility --- */
html[data-lang="es"] .lang-en { display: none !important; }
html[data-lang="en"] .lang-es { display: none !important; }

/* ============================================================================
   Layout primitives
   ============================================================================ */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; }
.section--tight { padding: 72px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -0.6px; line-height: 1.1; }
h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 200; letter-spacing: -1.8px; }
h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -1px; }
h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.2px; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--fg-soft); font-weight: 300; }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--fg-soft); font-weight: 300; font-size: 18px; }

/* ============================================================================
   Buttons
   ============================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600; letter-spacing: 0.1px;
  border: 1px solid transparent; transition: transform .15s ease, opacity .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--fg); color: var(--ink-inverse); }
.btn--primary:hover { opacity: 0.88; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--lg { padding: 17px 32px; font-size: 16px; }
.btn .ic { width: 18px; height: 18px; stroke-width: 2; }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-radius: var(--r-sm);
  background: var(--fg); color: var(--ink-inverse);
  transition: opacity .15s ease, transform .15s ease;
}
.store-badge:hover { opacity: .88; }
.store-badge:active { transform: translateY(1px); }
.store-badge svg { width: 26px; height: 26px; }
.store-badge .sb-small { font-size: 10px; letter-spacing: .5px; opacity: .8; line-height: 1; margin-bottom: 3px; }
.store-badge .sb-big { font-size: 17px; font-weight: 600; line-height: 1; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.center .cta-row { justify-content: center; }
.cta-note { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ============================================================================
   Nav
   ============================================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -0.3px; font-size: 18px; }
.brand .logo { width: 26px; height: 26px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { color: var(--fg-soft); font-size: 14px; transition: color .15s ease; }
.nav__links a:hover { color: var(--fg); }
.nav__tools { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex; border: 1px solid var(--border); border-radius: var(--r-pill); overflow: hidden;
  font-size: 12px; font-weight: 600;
}
.lang-switch button { background: transparent; color: var(--muted); border: 0; padding: 6px 12px; letter-spacing: .5px; }
.lang-switch button.active { background: var(--fg); color: var(--ink-inverse); }

@media (max-width: 760px) {
  .nav__links { display: none; }
}

/* ============================================================================
   Hero
   ============================================================================ */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero__copy { max-width: 560px; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; max-width: 500px; }
.hero__proof { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero__proof .pf { display: flex; flex-direction: column; gap: 2px; }
.hero__proof .pf b { font-size: 22px; font-weight: 300; letter-spacing: -0.5px; }
.hero__proof .pf span { font-size: 12px; color: var(--muted); letter-spacing: .3px; }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__copy { max-width: none; }
  .hero__device { justify-self: center; }
}

/* ============================================================================
   Phone mockup (pure CSS — renders the "Breathe" dashboard)
   ============================================================================ */
.hero__device { display: flex; justify-content: center; }
.device {
  width: 300px; height: 620px; border-radius: 44px;
  background: #0a0a0a; padding: 12px;
  box-shadow: var(--shadow-device);
  position: relative; flex: none;
}
.device::after { /* side button */
  content: ""; position: absolute; right: -2px; top: 150px; width: 3px; height: 64px;
  background: #1a1a1a; border-radius: 3px;
}
.device__notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px; background: #0a0a0a; border-radius: 0 0 16px 16px; z-index: 3;
}
.device__screen {
  width: 100%; height: 100%; border-radius: 33px; overflow: hidden;
  background: #0a0a0a; color: #f0f0f0; position: relative;
  display: flex; flex-direction: column;
  font-size: 13px;
}

.scr { padding: 46px 20px 0; flex: 1; display: flex; flex-direction: column; }
.scr__label { font-size: 9px; font-weight: 700; letter-spacing: 2px; color: #6a6a6a; text-transform: uppercase; }
.scr__total { font-size: 52px; font-weight: 200; letter-spacing: -2.5px; margin: 6px 0 2px; line-height: 1; }
.scr__sub { font-size: 11px; color: #6a6a6a; }

.scr__health {
  position: absolute; top: 44px; right: 20px;
  width: 58px; height: 58px; border-radius: 50%;
  border: 1.5px solid #1f1f1f; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.scr__health b { font-size: 19px; font-weight: 300; }
.scr__health span { font-size: 7px; font-weight: 700; letter-spacing: 1.5px; color: var(--green); margin-top: 1px; }

.scr__pulse-l { font-size: 9px; font-weight: 700; letter-spacing: 2px; color: #6a6a6a; margin: 26px 0 12px; }
.heat { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.heat i { aspect-ratio: 1; border-radius: 50%; background: #181818; }
.heat i.ok { background: var(--heat-ok); }
.heat i.warn { background: var(--heat-warn); }
.heat i.over { background: var(--heat-over); }
.heat i.dim { opacity: .35; }

.scr__list { margin-top: 26px; display: flex; flex-direction: column; gap: 2px; }
.txr { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid #161616; }
.txr:first-child { border-top: 0; }
.txr .ico { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.txr .ico svg { width: 15px; height: 15px; stroke-width: 1.8; color: #fff; }
.txr .mid { flex: 1; min-width: 0; }
.txr .mid b { font-weight: 400; font-size: 13px; display: block; }
.txr .mid span { font-size: 10px; color: #6a6a6a; }
.txr .amt { font-weight: 300; font-size: 14px; letter-spacing: -0.3px; }
.dot-review { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); display: inline-block; margin-left: 6px; vertical-align: middle; }

.scr__fab { margin-top: auto; padding: 16px 0 26px; display: flex; align-items: center; justify-content: center; gap: 26px; }
.fab { border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.fab svg { color: #f0f0f0; stroke-width: 2; }
.fab--side { width: 42px; height: 42px; border: 1px solid #262626; }
.fab--side svg { width: 18px; height: 18px; }
.fab--mic { width: 62px; height: 62px; background: var(--red); position: relative; }
.fab--mic svg { width: 24px; height: 24px; color: #fff; }
.fab--mic::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(255,59,48,.4); animation: pulse 2.4s ease-out infinite; }
.fab--mic::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(255,59,48,.25); animation: pulse 2.4s ease-out infinite .9s; }
@keyframes pulse { 0% { transform: scale(.92); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fab--mic::before, .fab--mic::after { animation: none; } }

/* a small floating "spoken" caption near the device */
.spoken {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill);
  padding: 9px 16px; font-size: 13px; color: var(--fg-soft); box-shadow: var(--shadow-soft);
}
.spoken .wave { display: inline-flex; gap: 2px; align-items: center; height: 14px; }
.spoken .wave i { width: 2px; background: var(--red); border-radius: 2px; animation: wave 1s ease-in-out infinite; }
.spoken .wave i:nth-child(1){height:6px; animation-delay:0s}
.spoken .wave i:nth-child(2){height:12px; animation-delay:.15s}
.spoken .wave i:nth-child(3){height:8px; animation-delay:.3s}
.spoken .wave i:nth-child(4){height:14px; animation-delay:.45s}
.spoken .wave i:nth-child(5){height:7px; animation-delay:.6s}
@keyframes wave { 0%,100%{ transform: scaleY(.5);} 50%{ transform: scaleY(1);} }
@media (prefers-reduced-motion: reduce){ .spoken .wave i{ animation:none } }

/* ============================================================================
   Logos / trust strip
   ============================================================================ */
.trust { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 26px 0; }
.trust__row { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: center; }
.trust__item { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); font-weight: 500; }
.trust__item svg { width: 17px; height: 17px; stroke-width: 1.8; color: var(--fg-soft); }

/* ============================================================================
   Problem / empathy
   ============================================================================ */
.problem { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.problem__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.pcard { padding: 28px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); }
.pcard .pico { width: 38px; height: 38px; border-radius: 11px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.pcard .pico svg { width: 19px; height: 19px; stroke-width: 1.8; color: var(--fg-soft); }
.pcard h3 { margin-bottom: 8px; }
.pcard p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 820px){ .problem__grid{ grid-template-columns: 1fr; } }

/* ============================================================================
   How it works — 3 steps
   ============================================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px; counter-reset: step; }
.step { position: relative; padding-top: 18px; }
.step__n { font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--muted); }
.step h3 { margin: 12px 0 8px; }
.step p { color: var(--fg-soft); font-size: 15px; margin: 0; }
.step__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.step__icon svg { width: 22px; height: 22px; stroke-width: 1.6; color: var(--fg); }
@media (max-width: 820px){ .steps{ grid-template-columns: 1fr; gap: 32px; } }

/* ============================================================================
   Before / After grid (Ryan Deiss)
   ============================================================================ */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.ba__col { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.ba__head { padding: 18px 24px; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.ba__col--before .ba__head { background: var(--surface-2); color: var(--muted); }
.ba__col--after .ba__head { background: var(--fg); color: var(--ink-inverse); }
.ba__row { display: flex; gap: 14px; padding: 18px 24px; border-top: 1px solid var(--hairline); align-items: flex-start; }
.ba__row .k { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); width: 76px; flex: none; padding-top: 2px; }
.ba__row .v { font-size: 15px; color: var(--fg-soft); }
.ba__col--after .ba__row .v { color: var(--fg); }
.ba__mark { width: 16px; height: 16px; flex: none; margin-top: 2px; }
@media (max-width: 820px){ .ba{ grid-template-columns: 1fr; } }

/* ============================================================================
   Features — bento
   ============================================================================ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 52px; }
.fcard { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: 30px; grid-column: span 2; transition: border-color .2s ease, transform .2s ease; }
.fcard:hover { border-color: color-mix(in srgb, var(--fg) 28%, var(--border)); transform: translateY(-2px); }
.fcard--wide { grid-column: span 3; }
.fcard--full { grid-column: span 6; }
.fcard .ficon { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.fcard .ficon svg { width: 22px; height: 22px; stroke-width: 1.7; color: #fff; }
.fcard h3 { margin-bottom: 10px; }
.fcard p { color: var(--fg-soft); font-size: 15px; margin: 0; }
.bg-dining{background:var(--c-dining)} .bg-groceries{background:var(--c-groceries)}
.bg-transport{background:var(--c-transport)} .bg-ent{background:var(--c-entertainment)}
.bg-shopping{background:var(--c-shopping)} .bg-utilities{background:var(--c-utilities)}
.bg-health{background:var(--c-health)} .bg-ink{background:var(--fg)}
.bg-ink svg{ color: var(--ink-inverse) !important; }
@media (max-width: 880px){ .bento{ grid-template-columns: 1fr 1fr; } .fcard, .fcard--wide, .fcard--full{ grid-column: span 1; } }
@media (max-width: 560px){ .bento{ grid-template-columns: 1fr; } }

/* full-width feature with mini visual */
.fcard--full { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; }
.fcard--full .ft-copy h3 { font-size: 26px; }
.mini-insights { display: flex; flex-direction: column; gap: 12px; }
.mini-bar { display: grid; grid-template-columns: 92px 1fr 54px; gap: 12px; align-items: center; font-size: 12px; }
.mini-bar .ml { color: var(--muted); }
.mini-bar .mt { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.mini-bar .mt i { display: block; height: 100%; border-radius: 4px; }
.mini-bar .mv { text-align: right; color: var(--fg-soft); font-variant-numeric: tabular-nums; }
@media (max-width: 700px){ .fcard--full{ grid-template-columns: 1fr; } }

/* ============================================================================
   Privacy / control band
   ============================================================================ */
.privacy { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.privacy__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 48px; }
.priv { text-align: left; }
.priv .pi { width: 38px; height: 38px; border-radius: 11px; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.priv .pi svg { width: 19px; height: 19px; stroke-width: 1.7; color: var(--fg); }
.priv h3 { font-size: 16px; margin-bottom: 6px; }
.priv p { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 880px){ .privacy__grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .privacy__grid{ grid-template-columns: 1fr; } }

/* ============================================================================
   FAQ
   ============================================================================ */
.faq { max-width: 760px; margin: 52px auto 0; }
.qa { border-bottom: 1px solid var(--border); }
.qa__q { width: 100%; text-align: left; background: none; border: 0; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--fg); font-size: 17px; font-weight: 400; }
.qa__q .chev { width: 20px; height: 20px; flex: none; transition: transform .25s ease; color: var(--muted); }
.qa[open] .qa__q .chev { transform: rotate(180deg); }
.qa__a { padding: 0 0 24px; color: var(--fg-soft); font-size: 15px; max-width: 660px; }
.qa__a p { margin: 0 0 10px; }
.qa__a p:last-child { margin: 0; }

/* ============================================================================
   Final CTA
   ============================================================================ */
.final { background: var(--fg); color: var(--ink-inverse); border-radius: 0; }
.final .eyebrow { color: color-mix(in srgb, var(--ink-inverse) 55%, transparent); }
.final h2 { color: var(--ink-inverse); }
.final p { color: color-mix(in srgb, var(--ink-inverse) 78%, transparent); }
.final .btn--primary { background: var(--ink-inverse); color: var(--fg); }
.final .store-badge { background: var(--ink-inverse); color: var(--fg); }
.final .cta-note { color: color-mix(in srgb, var(--ink-inverse) 55%, transparent); }

/* ============================================================================
   Footer
   ============================================================================ */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--hairline); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .brand { margin-bottom: 14px; }
.footer p { color: var(--muted); font-size: 14px; max-width: 320px; }
.footer h4 { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { color: var(--fg-soft); font-size: 14px; }
.footer ul a:hover { color: var(--fg); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
@media (max-width: 760px){ .footer__grid{ grid-template-columns: 1fr 1fr; } .footer .footer__about{ grid-column: span 2; } }
@media (max-width: 480px){ .footer__grid{ grid-template-columns: 1fr; } .footer .footer__about{ grid-column: span 1; } }

/* ============================================================================
   Legal document pages
   ============================================================================ */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 24px 96px; }
.legal__back { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); margin-bottom: 30px; }
.legal__back:hover { color: var(--fg); }
.legal__back svg { width: 15px; height: 15px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.legal__toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 22px 26px; margin: 32px 0 40px; }
.legal__toc h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.legal__toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal__toc li { margin-bottom: 7px; font-size: 14px; }
.legal__toc a { color: var(--fg-soft); }
.legal__toc a:hover { color: var(--fg); }
@media (max-width: 620px){ .legal__toc ol{ columns: 1; } }

.legal h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.3px; margin: 44px 0 14px; padding-top: 12px; }
.legal h3 { font-size: 17px; font-weight: 600; margin: 26px 0 10px; }
.legal p, .legal li { color: var(--fg-soft); font-size: 15.5px; line-height: 1.72; }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--fg); font-weight: 600; }
.legal a.inline { color: var(--c-transport); border-bottom: 1px solid color-mix(in srgb, var(--c-transport) 40%, transparent); }
.legal .callout {
  border: 1px solid var(--border); border-left: 3px solid var(--amber);
  background: var(--surface); border-radius: var(--r-xs);
  padding: 16px 20px; margin: 20px 0; font-size: 14.5px; color: var(--fg-soft);
}
.legal .callout strong { color: var(--fg); }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 11px 12px; border: 1px solid var(--border); vertical-align: top; }
.legal th { background: var(--surface-2); font-weight: 600; color: var(--fg); font-size: 12.5px; letter-spacing: .3px; }
.legal td { color: var(--fg-soft); }
.legal hr { border: 0; border-top: 1px solid var(--hairline); margin: 40px 0; }
.legal .sig { margin-top: 40px; font-size: 14px; color: var(--muted); }

/* icons (Lucide sprite) */
.spr { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* utility */
.nowrap { white-space: nowrap; }
.tabnum { font-variant-numeric: tabular-nums; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 12px; background: var(--fg); color: var(--ink-inverse); padding: 8px 14px; border-radius: 8px; z-index: 100; }
:focus-visible { outline: 2px solid var(--c-transport); outline-offset: 3px; border-radius: 4px; }

/* brand mark (real Denario logo) — black on light, white on dark */
.brand .brandmark { width: 24px; height: 24px; display: block; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .brand .logo-light { display: none; }
  .brand .logo-dark { display: block; }
}
