/*
 * site.css - Dossier Flow marketing site.
 *
 * The token block below is copied verbatim from the product's
 * cloud/static/css/tokens.css so the site and the app are one visual system.
 * Mirror any token change made there. Everything after the tokens is this
 * site's own layout and components, shared by index.html, terms.html and
 * privacy.html.
 *
 * Fonts: no webfont is loaded from a third party, deliberately. Requesting a
 * font from a CDN sends every visitor's IP address to that CDN before they
 * have consented to anything, which is exactly the kind of finding that makes
 * a cookie banner dishonest. See README.md for how to self-host Inter if you
 * want the app's exact typeface here.
 */

/* ---------------------------------------------------------------------------
   Design tokens. Copied verbatim from cloud/static/css/tokens.css so the site
   and the product are one visual system. If a token changes there, mirror it
   here (the list is short and lives only in this block).
   --------------------------------------------------------------------------- */
:root,
[data-bs-theme="light"] {
  --accent-primary: #2454eb;
  --accent-primary-hover: #1b3fc0;
  --accent-secondary: #0b9488;
  --accent-secondary-hover: #087a70;

  --bg-primary: #f5f7fb;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eef1f7;
  --surface-muted: #f1f3f9;

  --text-primary: #171a21;
  --text-secondary: #454b58;
  --text-muted: #6b7280;
  --text-on-accent: #ffffff;

  --border-color: #e3e6ed;
  --border-color-strong: #cbd0dc;

  --success-bg: #dff5e6; --success-text: #14622f; --success-border: #b9e6c6;
  --warning-bg: #fff2cf; --warning-text: #7a5600; --warning-border: #f6dd97;
  --danger-bg: #fbdfe0;  --danger-text: #8c1620;  --danger-border: #f2b6ba;
  --info-bg: #dfe9ff;    --info-text: #1c3fa0;    --info-border: #b9cdfb;

  --shadow-soft: 0 1px 2px rgba(23, 26, 33, 0.06), 0 1px 1px rgba(23, 26, 33, 0.04);
  --shadow-strong: 0 12px 28px rgba(23, 26, 33, 0.14);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --content-max-width: 1180px;
  --navbar-height: 64px;

  --font-sans: "Inter", "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, Menlo, monospace;

  color-scheme: light;
}

[data-bs-theme="dark"] {
  --accent-primary: #6f92ff;
  --accent-primary-hover: #91abff;
  --accent-secondary: #35c2b3;
  --accent-secondary-hover: #5ad2c5;

  --bg-primary: #10131c;
  --bg-secondary: #171b28;
  --bg-tertiary: #1f2434;
  --surface-muted: #1b2030;

  --text-primary: #eef0f6;
  --text-secondary: #b7bccb;
  --text-muted: #838ba1;
  --text-on-accent: #0b0e16;

  --border-color: #2a3042;
  --border-color-strong: #3a4257;

  --success-bg: #12301f; --success-text: #7bdb9c; --success-border: #204a30;
  --warning-bg: #3a2e0c; --warning-text: #f2cb5c; --warning-border: #55461a;
  --danger-bg: #3a1418;  --danger-text: #f5a3aa;  --danger-border: #56232a;
  --info-bg: #142244;    --info-text: #a9c1ff;    --info-border: #223561;

  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.35), 0 1px 1px rgba(0, 0, 0, 0.25);
  --shadow-strong: 0 16px 32px rgba(0, 0, 0, 0.45);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--navbar-height) + 12px); }
