/* ────────────────────────────────────────────────────────────
   NIDS — shared stylesheet
   Extracted from redesign/index.html prototype; extended with
   long-form reading layout for legal pages and legacy aliases
   so inline style="color:var(--cobalt);..." references in the
   current legal markup continue to resolve.
   ──────────────────────────────────────────────────────────── */

/* ────────────────────────────────────────────────────────────
   TOKENS
   ──────────────────────────────────────────────────────────── */
:root {
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1180px;
}

/* Dark (default) */
[data-theme="dark"] {
  --bg:           #0A0A0B;
  --bg-elev:      #111114;
  --bg-elev-2:    #18181C;
  --bg-inset:     #060607;

  --fg:           #FAFAFA;
  --fg-2:         #B4B4B8;
  --fg-3:         #71717A;
  --fg-4:         #52525B;

  --border:       rgba(255, 255, 255, 0.07);
  --border-2:     rgba(255, 255, 255, 0.12);

  --accent:       #38BDF8;       /* sky-400 */
  --accent-2:     #0EA5E9;       /* sky-500 */
  --accent-fg:    #03263A;
  --accent-soft:  rgba(56, 189, 248, 0.10);

  --grad-hero:    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56,189,248,0.18) 0%, transparent 55%),
                  radial-gradient(ellipse 60% 50% at 90% 10%, rgba(99,102,241,0.10) 0%, transparent 55%);
  --shadow:       0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0,0,0,0.35);

  color-scheme: dark;
}

/* Light */
[data-theme="light"] {
  --bg:           #FAFAF9;
  --bg-elev:      #FFFFFF;
  --bg-elev-2:    #F4F4F2;
  --bg-inset:     #F0EFEC;

  --fg:           #0A0A0B;
  --fg-2:         #3F3F46;
  --fg-3:         #52525B;
  --fg-4:         #71717A;

  --border:       rgba(0, 0, 0, 0.07);
  --border-2:     rgba(0, 0, 0, 0.12);

  --accent:       #0284C7;
  --accent-2:     #0369A1;
  --accent-fg:    #F0F9FF;
  --accent-soft:  rgba(2, 132, 199, 0.08);

  --grad-hero:    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(2,132,199,0.10) 0%, transparent 55%),
                  radial-gradient(ellipse 60% 50% at 90% 10%, rgba(99,102,241,0.06) 0%, transparent 55%);
  --shadow:       0 1px 0 rgba(0,0,0,0.02) inset, 0 4px 12px rgba(0,0,0,0.04);

  color-scheme: light;
}

/* Legacy aliases — keep `style="color:var(--cobalt);..."` refs in
   the legal markup working without rewriting that markup. */
:root,
[data-theme="dark"],
[data-theme="light"] {
  --cobalt:       var(--accent);
  --cobalt-deep:  var(--accent-2);
  --cyan:         var(--accent);
  --ink:          var(--fg);
  --ink-soft:     var(--fg-2);
  --white:        var(--bg);
}

/* ────────────────────────────────────────────────────────────
   RESET
   ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-sans);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: 0.5rem; left: 0.5rem; z-index: 200;
  padding: 0.5rem 0.9rem; background: var(--bg-elev); color: var(--fg);
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 500;
  transform: translateY(-200%); transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ────────────────────────────────────────────────────────────
   LAYOUT
   ──────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}
@media (min-width: 768px) {
  .container { padding-inline: 40px; }
}

section { padding-block: 96px; position: relative; }
@media (max-width: 768px) {
  section { padding-block: 72px; }
}

/* ────────────────────────────────────────────────────────────
   TYPOGRAPHY
   ──────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg-3);
  text-transform: none;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

.display {
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: var(--fg);
}
.display .accent { color: var(--accent); }

.h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--fg);
}
.h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.lede {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 60ch;
  font-weight: 400;
}
.muted { color: var(--fg-3); }
.small { font-size: 0.875rem; line-height: 1.55; color: var(--fg-2); }
.mono { font-family: var(--font-mono); }

/* ────────────────────────────────────────────────────────────
   BUTTONS
   ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.9375rem; font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.12s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); color: var(--accent-fg); }
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-2);
}
.btn-secondary:hover { border-color: var(--fg-3); background: var(--bg-elev); }
.btn-ghost {
  background: transparent;
  color: var(--fg-2);
  padding: 8px 12px;
}
.btn-ghost:hover { color: var(--fg); }
.btn-lg { padding: 13px 22px; font-size: 1rem; border-radius: var(--radius); }

/* ────────────────────────────────────────────────────────────
   NAV
   ──────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; letter-spacing: -0.01em;
  font-size: 1.0625rem;
  color: var(--fg);
}
.brand-mark {
  width: auto;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  padding: 8px 12px;
  font-size: 0.9375rem;
  color: var(--fg-2);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--fg); }
.nav-link[aria-current="page"] { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle, .menu-toggle {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--fg-2);
  transition: background 0.15s, color 0.15s;
}
.theme-toggle:hover, .menu-toggle:hover { background: var(--bg-elev); color: var(--fg); }
.menu-toggle { display: none; }

[data-theme="dark"]  .icon-sun  { display: block; }
[data-theme="dark"]  .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Mobile menu overlay */
.menu-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg);
  padding: 60px 24px 32px;
  display: flex; flex-direction: column;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.menu-overlay.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.menu-overlay-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 24px; border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.menu-overlay nav { display: flex; flex-direction: column; gap: 4px; }
