/* ============================================================================
   Natre Ads Manager — natreadsmanager.com
   Design system: faithful plain-CSS translation of NatreBrand.md v1.6
   Every color / type / spacing / radius / shadow / motion value below is a
   token from the brand doc. No arbitrary values.
   ============================================================================ */

/* ── prefers-reduced-motion (BRAND §12.4 — must be first) ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Design tokens — Light mode (BRAND §2.1 / §8.1 / §12) ──────────────────── */
:root {
  /* fonts (§3.1) */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* surfaces & text */
  --color-bg-page: #FAFAFA;
  --color-bg-surface: #FFFFFF;
  --color-bg-subtle: #F5F5F5;
  --color-bg-overlay: rgba(10, 10, 10, 0.5);
  --color-text-primary: #0A0A0A;
  --color-text-secondary: #525252;
  --color-text-tertiary: #A3A3A3;
  --color-border-default: #E5E5E5;
  --color-border-strong: #D4D4D4;

  /* accent (§2.4 — light = finance blue) */
  --color-accent: #1D4ED8;
  --color-accent-hover: #1E40AF;
  --color-accent-soft: #DBEAFE;
  --focus-ring: 0 0 0 3px rgba(29, 78, 216, 0.20);

  /* inverse / deep (§2.1) */
  --color-bg-inverse: #0A0A0A;
  --color-bg-deep: #383838;
  --color-text-on-inverse: #FAFAFA;

  /* semantic (§2.3) */
  --color-success: #16A34A;
  --color-success-bg: #DCFCE7;
  --color-warning: #D97706;
  --color-warning-bg: #FEF3C7;
  --color-error: #DC2626;
  --color-error-bg: #FEE2E2;

  /* shadows (§8.1) */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.10);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.14);

  /* radius (§7.1) */
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-3xl: 24px;
  --radius-full: 9999px;

  /* motion (§12) */
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* layout */
  --nav-h: 65px;
  --container: 1280px; /* max-w-7xl */
  --container-prose: 768px; /* max-w-3xl */
}

/* Dark tokens block reused in two places (system pref + explicit toggle).
   BRAND §2.2 / §8.2 — Pure Carbon grayscale, accent becomes white. */
:root[data-theme="dark"] {
  --color-bg-page: #0A0A0A;
  --color-bg-surface: #161616;
  --color-bg-subtle: #1F1F1F;
  --color-bg-overlay: rgba(0, 0, 0, 0.7);
  --color-text-primary: #FAFAFA;
  --color-text-secondary: #A3A3A3;
  --color-text-tertiary: #71717A;
  --color-border-default: #262626;
  --color-border-strong: #404040;

  --color-accent: #FAFAFA;
  --color-accent-hover: #E5E5E5;
  --color-accent-soft: #1F1F1F;
  --focus-ring: 0 0 0 3px rgba(250, 250, 250, 0.30);

  --color-bg-inverse: #161616;
  --color-bg-deep: #1F1F1F;

  --color-success: #22C55E;
  --color-success-bg: #14532D;
  --color-warning: #F59E0B;
  --color-warning-bg: #78350F;
  --color-error: #EF4444;
  --color-error-bg: #7F1D1D;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.40);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.50);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.60);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.70);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg-page: #0A0A0A;
    --color-bg-surface: #161616;
    --color-bg-subtle: #1F1F1F;
    --color-bg-overlay: rgba(0, 0, 0, 0.7);
    --color-text-primary: #FAFAFA;
    --color-text-secondary: #A3A3A3;
    --color-text-tertiary: #71717A;
    --color-border-default: #262626;
    --color-border-strong: #404040;

    --color-accent: #FAFAFA;
    --color-accent-hover: #E5E5E5;
    --color-accent-soft: #1F1F1F;
    --focus-ring: 0 0 0 3px rgba(250, 250, 250, 0.30);

    --color-bg-inverse: #161616;
    --color-bg-deep: #1F1F1F;

    --color-success: #22C55E;
    --color-success-bg: #14532D;
    --color-warning: #F59E0B;
    --color-warning-bg: #78350F;
    --color-error: #EF4444;
    --color-error-bg: #7F1D1D;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.30);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.40);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.50);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.60);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.70);
  }
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}
body {
  font-family: var(--font-sans);
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color var(--duration-base) var(--ease-in-out),
              color var(--duration-base) var(--ease-in-out);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-md);
}