body {
  margin: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
code, pre, kbd { font-family: var(--font-mono); }
a { color: var(--accent-primary); text-decoration: none; }
a:hover { color: var(--accent-primary-hover); text-decoration: underline; }
img { max-width: 100%; }
::selection { background: color-mix(in srgb, var(--accent-primary) 30%, transparent); }
.muted { color: var(--text-muted); }
.nowrap { white-space: nowrap; }

/* ---------- Navbar (mirrors .app-navbar) ---------- */
.app-navbar {
  position: sticky; top: 0; z-index: 50;
  background-color: color-mix(in srgb, var(--bg-secondary) 92%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border-color);
  min-height: var(--navbar-height);
  box-shadow: var(--shadow-soft);
}
.navbar-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 1rem;
  min-height: var(--navbar-height);
  display: flex; align-items: center; gap: 1rem;
}
.navbar-brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; letter-spacing: -0.01em; color: var(--text-primary);
  font-size: 1.05rem;
}
.navbar-brand:hover { color: var(--text-primary); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: var(--radius-sm); object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: .15rem; margin-left: .75rem; }
.nav-link {
  color: var(--text-secondary); font-weight: 500; font-size: .92rem;
  padding: .5rem .85rem; border-radius: var(--radius-sm);
}
.nav-link:hover { color: var(--text-primary); background-color: var(--surface-muted); text-decoration: none; }
.navbar-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.theme-toggle {
  border: 1px solid var(--border-color); background: var(--bg-secondary); color: var(--text-secondary);
  border-radius: var(--radius-pill); width: 36px; height: 36px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.theme-toggle:hover { color: var(--accent-primary); border-color: var(--accent-primary); }
.icon-sun { display: none; }
[data-bs-theme="dark"] .icon-moon { display: none; }
[data-bs-theme="dark"] .icon-sun { display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-family: inherit; font-size: .95rem; font-weight: 600; line-height: 1.4;
  padding: .6rem 1.15rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background-color: var(--accent-primary); border-color: var(--accent-primary); color: var(--text-on-accent); }
.btn-primary:hover { background-color: var(--accent-primary-hover); border-color: var(--accent-primary-hover); color: var(--text-on-accent); }
.btn-outline {
  border-color: var(--border-color-strong); color: var(--text-secondary); background: var(--bg-secondary);
}
.btn-outline:hover { background-color: var(--surface-muted); color: var(--text-primary); }
.btn-sm { font-size: .85rem; padding: .42rem .85rem; }
.btn-lg { font-size: 1rem; padding: .75rem 1.5rem; }

/* ---------- Layout ---------- */
.section { padding: 4.5rem 1rem; }
.section-alt { background: var(--bg-secondary); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.container { max-width: var(--content-max-width); margin: 0 auto; }
.container-narrow { max-width: 820px; margin: 0 auto; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-secondary); margin-bottom: .75rem;
}
h1, h2, h3 { letter-spacing: -0.02em; margin: 0 0 .75rem; }
h1 { font-size: clamp(2rem, 4.4vw, 3.05rem); font-weight: 800; line-height: 1.12; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.05rem; font-weight: 700; }
.lead { font-size: 1.12rem; color: var(--text-secondary); max-width: 62ch; }
.section-head { margin-bottom: 2.5rem; }
.section-head .lead { margin-bottom: 0; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.surface-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}
.section-alt .surface-card { background: var(--bg-primary); }

.badge-soft {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3em .7em; border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 600; line-height: 1.4;
  border: 1px solid transparent;
}
.badge-soft::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge-soft-info { background: var(--info-bg); color: var(--info-text); border-color: var(--info-border); }
.badge-soft-success { background: var(--success-bg); color: var(--success-text); border-color: var(--success-border); }
.badge-soft-neutral { background: var(--surface-muted); color: var(--text-secondary); border-color: var(--border-color); }
.badge-soft-warning { background: var(--warning-bg); color: var(--warning-text); border-color: var(--warning-border); }

/* ---------- Hero ---------- */
.hero {
  padding: 4.5rem 1rem 3.5rem;
  background:
    radial-gradient(1100px 460px at 12% -12%, color-mix(in srgb, var(--accent-primary) 12%, transparent), transparent 62%),
    radial-gradient(900px 420px at 92% 4%, color-mix(in srgb, var(--accent-secondary) 11%, transparent), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 3rem; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.25rem; }
.hero-note { font-size: .88rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.hero-note span { display: inline-flex; align-items: center; gap: .4rem; }

/* The product mock in the hero */
.mock {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .6rem .85rem; border-bottom: 1px solid var(--border-color);
  background: var(--surface-muted);
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-color-strong); }
.mock-url {
  margin-left: .6rem; font-family: var(--font-mono); font-size: .72rem; color: var(--text-muted);
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: var(--radius-pill); padding: .12rem .65rem; flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mock-body { padding: 1.1rem 1.15rem 1.25rem; }
.mock-row {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .55rem 0; border-bottom: 1px solid var(--border-color); font-size: .86rem;
}
.mock-row:last-child { border-bottom: 0; }
.mock-key { color: var(--text-secondary); }
.mock-val { font-family: var(--font-mono); font-size: .78rem; color: var(--text-primary); }
.mock-title { font-weight: 700; font-size: .95rem; margin-bottom: .15rem; }
.mock-sub { font-size: .8rem; color: var(--text-muted); margin-bottom: .9rem; }
.mock-rail { height: 4px; border-radius: var(--radius-pill); background: var(--surface-muted); overflow: hidden; margin: 1rem 0 .5rem; }
.mock-rail i { display: block; height: 100%; width: 62%; background: var(--accent-primary); border-radius: var(--radius-pill); }
.mock-foot { font-size: .78rem; color: var(--text-muted); display: flex; align-items: center; gap: .4rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
  background: color-mix(in srgb, var(--accent-primary) 12%, transparent);
  color: var(--accent-primary);
  border: 1px solid color-mix(in srgb, var(--accent-primary) 30%, transparent);
}
.step h3 { margin-bottom: .35rem; }
.step p { margin: 0; color: var(--text-secondary); font-size: .94rem; }

/* ---------- Feature cards ---------- */
.feature-icon {
  width: 38px; height: 38px; border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent-secondary) 13%, transparent);
  color: var(--accent-secondary); margin-bottom: .85rem;
}
.surface-card h3 { margin-bottom: .4rem; }
.surface-card p { margin: 0; color: var(--text-secondary); font-size: .94rem; }

/* ---------- Boundary diagram ---------- */
.boundary { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.25rem; align-items: stretch; }
.boundary-col { display: flex; flex-direction: column; }
.boundary-line { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 0 .25rem; }
.boundary-line .dash { flex: 1; width: 2px; background: repeating-linear-gradient(to bottom, var(--border-color-strong) 0 6px, transparent 6px 12px); }
.boundary-line .tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted); writing-mode: vertical-rl; transform: rotate(180deg); padding: .35rem 0;
}
.pill-list { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.pill-list li { display: flex; gap: .55rem; font-size: .9rem; color: var(--text-secondary); }
.pill-list svg { flex: none; margin-top: .28rem; color: var(--accent-secondary); }

/* ---------- Non destructive panel ---------- */
.safe-panel {
  margin-top: 1.25rem;
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 2rem; align-items: center;
  border-color: color-mix(in srgb, var(--accent-secondary) 35%, var(--border-color));
}
.safe-panel p { margin: 0; color: var(--text-secondary); font-size: .95rem; }
.op-list { display: flex; flex-wrap: wrap; gap: .45rem; align-content: flex-start; }
.op-title {
  width: 100%; font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: .3rem;
}
.op {
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500;
  padding: .3rem .7rem; border-radius: var(--radius-sm); border: 1px solid;
}
.op-yes { background: var(--success-bg); color: var(--success-text); border-color: var(--success-border); }
.op-no {
  background: transparent; color: var(--text-muted); border-color: var(--border-color-strong);
  border-style: dashed; text-decoration: line-through;
}

/* ---------- Small headings inside cards ---------- */
.mini-h { font-size: .95rem; font-weight: 700; margin-bottom: .35rem; }
.mini-p { margin: 0; color: var(--text-secondary); font-size: .92rem; }

/* ---------- Coverage ---------- */
.coverage-row {
  display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: center;
  padding: .95rem 0; border-bottom: 1px solid var(--border-color);
}
.coverage-row:last-child { border-bottom: 0; }
.coverage-num {
  width: 3rem; height: 3rem; border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-muted); color: var(--text-primary);
  font-weight: 800; font-size: 1.1rem; border: 1px solid var(--border-color);
}
.coverage-title { font-weight: 600; }
.coverage-sub { font-size: .85rem; color: var(--text-muted); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: var(--bg-secondary); }
.section-alt .table-wrap { background: var(--bg-primary); }
table.cmp { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
table.cmp th, table.cmp td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--border-color); vertical-align: top; }
table.cmp thead th {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-muted); font-weight: 700;
}
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td:first-child { font-weight: 600; color: var(--text-primary); width: 26%; }
table.cmp .yes { color: var(--success-text); font-weight: 600; }
table.cmp .no { color: var(--text-muted); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.25rem; align-items: start; }
.price-amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price-per { font-size: .95rem; color: var(--text-muted); font-weight: 500; }
.price-list { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.price-list li { display: flex; gap: .55rem; font-size: .93rem; color: var(--text-secondary); }
.price-list svg { flex: none; margin-top: .3rem; color: var(--accent-secondary); }
.topups { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .35rem; }
.topup {
  border: 1px solid var(--border-color-strong); border-radius: var(--radius-sm);
  padding: .4rem .8rem; font-weight: 600; font-size: .9rem; background: var(--bg-secondary);
}
.section-alt .topup { background: var(--bg-primary); }

/* ---------- FAQ ---------- */
details.faq {
  border: 1px solid var(--border-color); border-radius: var(--radius-md);
  background: var(--bg-secondary); padding: 0; margin-bottom: .7rem;
}
.section-alt details.faq { background: var(--bg-primary); }
details.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 1.15rem;
  font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font-weight: 400; font-size: 1.25rem; color: var(--text-muted); line-height: 1; flex: none;
}
details.faq[open] summary::after { content: "\2212"; }
details.faq p { margin: 0 1.15rem 1.15rem; color: var(--text-secondary); font-size: .94rem; }