.menu-overlay nav a {
  padding: 14px 4px;
  font-size: 1.25rem; font-weight: 500;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
}
.menu-overlay .btn { margin-top: 24px; align-self: flex-start; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .desktop-cta { display: none; }
}

/* ────────────────────────────────────────────────────────────
   HERO
   ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: 96px; padding-bottom: 64px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--grad-hero);
  pointer-events: none;
}
.hero-canvas {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black 30%, transparent 75%);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .hero-canvas { display: none; } }

.hero-inner {
  position: relative; z-index: 1;
  max-width: 880px;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 28px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.032em;
}
.hero p {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 56ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 24px;
  margin-top: 16px; padding-top: 24px;
  border-top: 1px solid var(--border);
  width: 100%;
}
.hero-meta-item { display: flex; flex-direction: column; gap: 2px; }
.hero-meta-k { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.02em; }
.hero-meta-v { font-size: 0.875rem; color: var(--fg); font-weight: 500; }

@media (max-width: 768px) {
  .hero { padding-top: 56px; padding-bottom: 48px; }
}

/* ────────────────────────────────────────────────────────────
   TRUST STRIP
   ──────────────────────────────────────────────────────────── */
.trust {
  padding-block: 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-inner {
  display: flex; flex-wrap: wrap; gap: 12px 32px;
  align-items: center; justify-content: space-between;
}
.trust-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3); letter-spacing: 0.02em;
  flex-shrink: 0;
}
.trust-tags {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
}
.trust-tag {
  font-size: 0.8125rem;
  color: var(--fg-2);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* ────────────────────────────────────────────────────────────
   SECTION HEADER
   ──────────────────────────────────────────────────────────── */
.section-head {
  display: grid; gap: 16px;
  max-width: 760px;
  margin-bottom: 56px;
}
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ────────────────────────────────────────────────────────────
   SERVICES
   ──────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }

.service {
  background: var(--bg-elev);
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  transition: background 0.2s var(--ease);
  position: relative;
}
.service:hover { background: var(--bg-elev-2); }
.service-head { display: flex; align-items: center; justify-content: space-between; }
.service-tag {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3); letter-spacing: 0.02em;
}
.service-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-inset);
  color: var(--fg-2);
  border: 1px solid var(--border);
}
.service-icon svg { width: 18px; height: 18px; }
.service h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--fg);
}
.service p { color: var(--fg-2); line-height: 1.55; font-size: 0.9375rem; }
.service-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto; padding-top: 12px;
}
.service-chip {
  font-size: 0.75rem;
  color: var(--fg-3);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

/* ────────────────────────────────────────────────────────────
   CAPABILITIES + METRICS
   ──────────────────────────────────────────────────────────── */
.cap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: flex-start;
}
@media (max-width: 960px) { .cap { grid-template-columns: 1fr; gap: 40px; } }

.cap-list { display: flex; flex-direction: column; }
.cap-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.cap-item:last-child { border-bottom: 1px solid var(--border); }
.cap-item-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3); padding-top: 3px;
}
.cap-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.01em; }
.cap-item p { color: var(--fg-2); font-size: 0.9375rem; line-height: 1.55; }

.metrics {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
  position: relative;
  overflow: hidden;
}
.metrics::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
  pointer-events: none;
}
.metric { position: relative; }
.metric-v {
  font-size: 2.25rem; font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 8px;
  font-feature-settings: 'tnum';
}
.metric-l {
  font-size: 0.8125rem;
  color: var(--fg-3);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* ────────────────────────────────────────────────────────────
   PILLARS
   ──────────────────────────────────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .pillars-grid { grid-template-columns: 1fr; } }

.pillar {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.pillar:hover { border-color: var(--border-2); }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--fg-3);
  letter-spacing: 0.02em;
}
.pillar h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; }
.pillar p { font-size: 0.9375rem; color: var(--fg-2); line-height: 1.55; }