/* ── Typography (BRAND §3.3) ───────────────────────────────────────────────── */
.eyebrow {
  font-size: 0.75rem;      /* 12 */
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.05em;  /* tracking-wider */
  text-transform: uppercase;
  color: var(--color-accent);
}
.h1-hero {
  font-size: 3rem;            /* 48 */
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-text-primary);
  text-wrap: balance;
}
.h1 {
  font-size: 2.25rem;         /* 36 */
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--color-text-primary);
  text-wrap: balance;
}
.h2 {
  font-size: 1.875rem;        /* 30 */
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--color-text-primary);
  text-wrap: balance;
}
.h3 {
  font-size: 1.25rem;         /* 20 */
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--color-text-primary);
}
.h4 {
  font-size: 1.125rem;        /* 18 */
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text-primary);
}
.lead {
  font-size: 1.125rem;        /* 18 */
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
  text-wrap: pretty;
}
.body { font-size: 1rem; line-height: 1.6; color: var(--color-text-secondary); }
.small { font-size: 0.875rem; line-height: 1.5; color: var(--color-text-secondary); }
.caption {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-tertiary);
}
.mono { font-family: var(--font-mono); font-size: 0.875rem; }

@media (min-width: 768px) {
  .h1-hero { font-size: 3.75rem; }  /* 60 */
  .h1 { font-size: 3rem; }          /* 48 */
  .h2 { font-size: 2.25rem; }       /* 36 */
  .h3 { font-size: 1.5rem; }        /* 24 */
  .lead { font-size: 1.25rem; }     /* 20 */
}
@media (min-width: 1024px) {
  .h1-hero { font-size: 4.5rem; }   /* 72 */
}

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem; /* px-6 */
}
.container-prose { max-width: var(--container-prose); }
@media (min-width: 768px) {
  .container { padding-inline: 2rem; } /* md:px-8 */
}

.section { padding-block: 5rem; }               /* py-20 */
@media (min-width: 1024px) { .section { padding-block: 8rem; } } /* lg:py-32 */
.section-compact { padding-block: 3rem; }        /* py-12 */
@media (min-width: 768px) { .section-compact { padding-block: 4rem; } } /* md:py-16 */

.section-alt { background: var(--color-bg-surface); border-block: 1px solid var(--color-border-default); }

.stack > * + * { margin-top: 1rem; }
.text-center { text-align: center; }
.max-measure { max-width: 42rem; }
.mx-auto { margin-inline: auto; }

/* ── Header / Nav (BRAND §13.6) ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--color-border-default);
  background: color-mix(in srgb, var(--color-bg-page) 80%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem; /* py-4 */
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  white-space: nowrap;
}
/* Logomark: the Natre geometric mark only (no "Natre" wordmark), inlined so it
   inherits currentColor and adapts light/dark. Paired with product name text. */
.brand__logo {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--color-text-primary);
  flex-shrink: 0;
}
.brand__product {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}
.nav { display: none; align-items: center; gap: 2rem; }
.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-primary);
  transition: opacity var(--duration-fast) var(--ease-out);
}
.nav a:hover { opacity: 0.65; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
@media (min-width: 1024px) { .nav { display: flex; } }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out);
}
.theme-toggle:hover { background: var(--color-bg-subtle); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* ── Buttons (BRAND §13.1) ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.5rem;   /* md: px-6 py-3 */
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
}
.btn--sm { padding: 0.5rem 1rem; }        /* px-4 py-2 */
.btn--lg { padding: 0.875rem 2rem; font-size: 1rem; } /* px-8 py-3.5 */