/* ---------- Final CTA ---------- */
.cta-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2.75rem 2rem;
  text-align: center;
}
.cta-card h2 { margin-bottom: .6rem; }
.cta-card .lead { margin: 0 auto 1.75rem; }
.cta-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.app-footer {
  color: var(--text-muted); font-size: .82rem;
  padding: 2rem 1rem 2.5rem; border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}
.footer-inner { max-width: var(--content-max-width); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.disclaimer { max-width: var(--content-max-width); margin: 1.25rem auto 0; font-size: .78rem; line-height: 1.55; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .safe-panel { grid-template-columns: 1fr; gap: 1.5rem; }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: 1fr; }
  .boundary { grid-template-columns: 1fr; }
  .boundary-line { flex-direction: row; padding: .25rem 0; }
  .boundary-line .dash { width: auto; height: 2px; flex: 1; background: repeating-linear-gradient(to right, var(--border-color-strong) 0 6px, transparent 6px 12px); }
  .boundary-line .tag { writing-mode: horizontal-tb; transform: none; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .section { padding: 3.25rem 1rem; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .cta-card { padding: 2rem 1.25rem; }
}

/* ---------- Cookie consent banner ----------
   Rendered by assets/site.js only when no choice has been recorded yet.
   "Accept" and "Essential only" are deliberately the same size, weight and
   visual prominence: under the GDPR and the ePrivacy rules, refusing must be
   as easy as accepting, and a greyed-out reject button is the single most
   commonly sanctioned dark pattern in cookie banners. */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200;
  max-width: 560px; margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  padding: 1.25rem 1.35rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1rem; margin: 0 0 .45rem; }
.cookie-banner p { margin: 0 0 1rem; font-size: .88rem; color: var(--text-secondary); line-height: 1.55; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.cookie-actions .btn { flex: 1 1 auto; min-width: 150px; }
.cookie-actions a.cookie-more { font-size: .85rem; margin-left: auto; }
@media (max-width: 520px) {
  .cookie-actions .btn { flex: 1 1 100%; }
  .cookie-actions a.cookie-more { margin: .35rem auto 0; }
}

/* The footer entry that reopens the banner. Consent has to be as easy to
   withdraw as it was to give, so this link is permanent, not a one-off. */
.cookie-reopen { background: none; border: none; padding: 0; font: inherit; color: var(--accent-primary); cursor: pointer; }
.cookie-reopen:hover { color: var(--accent-primary-hover); text-decoration: underline; }

/* ---------- Legal pages (terms.html, privacy.html) ---------- */
.legal-shell { max-width: 820px; margin: 0 auto; padding: 3rem 1rem 4rem; }
.legal-shell h1 { font-size: clamp(1.75rem, 3.4vw, 2.35rem); margin-bottom: .35rem; }
.legal-meta { color: var(--text-muted); font-size: .85rem; margin: 0 0 1.5rem; }
.legal-body { }
.legal-body h2 {
  font-size: 1.1rem; font-weight: 700; margin: 2.25rem 0 .6rem;
  padding-top: 1.25rem; border-top: 1px solid var(--border-color);
}
.legal-body h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1rem; }
.legal-body h3 { font-size: .98rem; margin: 1.25rem 0 .4rem; }
.legal-body p, .legal-body li { color: var(--text-secondary); font-size: .95rem; }
.legal-body ul { padding-left: 1.15rem; }
.legal-body li { margin-bottom: .4rem; }
.legal-body code { font-size: .85rem; background: var(--surface-muted); padding: .1rem .35rem; border-radius: var(--radius-sm); }
.draft-notice {
  border: 1px solid var(--warning-border); background: var(--warning-bg); color: var(--warning-text);
  border-radius: var(--radius-md); padding: 1rem 1.15rem; font-size: .9rem; margin-bottom: 1.75rem;
}
.draft-notice strong { display: block; margin-bottom: .3rem; }
.placeholder {
  border: 1px dashed var(--border-color-strong); border-radius: var(--radius-sm);
  padding: .1rem .45rem; font-family: var(--font-mono); font-size: .82rem; color: var(--text-muted);
}
table.legal { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1rem 0; }
table.legal th, table.legal td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--border-color); vertical-align: top; }
table.legal thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
table.legal td:first-child { font-family: var(--font-mono); font-size: .82rem; white-space: nowrap; }

