/* Nexus Core (US) — site stylesheet (shared by /, /terms, /privacy).
   Header, Hero, Pricing and FAQ rules are the approved Gate 2 prototype CSS, unchanged.
   Features, Security, Final CTA, Footer and legal-page rules added from
   ART_DIRECTION.md §4.3, §4.4, §4.7, §4.8, §4.9 (source Tailwind classes). */

/* ---------- Fonts (local woff2, ART_DIRECTION §3.2) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/montserrat-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial");
  ascent-override: 85.79%;
  descent-override: 22.25%;
  line-gap-override: 0%;
  size-adjust: 112.83%;
}

/* ---------- Design tokens (ART_DIRECTION §3) ---------- */
:root {
  color-scheme: dark;

  /* Colour §3.1 */
  --background: #0a0a0a;
  --foreground: #f2f4f8;
  --card: #111214;
  --primary: #2f7bff;
  --primary-fill: #2869d9;        /* NEW D-005 */
  --primary-fill-hover: #2560c4;  /* NEW D-005 */
  --secondary: #17191d;
  --muted-foreground: #8b919c;
  --border: #ffffff14;
  --gradient-end: #7fb0ff;
  --grid-line: #ffffff0a;

  /* Type §3.2 */
  --font-sans: "Inter", "Inter Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-heading: "Montserrat", "Montserrat Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --tracking-tight: -0.025em;
  --tracking-widest: 0.1em;

  /* Radii §3.3 */
  --radius-lg: 12px;
  --radius-xl: 16.8px;
  --radius-2xl: 21.6px;
  --radius-3xl: 26.4px;

  /* Layout §3.7 */
  --container: 1152px;
  --gutter: 24px;
  --header-h: 64px;
  --section-py: 96px;

  /* Effects §3.5 */
  --glow-primary: 0 0 0 1px #2f7bff80, 0 8px 32px -8px #2f7bff99;
  --shadow-mockup: 0 25px 50px -12px color-mix(in oklab, var(--primary) 10%, transparent);

  /* Motion §3.7 / §7 */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --duration: 150ms;
}
@media (min-width: 768px) {
  :root { --section-py: 128px; }
}

/* ---------- Reset (Tailwind preflight subset) ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--border); }
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h); /* D-007 (5) */
}
html.menu-open { overflow: hidden; }   /* D-005 scroll lock */
body {
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
ul, ol { list-style: none; }
svg { display: block; flex-shrink: 0; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }

/* Focus ring — NEW D-005 (ART_DIRECTION §3.8) */
:focus-visible { outline: 2px solid var(--foreground); outline-offset: 2px; }
#main:focus { outline: none; }

.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;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.icon-12 { width: 12px; height: 12px; }
.icon-16 { width: 16px; height: 16px; }
.icon-20 { width: 20px; height: 20px; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }

/* ---------- Skip link — D-007 (4), UX_SPEC §3.5 ---------- */
.skip-link {
  position: fixed; top: 12px; left: var(--gutter); z-index: 60;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--card); color: var(--foreground);
  padding: 8px 16px; font-size: 14px; line-height: 20px; font-weight: 500;
  transform: translateY(-200%);
}
.skip-link:focus, .skip-link:focus-visible { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-lg);
  font-size: 14px; line-height: 20px; font-weight: 500;
  padding: 12px 24px;
}
.btn-primary {
  background: var(--primary-fill); color: var(--foreground);
  transition: background-color var(--duration) var(--ease);
}
.btn-secondary {
  border-width: 1px; background: var(--card); color: var(--foreground);
  transition: border-color var(--duration) var(--ease);
}
.glow { box-shadow: var(--glow-primary); }
@media (hover: hover) {
  .btn-primary:hover { background: var(--primary-fill-hover); }
  .btn-secondary:hover { border-color: color-mix(in oklab, var(--primary) 50%, transparent); }
}

/* ---------- Header (ART_DIRECTION §4.1) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom-width: 1px;
  background: color-mix(in oklab, var(--background) 80%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.header-bar {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo svg { color: var(--primary); }
.wordmark {
  font-family: var(--font-heading); font-size: 16px; line-height: 24px;
  font-weight: 600; letter-spacing: var(--tracking-tight); color: var(--foreground);
}
.wordmark span { color: var(--muted-foreground); }

.nav-desktop { display: none; align-items: center; gap: 32px; }
.nav-link {
  font-size: 14px; line-height: 20px; color: var(--muted-foreground);
  transition: color var(--duration) var(--ease);
}
@media (hover: hover) { .nav-link:hover { color: var(--foreground); } }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-demo { display: none; }
.header-cta { display: none; padding: 8px 16px; }          /* hidden < 360px, D-005 */
@media (min-width: 360px) { .header-cta { display: inline-flex; } }
@media (min-width: 640px) { .header-demo { display: inline; } }