.btn--primary {
  background: var(--color-accent);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .btn--primary { color: var(--color-bg-page); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn--primary { color: var(--color-bg-page); }
}

.btn--secondary {
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  border-color: var(--color-border-default);
}
.btn--secondary:hover { background: var(--color-bg-subtle); border-color: var(--color-border-strong); }

.btn--ghost { background: transparent; color: var(--color-text-primary); padding: 0.5rem 1rem; }
.btn--ghost:hover { background: var(--color-bg-subtle); }

.btn--link {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-accent);
  gap: 0.25rem;
}
.btn--link:hover { opacity: 0.85; }

.btn--full { width: 100%; }

/* ── Badge / eyebrow pill (BRAND §13.9) ───────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: var(--radius-full);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.badge--muted { background: var(--color-bg-subtle); color: var(--color-text-secondary); }
.badge--dot::before {
  content: "";
  width: 0.375rem; height: 0.375rem;
  border-radius: var(--radius-full);
  background: currentColor;
}

/* ── Card (BRAND §13.2) ───────────────────────────────────────────────────── */
.card {
  position: relative;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border-default);
  background: var(--color-bg-surface);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}
.card--hover:hover { transform: translateY(-2px); border-color: var(--color-border-strong); box-shadow: var(--shadow-md); }
.card--feature { border-radius: var(--radius-3xl); padding: 2rem; }
@media (min-width: 768px) { .card { padding: 2rem; } .card--feature { padding: 2.5rem; } }

.card__icon {
  display: inline-flex;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}
.card__icon svg { width: 2.5rem; height: 2.5rem; }
.card__title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.025em; color: var(--color-text-primary); }
.card__body { margin-top: 0.75rem; font-size: 1rem; line-height: 1.6; color: var(--color-text-secondary); }