/* ---------- Flow diagram (index.html, "How it works") ----------
   Inline SVG rather than an exported image: it reads the same tokens as the
   rest of the page, so it follows light/dark and never ships a stale PNG. */
.flow-figure { margin: 3rem 0 0; }
.flow-figure svg { width: 100%; height: auto; display: block; }
.flow-figure figcaption {
  margin-top: 1rem; font-size: .88rem; color: var(--text-muted);
  max-width: 70ch; margin-left: auto; margin-right: auto; text-align: center;
}
.flow-box { fill: var(--bg-secondary); stroke: var(--border-color-strong); stroke-width: 1.5; }
.section-alt .flow-box { fill: var(--bg-primary); }
.flow-box-gate { stroke: var(--accent-primary); stroke-width: 2; }
.flow-box-target { stroke: var(--accent-secondary); stroke-width: 2; stroke-dasharray: 5 4; }
.flow-h { fill: var(--text-primary); font-family: var(--font-sans); font-size: 15px; font-weight: 700; }
.flow-p { fill: var(--text-muted); font-family: var(--font-sans); font-size: 12.5px; }
.flow-zone {
  fill: var(--text-muted); font-family: var(--font-sans); font-size: 11.5px;
  font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
}
.flow-gate { fill: var(--text-muted); font-family: var(--font-sans); font-size: 11px; letter-spacing: .6px; }
.flow-boundary { stroke: var(--border-color-strong); stroke-width: 2; stroke-dasharray: 6 6; }
.flow-arrow { stroke: var(--border-color-strong); stroke-width: 2; fill: none; }
.flow-arrow-back { stroke-dasharray: 4 4; }
.flow-arrow-head { fill: var(--border-color-strong); }
@media (max-width: 700px) {
  .flow-figure { overflow-x: auto; }
  .flow-figure svg { min-width: 640px; }
}
