/* ==========================================================================
   AshuMail marketing site — shared stylesheet
   "Verdigris" design language (docs/architecture/10-design-system.md):
   border-first elevation, warm-cool neutrals, deep teal accent, both themes
   first-class. Sans for reading, mono for technical truth.
   ========================================================================== */

/* ---- Tokens: light (default) ---------------------------------------------- */
:root {
  --ground:      #F6F7F6;
  --surface:     #FFFFFF;
  --surface-2:   #EFF1F0;
  --line:        #DCE1DF;
  --line-strong: #C7CFCC;
  --ink:         #191D1C;
  --ink-2:       #5F6B68;
  --ink-3:       #8A928F;
  --accent:      #0E6B66;
  --accent-hover:#0B5A56;
  --on-accent:   #FFFFFF;
  --accent-wash: #E3F0EE;
  --success:     #2E7D43;
  --warning:     #9A6A0B;
  --danger:      #B3382C;
  --info:        #2A6AB0;
  --overlay-shadow: 0 8px 30px rgb(0 0 0 / 0.10);
  --card-shadow: none;

  --mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", "SF Mono",
          "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;

  --maxw: 1120px;
  --radius-s: 6px;
  --radius:   10px;
  --radius-l: 14px;
  --pill: 999px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { color-scheme: dark; }
  :root:not([data-theme]) {
    --ground:      #131716;
    --surface:     #1B201F;
    --surface-2:   #242A29;
    --line:        #313836;
    --line-strong: #3D4644;
    --ink:         #E6EAE8;
    --ink-2:       #94A09C;
    --ink-3:       #6E7A76;
    --accent:      #57C4B8;
    --accent-hover:#6FD2C7;
    --on-accent:   #06302C;
    --accent-wash: #12352F;
    --success:     #6FCE8A;
    --warning:     #E0B25A;
    --danger:      #E58273;
    --info:        #7FB2E8;
    --overlay-shadow: 0 8px 30px rgb(0 0 0 / 0.35);
  }
}

:root[data-theme="light"] { color-scheme: light; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --ground:      #131716;
  --surface:     #1B201F;
  --surface-2:   #242A29;
  --line:        #313836;
  --line-strong: #3D4644;
  --ink:         #E6EAE8;
  --ink-2:       #94A09C;
  --ink-3:       #6E7A76;
  --accent:      #57C4B8;
  --accent-hover:#6FD2C7;
  --on-accent:   #06302C;
  --accent-wash: #12352F;
  --success:     #6FCE8A;
  --warning:     #E0B25A;
  --danger:      #E58273;
  --info:        #7FB2E8;
  --overlay-shadow: 0 8px 30px rgb(0 0 0 / 0.35);
}

/* ---- Reset-ish ------------------------------------------------------------ */
*, *::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(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 660; letter-spacing: -0.014em; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img, svg { max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---- Layout --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section + .section { border-top: 1px solid var(--line); }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 8px 14px; border-radius: var(--radius-s); font-weight: 600;
  transition: top 120ms var(--ease);
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

/* ---- Typography helpers --------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
  display: inline-block;
}
.display {
  font-size: clamp(2.15rem, 1.2rem + 4vw, 3.5rem);
  font-weight: 680; line-height: 1.04; letter-spacing: -0.028em;
}
.h2 { font-size: clamp(1.55rem, 1rem + 2.2vw, 2.2rem); font-weight: 670; letter-spacing: -0.02em; }
.h3 { font-size: 1.16rem; font-weight: 640; letter-spacing: -0.012em; }
.lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--ink-2); }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.balance { text-wrap: balance; }
.measure { max-width: 62ch; }
.center { text-align: center; }

/* ---- Header / nav --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__row {
  display: flex; align-items: center; gap: 20px;
  height: 62px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 670; letter-spacing: -0.02em; font-size: 1.06rem; }
.brand:hover { color: var(--ink); }
.brand .logo { color: var(--ink-2); flex: none; }
.brand .logo .check { stroke: var(--accent); }
/* The brand mark is now the real app-icon PNG: keep it crisp, rounded like the launcher icon, and
   sitting on its own hairline so the cream tile reads as intentional on both light and dark grounds. */
.brand img.logo { border-radius: 6px; display: block; box-shadow: 0 0 0 1px var(--line, rgba(0,0,0,.08)); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a.navlink {
  font-size: 0.92rem; color: var(--ink-2); padding: 8px 12px;
  border-radius: var(--radius-s); font-weight: 500;
  transition: color 120ms var(--ease), background 120ms var(--ease);
}
.nav a.navlink:hover { color: var(--ink); background: var(--surface-2); }
.nav a.navlink[aria-current="page"] { color: var(--ink); background: var(--accent-wash); }
.nav-tools { display: flex; align-items: center; gap: 8px; margin-left: 6px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  cursor: pointer; transition: color 120ms var(--ease), border-color 120ms var(--ease), background 120ms var(--ease);
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun,
:root:not([data-theme]) .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon,
:root:not([data-theme]) .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .sun { display: none; }
  :root:not([data-theme]) .theme-toggle .moon { display: block; }
}

.nav-toggle { display: none; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  padding: 11px 18px; border-radius: var(--radius-s);
  border: 1px solid transparent; cursor: pointer;
  transition: background 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease), transform 140ms var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--ink-3); }
.btn--sm { padding: 8px 14px; font-size: 0.88rem; }
.btn .arrow { transition: transform 140ms var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Hero ----------------------------------------------------------------- */
.hero { padding-block: clamp(48px, 6vw, 88px) clamp(52px, 7vw, 92px); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero__title { margin-bottom: 22px; }
.hero__sub { margin-bottom: 30px; max-width: 46ch; }
.hero__meta {
  margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex: none; }

/* ---- Panel (the signature health readout) --------------------------------- */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--card-shadow);
}
.panel--float { box-shadow: var(--overlay-shadow); }
.panel__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2);
}
.panel__bar .lamp { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent); }
.panel__bar .grow { margin-left: auto; }
.tag {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em;
  padding: 2px 8px; border-radius: var(--pill); border: 1px solid var(--line);
  color: var(--ink-2); text-transform: uppercase;
}
.tag--ok { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, var(--line)); }