.menu-button {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--card); color: var(--foreground);
  cursor: pointer; font: inherit;
  transition: border-color var(--duration) var(--ease);
}
@media (hover: hover) {
  .menu-button:hover { border-color: color-mix(in oklab, var(--primary) 50%, transparent); }
}
.menu-button svg[hidden] { display: none; }  /* SVG has no hidden IDL; enforce the attribute */
@media (scripting: none) { .menu-button { display: none; } }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-button, .mobile-menu { display: none !important; }
}

/* Mobile menu panel — NEW D-005 */
.mobile-menu {
  position: absolute; /* header's backdrop-filter is the containing block; 100% = its padding box */
  top: calc(100% + 1px); left: 0; right: 0; /* D-010 COS-1: start under the 1px bottom border */
  height: calc(100vh - var(--header-h) - 1px);
  height: calc(100dvh - var(--header-h) - 1px);
  overflow-y: auto;
  background: var(--background);
  animation: menu-in var(--duration) var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-inner { padding-top: 8px; padding-bottom: 32px; display: flex; flex-direction: column; }
.mobile-menu-link {
  display: flex; align-items: center;
  border-bottom-width: 1px; padding-block: 16px;
  font-size: 16px; line-height: 24px; font-weight: 500; color: var(--foreground);
}
.mobile-menu-actions { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.mobile-menu-actions .btn { width: 100%; }
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero (ART_DIRECTION §4.2) ---------- */
.hero { position: relative; overflow: hidden; border-bottom-width: 1px; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, var(--grid-line) 1px, #0000 1px), linear-gradient(var(--grid-line) 1px, #0000 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at top, #000 30%, #0000 70%);
  mask-image: radial-gradient(ellipse at top, #000 30%, #0000 70%);
}
.hero-glow {
  position: absolute; left: 0; right: 0; top: 0; height: 384px; pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgb(47 123 255 / .18), transparent);
}
.hero-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 64px;
  padding-top: 80px; padding-bottom: 96px;
}
.hero-text {
  max-width: 768px;
  overflow-wrap: anywhere; /* D-010 MIN-1: long words may break under text-spacing overrides */
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  text-align: center;
}
.badge {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 9999px; background: var(--card);
  padding: 4px 12px; font-size: 12px; line-height: 16px; color: var(--muted-foreground);
}
.badge-dot { width: 6px; height: 6px; border-radius: 9999px; background: var(--primary); }
.hero h1 {
  text-wrap: balance;
  font-size: 36px; line-height: 1.25; font-weight: 600; letter-spacing: var(--tracking-tight);
}
.h1-highlight {
  background-image: linear-gradient(to right in oklab, var(--primary), var(--gradient-end));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
/* D-007 (8): high-contrast fallback — solid system text colour */
@media (forced-colors: active) {
  .h1-highlight {
    background-image: none;
    color: CanvasText; -webkit-text-fill-color: CanvasText;
  }
}
.lead {
  max-width: 672px; text-wrap: pretty;
  font-size: 18px; line-height: 1.625; color: var(--muted-foreground);
}
.hero-ctas { display: flex; flex-direction: column; align-items: center; gap: 12px; }
@media (min-width: 640px) { .hero-ctas { flex-direction: row; } }
.trust {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; line-height: 16px; color: var(--muted-foreground);
}

/* Mockup */
.mockup-wrap { width: 100%; max-width: 896px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mockup {
  width: 100%;
  border: 1px solid var(--border); border-radius: var(--radius-2xl);
  background: color-mix(in oklab, var(--card) 80%, transparent);
  padding: 8px; box-shadow: var(--shadow-mockup);
}
.mockup-panel { border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--background); }
.mockup-bar {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom-width: 1px; padding: 12px 20px;
}
.mockup-bar-left { display: flex; align-items: center; gap: 8px; }
.mockup-dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--primary); }
.mono-xs { font-family: var(--font-mono); font-size: 12px; line-height: 16px; }
.mockup-bar-right { display: flex; align-items: center; gap: 6px; color: var(--muted-foreground); }
.mockup-body { display: grid; gap: 24px; padding: 20px; }
.sources { display: flex; flex-direction: column; gap: 12px; }
.source {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card);
  padding: 12px 16px;
}
.source svg { color: var(--muted-foreground); }
.source-name { font-size: 14px; line-height: 20px; color: var(--foreground); }
.source-count { margin-left: auto; color: var(--muted-foreground); }
.flow { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.flow-track {
  position: relative; display: none; height: 1px; width: 100%; overflow: hidden;
  background: var(--border);
}
/* Source: flow 2.4s linear infinite, delays 0 / .6 / 1.2s.
   D-007 (6): stop by 5 s. D-010 option (b): all lines come to rest aligned at translateX(0),
   the reduced-motion resting position. translateX(0) is reached at 20% of an iteration, so
   1.2 iterations end each line there (2.88 s / 3.48 s / 4.08 s) and fill holds that frame —
   CSS only, works without script. */
.flow-line {
  position: absolute; top: 0; bottom: 0; left: 0; width: 25%;
  background-image: linear-gradient(to right in oklab, transparent, var(--primary), transparent);
  animation: flow 2.4s linear 0s 1.2 forwards;
}
.flow-track:nth-child(2) .flow-line { animation-delay: .6s; animation-iteration-count: 1.2; }
.flow-track:nth-child(3) .flow-line { animation-delay: 1.2s; animation-iteration-count: 1.2; }
@keyframes flow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}
.flow-label { color: var(--primary); }
.node {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent);
  border-radius: var(--radius-xl);
  background: color-mix(in oklab, var(--primary) 5%, transparent);
  padding: 24px; text-align: center;
}
.node svg { color: var(--primary); }
.node-name { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--foreground); }
.node-sub { font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top-width: 1px; }
.metric { display: flex; flex-direction: column; gap: 4px; border-right-width: 1px; padding: 16px 20px; }
.metric:last-child { border-right-width: 0; }
.metric dt { font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.metric dd { font-family: var(--font-mono); font-size: 18px; line-height: 28px; color: var(--foreground); }
.caption { font-size: 12px; line-height: 16px; color: var(--muted-foreground); text-align: center; }

@media (min-width: 768px) {
  .hero-inner { padding-top: 112px; }
  .hero h1 { font-size: 60px; }
  .mockup-body { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .flow { width: 160px; }
  .flow-track { display: block; }
}

/* ---------- Sections ---------- */
.section { border-bottom-width: 1px; padding-block: var(--section-py); }
.section-head { max-width: 672px; display: flex; flex-direction: column; gap: 16px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; line-height: 16px;
  text-transform: uppercase; letter-spacing: var(--tracking-widest); color: var(--primary);
}
.section h2 {
  text-wrap: balance;
  font-size: 30px; line-height: 1.25; font-weight: 600; letter-spacing: var(--tracking-tight);
}
@media (min-width: 768px) { .section h2 { font-size: 36px; } }

/* Pricing (ART_DIRECTION §4.5) */
.pricing-inner { display: flex; flex-direction: column; gap: 64px; }
.plans { display: grid; gap: 24px; }
@media (min-width: 1024px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 32px;
  border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--card);
  padding: 32px;
}
.plan--pro { border-color: color-mix(in oklab, var(--primary) 60%, transparent); box-shadow: var(--glow-primary); }
.plan-pill {
  position: absolute; top: -12px; left: 32px;
  border-radius: 9999px; background: var(--primary-fill); color: var(--foreground);
  padding: 4px 12px; font-size: 12px; line-height: 16px; font-weight: 500;
}
.plan-head { display: flex; flex-direction: column; gap: 12px; }
.plan h3 { font-size: 18px; line-height: 28px; font-weight: 600; }
.plan-desc { font-size: 14px; line-height: 1.625; color: var(--muted-foreground); }
.price { display: flex; align-items: baseline; gap: 4px; }
.price-amount {
  font-family: var(--font-heading); font-size: 36px; line-height: 40px;
  font-weight: 600; letter-spacing: var(--tracking-tight);
}
.price-period { font-size: 14px; line-height: 20px; color: var(--muted-foreground); }
.plan-features { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.plan-features li { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; }
.plan-features svg { color: var(--primary); }
.plan-btn {
  display: block; border-radius: var(--radius-lg); padding: 12px 16px;
  text-align: center; font-size: 14px; line-height: 20px; font-weight: 500;
}
.plan-btn--secondary {
  border: 1px solid var(--border); background: var(--secondary); color: var(--foreground);
  transition: opacity var(--duration) var(--ease);
}
.plan-btn--primary {
  background: var(--primary-fill); color: var(--foreground);
  transition: background-color var(--duration) var(--ease);
}
@media (hover: hover) {
  .plan-btn--secondary:hover { opacity: .9; }
  .plan-btn--primary:hover { background: var(--primary-fill-hover); }
}

/* FAQ (ART_DIRECTION §4.6) */
.faq-inner { display: grid; gap: 48px; }
@media (min-width: 1024px) { .faq-inner { grid-template-columns: 1fr 1.4fr; } }
.faq-list { display: flex; flex-direction: column; border-top-width: 1px; }
.faq-item { border-bottom-width: 1px; padding-block: 20px; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; font-weight: 500;
}
.faq-item summary svg { color: var(--muted-foreground); transition: transform var(--duration) var(--ease); }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-answer { padding-top: 12px; line-height: 1.625; color: var(--muted-foreground); }

/* Features (ART_DIRECTION §4.3) */
.features-inner { display: flex; flex-direction: column; gap: 64px; }
.features-grid {
  display: grid; gap: 1px; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-2xl);
  background: var(--border);
}
.feature {
  display: flex; flex-direction: column; gap: 20px;
  background: var(--background); padding: 32px;
  transition: background-color var(--duration) var(--ease);
}
.feature-tile {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--card); color: var(--primary);
  transition: border-color var(--duration) var(--ease);
}
.feature h3 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: var(--tracking-tight); }
.feature p { line-height: 1.625; color: var(--muted-foreground); }
@media (hover: hover) {
  .feature:hover { background: var(--card); }
  .feature:hover .feature-tile { border-color: color-mix(in oklab, var(--primary) 40%, transparent); }
}
@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature { padding: 40px; }
}