/* ── Grid ─────────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding-top: calc(var(--nav-h) + 4rem); padding-bottom: 6rem; overflow: hidden; }
@media (min-width: 768px) { .hero { padding-top: calc(var(--nav-h) + 6rem); padding-bottom: 8rem; } }
.hero__eyebrow { margin-bottom: 1rem; }
.hero__title { margin-bottom: 1.5rem; }
.hero__lead { max-width: 40rem; margin-bottom: 2.5rem; }
.hero__actions { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .hero__actions { flex-direction: row; } }

/* Ambient glow (BRAND §11.2 natre-ambient-glow) — allowed on hero/CTA only */
.ambient-glow { position: relative; isolation: isolate; }
.ambient-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 25% 30%, rgba(29, 78, 216, 0.08), transparent 60%),
    radial-gradient(ellipse 40% 35% at 80% 70%, rgba(29, 78, 216, 0.06), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
:root[data-theme="dark"] .ambient-glow::after {
  background:
    radial-gradient(ellipse 50% 40% at 25% 30%, rgba(250, 250, 250, 0.04), transparent 60%),
    radial-gradient(ellipse 40% 35% at 80% 70%, rgba(250, 250, 250, 0.03), transparent 60%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ambient-glow::after {
    background:
      radial-gradient(ellipse 50% 40% at 25% 30%, rgba(250, 250, 250, 0.04), transparent 60%),
      radial-gradient(ellipse 40% 35% at 80% 70%, rgba(250, 250, 250, 0.03), transparent 60%);
  }
}

/* Ambient dot grid (BRAND §11.2 natre-ambient-grid) */
.ambient-grid { position: relative; isolation: isolate; }
.ambient-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(10, 10, 10, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
:root[data-theme="dark"] .ambient-grid::before { background-image: radial-gradient(circle, rgba(250, 250, 250, 0.06) 1px, transparent 1px); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ambient-grid::before { background-image: radial-gradient(circle, rgba(250, 250, 250, 0.06) 1px, transparent 1px); }
}

/* ── Platform chips ───────────────────────────────────────────────────────── */
.platform-list { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-default);
  background: var(--color-bg-surface);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-primary);
}
.platform-chip__dot { width: 0.5rem; height: 0.5rem; border-radius: var(--radius-full); }
/* External brand identifiers — allowed inline per BRAND §2.6 (platform representation) */
.dot-google { background: #4285F4; }
.dot-meta { background: #0668E1; }
.dot-tiktok { background: #69C9D0; }

/* Section head block */
.section-head { max-width: 42rem; margin-bottom: 3rem; }
.section-head .eyebrow { margin-bottom: 0.75rem; }
.section-head .h2 { margin-bottom: 1rem; }

/* ── Feature/step list ────────────────────────────────────────────────────── */
.feature-icon {
  display: inline-flex; color: var(--color-accent); flex-shrink: 0;
}
.feature-icon svg { width: 2.25rem; height: 2.25rem; }
.check-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.check-item svg { color: var(--color-success); flex-shrink: 0; margin-top: 0.125rem; }
.check-list { display: grid; gap: 0.875rem; }

/* ── Callout / notice box ─────────────────────────────────────────────────── */
.callout {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border-default);
  background: var(--color-bg-subtle);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}
.callout svg { color: var(--color-accent); flex-shrink: 0; margin-top: 0.125rem; }
.callout--accent { background: var(--color-accent-soft); border-color: transparent; }
.callout__title { font-weight: 500; color: var(--color-text-primary); }
.callout__body { font-size: 0.875rem; line-height: 1.5; color: var(--color-text-secondary); margin-top: 0.25rem; }

/* ── Inverse / deep CTA band (BRAND §2.4 inverse surface) ─────────────────── */
.band-inverse {
  border-radius: var(--radius-3xl);
  background: var(--color-bg-inverse);
  color: var(--color-text-on-inverse);
  padding: 3rem 2rem;
  text-align: center;
}
@media (min-width: 768px) { .band-inverse { padding: 4rem 3rem; } }
.band-inverse .h2 { color: var(--color-text-on-inverse); }
.band-inverse .lead { color: color-mix(in srgb, var(--color-text-on-inverse) 70%, transparent); }
.band-inverse .btn--primary { background: var(--color-text-on-inverse); color: #0A0A0A; }
.band-inverse .btn--primary:hover { background: color-mix(in srgb, var(--color-text-on-inverse) 90%, #000); }

/* ── Prose (legal pages) ──────────────────────────────────────────────────── */
.prose { color: var(--color-text-secondary); font-size: 1rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 {
  font-size: 1.5rem; font-weight: 600; letter-spacing: -0.025em;
  color: var(--color-text-primary); line-height: 1.25;
  margin-top: 3rem; scroll-margin-top: calc(var(--nav-h) + 24px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.125rem; font-weight: 600; color: var(--color-text-primary);
  margin-top: 2rem; line-height: 1.3;
}
.prose p { color: var(--color-text-secondary); }
.prose strong { color: var(--color-text-primary); font-weight: 600; }
.prose a:not(.btn) { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.prose a:not(.btn):hover { opacity: 0.85; }
.prose ul, .prose ol { display: grid; gap: 0.5rem; padding-left: 1.25rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { padding-left: 0.25rem; }
.prose li::marker { color: var(--color-text-tertiary); }
.prose code {
  font-family: var(--font-mono); font-size: 0.8125rem;
  background: var(--color-bg-subtle); border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md); padding: 0.1rem 0.375rem;
  color: var(--color-text-primary);
}
.prose table {
  width: 100%; border-collapse: collapse; font-size: 0.875rem;
  border: 1px solid var(--color-border-default); border-radius: var(--radius-lg);
  overflow: hidden;
}
.prose th, .prose td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border-default); vertical-align: top; }
.prose th { background: var(--color-bg-subtle); color: var(--color-text-primary); font-weight: 600; }
.prose tr:last-child td { border-bottom: none; }
.prose-table-wrap { overflow-x: auto; }
.prose .callout__body a { color: var(--color-accent); }
.prose .check-item span { color: var(--color-text-secondary); }

/* Legal page header */
.page-head { padding-top: calc(var(--nav-h) + 4rem); padding-bottom: 3rem; }
@media (min-width: 768px) { .page-head { padding-top: calc(var(--nav-h) + 5rem); } }
.page-head .h1 { margin-bottom: 1rem; }

/* Table of contents */
.toc {
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-2xl);
  background: var(--color-bg-surface);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.toc__title { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-tertiary); margin-bottom: 1rem; }
.toc ol { display: grid; gap: 0.5rem; counter-reset: toc; }
.toc a { font-size: 0.875rem; color: var(--color-text-secondary); display: flex; gap: 0.625rem; transition: color var(--duration-fast) var(--ease-out); }
.toc a:hover { color: var(--color-accent); }
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); color: var(--color-text-tertiary); font-variant-numeric: tabular-nums; }

.legal-layout { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .legal-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 4rem; align-items: start; } .legal-layout .toc { position: sticky; top: calc(var(--nav-h) + 24px); } }

.updated-meta { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-text-tertiary); }

/* ── Footer (BRAND §13.7) ─────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--color-border-default); background: var(--color-bg-page); }
.site-footer__inner { padding-top: 4rem; padding-bottom: 3rem; }
@media (min-width: 1024px) { .site-footer__inner { padding-top: 6rem; } }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 4rem; } }
.footer-brand__lockup { display: inline-flex; align-items: center; gap: 0.75rem; }
.footer-brand__logo { width: 2.25rem; height: 2.25rem; color: var(--color-text-primary); flex-shrink: 0; }
.footer-brand__name { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; color: var(--color-text-primary); }
.footer-brand__desc { margin-top: 1rem; max-width: 28rem; font-size: 0.875rem; color: var(--color-text-secondary); line-height: 1.6; }
.footer-col__title { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-tertiary); margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: 0.75rem; }
.footer-col a { font-size: 0.875rem; color: var(--color-text-secondary); transition: color var(--duration-fast) var(--ease-out); }
.footer-col a:hover { color: var(--color-text-primary); }
.footer-bottom {
  margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--color-border-default);
  display: flex; flex-direction: column; gap: 1rem;
  font-size: 0.75rem; color: var(--color-text-tertiary);
}
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-bottom a:hover { color: var(--color-text-primary); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ── Definition rows (privacy data table alt) ─────────────────────────────── */
.def-grid { display: grid; gap: 1rem; }
.def-row { border: 1px solid var(--color-border-default); border-radius: var(--radius-xl); background: var(--color-bg-surface); padding: 1.25rem 1.5rem; }
.def-row__label { font-weight: 600; color: var(--color-text-primary); font-size: 0.9375rem; }
.def-row__value { margin-top: 0.375rem; font-size: 0.9375rem; color: var(--color-text-secondary); line-height: 1.55; }

/* ── Icons (BRAND §9.2 size scale, expressed as CSS) ──────────────────────── */
.ico { width: 1.25rem; height: 1.25rem; }   /* size-5 default */
.ico-sm { width: 1rem; height: 1rem; }        /* size-4 */
.ico-md { width: 1.5rem; height: 1.5rem; }     /* size-6 */
.ico-lg { width: 1.75rem; height: 1.75rem; }   /* size-7 */
.ico-xl { width: 2rem; height: 2rem; }         /* size-8 */

/* Duotone layers — soft filled base + solid detail, both currentColor */
.i-fill { fill: currentColor; fill-opacity: 0.18; }
.i-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Utilities ────────────────────────────────────────────────────────────── */
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.muted { color: var(--color-text-tertiary); }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: initial; } }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-accent); color: #fff; padding: 0.75rem 1.25rem; border-radius: var(--radius-full);
}
.skip-link:focus { left: 1rem; top: 1rem; }