.records { padding: 6px 0; }
.record {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center;
  padding: 9px 16px; font-family: var(--mono); font-size: 0.82rem;
}
.record + .record { border-top: 1px solid var(--line); }
.record .k { color: var(--ink-2); }
.record .v { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record .s { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-size: 0.78rem; }
.record .s svg { width: 14px; height: 14px; }
.panel__foot {
  padding: 12px 16px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2);
  display: flex; align-items: center; gap: 8px;
}
.panel__foot strong { color: var(--accent); font-weight: 600; }

/* ---- Generic grids & cards ------------------------------------------------ */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  transition: border-color 140ms var(--ease), background 140ms var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card__icon {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: var(--radius-s); background: var(--accent-wash); color: var(--accent);
  margin-bottom: 16px;
}
.card__icon svg { width: 20px; height: 20px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 0.95rem; }
.card__tag {
  display: inline-block; margin-top: 14px;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em;
  color: var(--ink-3); text-transform: uppercase;
}

.section-head { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.center { margin-inline: auto; }
.section-head p { margin-top: 14px; }

/* ---- Cost / stat strip ---------------------------------------------------- */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ledger__col { padding: 26px 26px; }
.ledger__col + .ledger__col { border-left: 1px solid var(--line); }
.ledger__col--them { background: var(--surface); }
.ledger__col--us { background: var(--accent-wash); }
.ledger__label { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-2); margin-bottom: 12px; }
.ledger__num { font-size: clamp(1.5rem, 1rem + 2.5vw, 2.3rem); font-weight: 680; letter-spacing: -0.02em; font-family: var(--mono); }
.ledger__num small { font-size: 0.9rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.ledger__col--us .ledger__num { color: var(--accent); }
.ledger__note { color: var(--ink-2); font-size: 0.9rem; margin-top: 10px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 22px 20px; }
.stat__num { font-family: var(--mono); font-size: 1.7rem; font-weight: 680; letter-spacing: -0.02em; color: var(--ink); }
.stat__label { color: var(--ink-2); font-size: 0.86rem; margin-top: 6px; }

/* ---- Feature list rows (verdict motif) ------------------------------------ */
.feature-rows { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.frow { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; padding: 18px 20px; }
.frow + .frow { border-top: 1px solid var(--line); }
.frow__check { color: var(--accent); margin-top: 2px; }
.frow__check svg { width: 18px; height: 18px; }
.frow h3 { font-size: 1rem; margin-bottom: 4px; }
.frow p { color: var(--ink-2); font-size: 0.92rem; }
.pill {
  align-self: center; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 3px 9px; border-radius: var(--pill);
  border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap;
}
.pill--now { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, var(--line)); }
.pill--soon { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 40%, var(--line)); }
.pill--later { color: var(--info); border-color: color-mix(in srgb, var(--info) 40%, var(--line)); }

/* ---- Comparison table ----------------------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.92rem; }
table.cmp th, table.cmp td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.cmp thead th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); font-weight: 600; background: var(--surface-2); }
table.cmp tbody tr:last-child td { border-bottom: none; }
table.cmp td:first-child, table.cmp th:first-child { color: var(--ink); font-weight: 500; }
table.cmp .col-us { background: var(--accent-wash); color: var(--ink); font-weight: 600; }
table.cmp thead .col-us { color: var(--accent); background: color-mix(in srgb, var(--accent-wash) 70%, var(--surface-2)); }
.mark { display: inline-flex; }
.mark--yes { color: var(--success); }
.mark--no { color: var(--ink-3); }
.mark--part { color: var(--warning); }

/* ---- Persona cards -------------------------------------------------------- */
.persona { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.persona__role { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 10px; }
.persona h3 { margin-bottom: 8px; }
.persona p { color: var(--ink-2); font-size: 0.93rem; }

/* ---- Steps ---------------------------------------------------------------- */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step__n { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 3px 8px; display: inline-block; margin-bottom: 14px; }
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 0.92rem; }