/* ────────────────────────────────────────────────────────────
   ABOUT
   ──────────────────────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) { .about { grid-template-columns: 1fr; gap: 40px; } }

.quote {
  padding: 24px 0 0 24px;
  border-left: 2px solid var(--accent);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.quote cite {
  display: block; margin-top: 12px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
}

.about-visual {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--bg-elev);
  display: grid; gap: 24px;
}
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.about-stat-v {
  font-size: 2rem; font-weight: 600; letter-spacing: -0.035em; line-height: 1;
  font-feature-settings: 'tnum';
}
.about-stat-l { font-size: 0.8125rem; color: var(--fg-3); margin-top: 6px; }

/* ────────────────────────────────────────────────────────────
   CONTACT
   ──────────────────────────────────────────────────────────── */
.contact {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
  background:
    radial-gradient(ellipse 80% 100% at 100% 0%, var(--accent-soft) 0%, transparent 60%),
    var(--bg-elev);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 960px) {
  .contact { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
}
.contact h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); letter-spacing: -0.025em; line-height: 1.1; }
.contact-paths { display: grid; gap: 16px; }
.contact-path {
  display: flex; align-items: center; gap: 16px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.contact-path:hover { border-color: var(--border-2); }
.contact-path-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-elev-2);
  color: var(--fg);
  flex-shrink: 0;
}
.contact-path-icon svg { width: 18px; height: 18px; }
.contact-path-body { flex: 1; min-width: 0; }
.contact-path-title { font-weight: 500; font-size: 0.9375rem; }
.contact-path-sub { font-size: 0.8125rem; color: var(--fg-3); margin-top: 2px; }
.contact-path-arrow { color: var(--fg-3); flex-shrink: 0; transition: transform 0.2s var(--ease), color 0.2s var(--ease); }
.contact-path:hover .contact-path-arrow { transform: translateX(2px); color: var(--fg); }

/* ────────────────────────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { font-size: 0.875rem; color: var(--fg-3); line-height: 1.55; max-width: 28ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  color: var(--fg-3); letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--fg-2);
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.footer-bottom p, .footer-bottom a { font-size: 0.8125rem; color: var(--fg-3); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { color: var(--fg); }

/* ────────────────────────────────────────────────────────────
   SCROLL REVEAL
   ──────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ────────────────────────────────────────────────────────────
   LEGAL — long-form reading layout
   ──────────────────────────────────────────────────────────── */
.legal-hero {
  padding-top: 64px;
  padding-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.legal-hero .hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--grad-hero); pointer-events: none; }
.legal-hero-inner {
  position: relative; z-index: 1;
  max-width: 720px;
  display: flex; flex-direction: column; gap: 16px;
}
.legal-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--fg);
}
.legal-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.02em;
}
.legal-meta strong { color: var(--fg-2); font-weight: 500; }

.legal-container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-inline: 24px;
}
@media (min-width: 768px) {
  .legal-container { padding-inline: 40px; }
}

.legal-body {
  padding-block: 56px 96px;
}
@media (max-width: 768px) {
  .legal-body { padding-block: 40px 72px; }
}

/* Table of contents */
.legal-toc {
  margin-bottom: 48px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
}
.legal-toc h2 {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  color: var(--fg-3); letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.legal-toc ol {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
  counter-reset: toc;
}
@media (max-width: 600px) { .legal-toc ol { grid-template-columns: 1fr; } }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex; gap: 10px;
  padding: 6px 0;
  font-size: 0.9375rem;
  color: var(--fg-2);
  transition: color 0.15s;
}
.legal-toc a:hover { color: var(--fg); }
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-4);
  flex-shrink: 0;
  padding-top: 3px;
}

/* Notice banner (Intuit / Agreement) */
.intuit-notice,
.agreement-notice {
  padding: 20px 24px;
  margin-bottom: 40px;
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--fg-2);
}
.intuit-notice strong,
.agreement-notice strong { color: var(--fg); font-weight: 600; }

/* Sections */
.legal-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.legal-section:first-of-type { border-top: 0; padding-top: 0; }
.legal-section-num {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  color: var(--fg-3); letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--fg);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.legal-section h2 .icon {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--fg-2);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.legal-section h2 .icon svg { width: 16px; height: 16px; }
.legal-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg-2);
  margin-bottom: 14px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section strong { color: var(--fg); font-weight: 600; }
.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-2);
  transition: text-decoration-color 0.15s;
}
.legal-section a:hover { text-decoration-color: var(--accent); }
.legal-section ul {
  margin: 0 0 14px 0;
  padding-left: 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.legal-section ul li {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fg-2);
}
.legal-section ul li::marker { color: var(--fg-4); }

.legal-section .highlight {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--fg);
}

/* Contact CTA at bottom of each legal page */
.legal-cta {
  margin-top: 48px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  text-align: center;
}
.legal-cta h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-bottom: 8px;
}
.legal-cta p {
  font-size: 0.9375rem;
  color: var(--fg-2);
  line-height: 1.55;
  margin-bottom: 20px;
}
.legal-cta a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.legal-cta a:hover { background: var(--accent); color: var(--accent-fg); }

/* Restriction list shares the same look as default <ul> */
ul.restriction-list { list-style: disc; }