/* Security & Performance (ART_DIRECTION §4.4) */
.security-inner { display: grid; gap: 64px; }
@media (min-width: 1024px) { .security-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.security-text { display: flex; flex-direction: column; gap: 48px; }
.steps { display: flex; flex-direction: column; gap: 24px; }
.step { display: flex; gap: 16px; }
.step-num {
  width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid color-mix(in oklab, var(--primary) 40%, transparent); border-radius: 9999px;
  font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--primary);
}
.step-text { display: flex; flex-direction: column; gap: 4px; }
.step-text h3, .sec-card h3 { font-weight: 600; }
.step-text p { line-height: 1.625; color: var(--muted-foreground); }
.sec-cards { display: grid; gap: 16px; align-content: start; }
@media (min-width: 640px) { .sec-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sec-card {
  display: flex; flex-direction: column; gap: 16px;
  border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--card);
  padding: 24px;
}
.sec-card p { font-size: 14px; line-height: 1.625; color: var(--muted-foreground); }

/* Final CTA (ART_DIRECTION §4.7) — no bottom border */
.section--cta { border-bottom-width: 0; }
.cta-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-3xl); background: var(--card);
  padding: 64px 32px; text-align: center;
}
.cta-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 80% at 50% 100%, rgb(47 123 255 / .2), transparent);
}
.cta-content { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cta-card h2 { max-width: min(672px, calc(100% + 64px)); overflow-wrap: break-word; } /* D-012 MIN-2 */
.cta-content > p { max-width: 576px; text-wrap: pretty; line-height: 1.625; color: var(--muted-foreground); }
.cta-buttons { display: flex; flex-direction: column; gap: 12px; }
.btn-secondary--bg { background: var(--background); }
@media (min-width: 640px) { .cta-buttons { flex-direction: row; } }
@media (min-width: 768px) {
  .cta-card { padding-inline: 64px; }
  .section .cta-card h2 { font-size: 48px; }
}

/* ---------- Footer (ART_DIRECTION §4.8) ---------- */
.site-footer { border-top-width: 1px; }
.footer-inner { display: grid; gap: 40px; padding-block: 56px; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-tagline { max-width: 320px; font-size: 14px; line-height: 1.625; color: var(--muted-foreground); }
.footer-nav { display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 20px; }
.footer-nav-title { font-weight: 500; }
.footer-nav a { color: var(--muted-foreground); overflow-wrap: anywhere; }
@media (hover: hover) { .footer-nav a:hover { color: var(--foreground); } }
.footer-copy { border-top-width: 1px; }
.footer-copy p { padding-block: 24px; font-size: 12px; line-height: 16px; color: var(--muted-foreground); }

/* ---------- Legal pages (ART_DIRECTION §4.9) ---------- */
.legal {
  max-width: 768px; margin-inline: auto; padding: 80px var(--gutter);
  display: flex; flex-direction: column; gap: 40px;
}
.legal h1 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: var(--tracking-tight); }
.legal-clause { display: flex; flex-direction: column; gap: 12px; }
.legal-clause h2 { font-size: 20px; line-height: 28px; font-weight: 600; }
.legal-clause p { line-height: 1.625; color: var(--muted-foreground); }

/* ---------- Reduced motion (ART_DIRECTION §7, UX_SPEC §6) ---------- */
@media (prefers-reduced-motion: reduce) {
  .flow-line { animation: none; }
  .mobile-menu { animation: none; }   /* D-005: instant open, no travel */
}