/* ---- Code block ----------------------------------------------------------- */
.code {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.code__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.76rem; color: var(--ink-2); }
.code__bar .grow { margin-left: auto; }
.code pre { margin: 0; padding: 16px; overflow-x: auto; font-family: var(--mono); font-size: 0.82rem; line-height: 1.7; color: var(--ink); }
.code .c-com { color: var(--ink-3); }
.code .c-cmd { color: var(--accent); }
.code .c-str { color: var(--success); }

/* ---- Callout -------------------------------------------------------------- */
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: var(--radius);
  padding: 18px 20px; display: flex; gap: 14px;
}
.callout--warn { border-left-color: var(--warning); }
.callout__icon { color: var(--accent); flex: none; margin-top: 2px; }
.callout--warn .callout__icon { color: var(--warning); }
.callout p { color: var(--ink-2); font-size: 0.92rem; }
.callout strong { color: var(--ink); }

/* ---- CTA band ------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .panel { max-width: 780px; margin-inline: auto; padding: clamp(32px, 5vw, 52px); }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--ink-2); margin-bottom: 26px; max-width: 52ch; margin-inline: auto; }

/* ---- Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-block: 48px; }
.site-footer h4 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); margin-bottom: 14px; font-weight: 600; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: var(--ink-2); font-size: 0.92rem; }
.site-footer a:hover { color: var(--ink); }
.site-footer__brand p { color: var(--ink-2); font-size: 0.9rem; margin-top: 12px; max-width: 34ch; }
.site-footer__bar { border-top: 1px solid var(--line); padding-block: 20px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.site-footer__bar p { color: var(--ink-3); font-size: 0.82rem; font-family: var(--mono); }
.site-footer__bar .badge { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--pill); padding: 4px 12px; }

/* ---- Page hero (interior pages) ------------------------------------------- */
.page-hero { padding-block: clamp(44px, 6vw, 72px) clamp(28px, 4vw, 44px); }
.page-hero .display { font-size: clamp(1.9rem, 1.2rem + 3vw, 2.9rem); margin-bottom: 18px; }
.page-hero .lead { max-width: 60ch; }

/* ---- Reveal animation (only hides when JS is active, so no-JS stays visible) */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .navlink, .arrow { transition: none !important; }
}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 62px; left: 0; right: 0;
    background: var(--ground); border-bottom: 1px solid var(--line);
    padding: 12px 16px; gap: 2px; margin-left: 0;
  }
  .nav.is-open a.navlink { padding: 12px 12px; }
  .nav-toggle { display: inline-grid; }
  .nav-tools { margin-left: auto; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .ledger { grid-template-columns: 1fr; }
  .ledger__col + .ledger__col { border-left: none; border-top: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__meta { font-size: 0.72rem; }
}
@media (max-width: 460px) {
  .container { padding-inline: 18px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .record { grid-template-columns: 52px 1fr auto; }
}

/* ---- Legal documents (privacy, terms) ------------------------------------ */
.legal-hero { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.legal-hero .updated { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); margin-top: 14px; }
.legal-hero .updated b { color: var(--ink-2); font-weight: 600; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-block: clamp(36px, 5vw, 64px); }
.legal-toc { position: sticky; top: 88px; font-size: 0.88rem; }
.legal-toc p { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 12px; }
.legal-toc ol { list-style: none; display: flex; flex-direction: column; gap: 3px; counter-reset: toc; }
.legal-toc a { display: block; padding: 5px 10px; border-radius: var(--radius-s); color: var(--ink-2); border-left: 2px solid transparent; }
.legal-toc a:hover { color: var(--ink); background: var(--surface-2); }
.legal { max-width: 74ch; font-size: 0.98rem; line-height: 1.7; color: var(--ink); }
.legal h2 { font-size: 1.22rem; font-weight: 650; letter-spacing: -0.01em; margin-top: 2.4em; scroll-margin-top: 90px; padding-top: 0.4em; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.02rem; font-weight: 640; margin-top: 1.6em; }
.legal p { color: var(--ink-2); margin-top: 0.9em; }
.legal p strong, .legal li strong { color: var(--ink); font-weight: 620; }
.legal ul, .legal ol.body { margin: 0.9em 0 0; padding-left: 1.3em; color: var(--ink-2); }
.legal li { margin-top: 0.5em; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.legal code { font-family: var(--mono); font-size: 0.86em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; color: var(--ink); }
.legal .note { margin-top: 1.4em; padding: 16px 18px; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-s); font-size: 0.93rem; }
.legal .note p { margin-top: 0.5em; }
.legal .note p:first-child { margin-top: 0; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 1.2em; font-size: 0.88rem; }
.legal table th, .legal table td { padding: 10px 13px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal table thead th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); background: var(--surface-2); }
.legal .table-scroll { margin-top: 1.2em; }
.site-footer__bar .legal-links { display: inline-flex; gap: 14px; }
.site-footer__bar .legal-links a { color: var(--ink-2); }
.site-footer__bar .legal-links a:hover { color: var(--ink); }
@media (max-width: 820px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; margin-bottom: 8px; }
  .legal-toc ol { flex-flow: row wrap; }
}
