/* ==========================================================================
   AITHERA Technologies — site styles
   Palette: Cobalt (signature), Night (ink), Mist (paper), Sky (rules), Solar (accent)
   Type: Bricolage Grotesque (display) + Instrument Sans (body)
   ========================================================================== */

:root {
  --cobalt: #1f2ee8;
  --cobalt-deep: #1621c4;
  --night: #0a0f3d;
  --mist: #f4f6ff;
  --sky: #d5dbff;
  --solar: #ffb547;
  --solar-soft: #ffc86f;
  --white: #ffffff;

  --text: #1b2152;
  --text-soft: #4a5185;
  --on-cobalt-soft: #e3e6ff;
  --on-night-soft: #c4c9ee;

  --font-display: "Bricolage Grotesque", Inter, "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", Inter, "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1240px;
  --header-h: 76px;
  --radius: 18px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }

html { scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  color: inherit;
  text-wrap: balance;
}

p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible,
.hero :focus-visible,
.site-header:not(.is-scrolled) :focus-visible { outline-color: var(--solar); }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 100;
  background: var(--solar); color: var(--night); padding: .75rem 1.1rem; border-radius: 999px; font-weight: 600;
  text-decoration: none;
  clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap;
}
.skip-link:focus { clip-path: none; width: auto; height: auto; overflow: visible; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-sm { padding: .7rem 1.2rem; font-size: .95rem; }
.btn-solar { background: var(--solar); color: var(--night); }
.btn-solar:hover { background: var(--solar-soft); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.btn-cobalt { background: var(--cobalt); color: var(--white); }
.btn-cobalt:hover { background: var(--cobalt-deep); }
.btn-outline { border-color: var(--cobalt); color: var(--cobalt); background: transparent; }
.btn-outline:hover { background: var(--cobalt); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--white);
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled,
.page-light .site-header {
  background: rgba(244, 246, 255, .94); color: var(--night); box-shadow: 0 1px 0 var(--sky);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled, .page-light .site-header { background: rgba(244, 246, 255, .82); backdrop-filter: blur(16px); }
}

.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 2rem; }

.brand {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .05em; line-height: 1;
}
.logo-mark { width: 2.1rem; height: 2.1rem; flex: none; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(1.25rem, 2.4vw, 2.25rem); list-style: none; }
.nav a { text-decoration: none; font-weight: 500; padding: .4rem 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav a:hover { border-bottom-color: currentColor; }

.header-cta { flex: none; }
.menu-btn {
  display: none; margin-left: auto; width: 2.9rem; height: 2.9rem; border-radius: 50%;
  border: 2px solid currentColor; background: transparent; cursor: pointer; color: inherit;
  align-items: center; justify-content: center;
}
.menu-btn-bars, .menu-btn-bars::before, .menu-btn-bars::after {
  display: block; width: 1.1rem; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .2s ease, background-color .2s ease;
}
.menu-btn-bars::before, .menu-btn-bars::after { content: ""; position: absolute; left: 0; }
.menu-btn-bars::before { top: -.38rem; }
.menu-btn-bars::after { top: .38rem; }
.menu-btn[aria-expanded="true"] .menu-btn-bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn-bars::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 959px) {
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; background: var(--night); color: var(--white);
    padding: 1rem var(--gutter) 2rem; display: none; max-height: calc(100svh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .nav a { display: block; padding: 1.1rem 0; font-size: 1.25rem; font-family: var(--font-display); font-weight: 600; border: 0; }
  .nav .nav-cta { margin-top: 1.5rem; border: 0; }
  .nav .nav-cta a { display: inline-flex; font-family: var(--font-body); font-size: 1rem; padding: .95rem 1.6rem; }
  .nav :focus-visible { outline-color: var(--solar); }
}
@media (min-width: 960px) {
  .nav .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--cobalt); color: var(--white);
  min-height: min(100svh, 940px);
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4.5rem));
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}
.hero-art {
  position: absolute; z-index: -1; right: 0; bottom: 0; height: 100%; width: auto; aspect-ratio: 1 / 1;
  pointer-events: none;
}
.ring { fill: none; stroke: var(--white); stroke-width: 2.2; }
.hero-inner { position: relative; }
.hero h1 {
  font-weight: 800; font-size: clamp(2.9rem, 1.4rem + 6.4vw, 6.6rem); line-height: .96; letter-spacing: -.04em;
  max-width: 11.5ch;
}
.hero .lead {
  margin-top: clamp(1.5rem, 3vw, 2.25rem); max-width: 35rem; color: var(--on-cobalt-soft);
  font-size: clamp(1.125rem, 1rem + .5vw, 1.35rem); line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: clamp(1.75rem, 4vw, 2.75rem); }

@media (max-width: 759px) {
  .hero-art { height: auto; width: 180%; right: -40%; opacity: .85; }
}

@media (prefers-reduced-motion: no-preference) {
  .ring { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ring-draw 1.9s cubic-bezier(.22, .7, .2, 1) forwards; }
  .ring:nth-of-type(1) { animation-delay: .35s; }
  .ring:nth-of-type(2) { animation-delay: .5s; }
  .ring:nth-of-type(3) { animation-delay: .65s; }
  .ring:nth-of-type(4) { animation-delay: .8s; }
  .ring:nth-of-type(5) { animation-delay: .95s; }
  .sun { animation: sun-rise 1.9s cubic-bezier(.2, .8, .2, 1) .15s both; }
  .orbiter { animation: orbiter-in .9s ease 1.9s both; }
}
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
@keyframes sun-rise { from { transform: translateY(380px); } }
@keyframes orbiter-in { from { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--mist { background: var(--mist); }
.section--night { background: var(--night); color: var(--white); }

.section-head { max-width: 46rem; }
.section-head h2, .h2 {
  font-weight: 700; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.9rem); line-height: 1.02; letter-spacing: -.035em;
}
.section-head .lead { margin-top: 1.25rem; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--text-soft); max-width: 38rem; }
.on-dark .section-head .lead { color: var(--on-night-soft); }

/* ---------- Services ---------- */
.services-list { margin-top: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--sky); }
.service {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 5vw, 5rem);
  padding-block: clamp(2rem, 4.5vw, 3.25rem); border-top: 1px solid var(--sky);
}
.service h3 { font-weight: 700; font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3rem); line-height: 1.02; letter-spacing: -.03em; }
.service-intro { margin-top: .9rem; color: var(--text-soft); max-width: 30rem; }
.service ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.75rem; }
.service li { position: relative; padding-left: 1.5rem; }
.service li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: .8rem; height: .55rem;
  border: 2px solid var(--cobalt); border-bottom: 0; border-radius: .8rem .8rem 0 0;
}
.text-link {
  display: inline-block; margin-top: 1.6rem; font-weight: 600; color: var(--cobalt);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em;
}
.text-link:hover { color: var(--cobalt-deep); text-decoration-color: var(--solar); }

@media (max-width: 859px) {
  .service { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 479px) {
  .service ul { grid-template-columns: 1fr; }
}

/* ---------- Agents ---------- */
.section--night { position: relative; overflow: hidden; isolation: isolate; }
.agents-art { position: absolute; z-index: -1; right: -8%; top: -18%; width: min(640px, 70%); pointer-events: none; }
.agents-art path { fill: none; stroke-width: 2; }
.agents-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 3.75rem); }
.panel { border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius); padding: clamp(1.6rem, 3.2vw, 2.5rem); }
.panel--accent { background: var(--cobalt); border-color: transparent; }
.panel h3 { font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.1; letter-spacing: -.02em; }
.panel ul { list-style: none; margin-top: 1.4rem; display: grid; gap: .85rem; }
.panel li { position: relative; padding-left: 1.5rem; color: var(--on-cobalt-soft); }
.panel:not(.panel--accent) li { color: var(--on-night-soft); }
.panel li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: .8rem; height: .55rem;
  border: 2px solid var(--solar); border-bottom: 0; border-radius: .8rem .8rem 0 0;
}
.agents-result {
  margin-top: clamp(2.5rem, 5vw, 4rem); max-width: 46rem; font-family: var(--font-display);
  font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); line-height: 1.18; letter-spacing: -.025em;
}
@media (max-width: 759px) { .agents-grid { grid-template-columns: 1fr; } }

/* ---------- How it works ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(2.75rem, 5vw, 4rem); }
.step { position: relative; padding-right: 1.75rem; counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center; position: relative; z-index: 1;
  width: 3.1rem; height: 3.1rem; border-radius: 50%; background: var(--cobalt); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
}
.step::after { content: ""; position: absolute; top: 1.55rem; left: 3.1rem; right: .35rem; height: 2px; background: var(--sky); }
.step:last-child::before { background: var(--solar); color: var(--night); }
.step:last-child::after { display: none; }
.step h3 { margin-top: 1.5rem; font-weight: 700; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.1; }
.step p { margin-top: .6rem; color: var(--text-soft); }

@media (max-width: 899px) {
  .steps { grid-template-columns: 1fr; }
  .step { padding: 0 0 2.25rem 4.6rem; min-height: 3.1rem; }
  .step:last-child { padding-bottom: 0; }
  .step::before { position: absolute; left: 0; top: 0; }
  .step::after { top: 3.4rem; bottom: .3rem; left: 1.55rem; right: auto; width: 2px; height: auto; }
  .step h3 { margin-top: .5rem; }
}

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.industries-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.industry-list { list-style: none; border-bottom: 1px solid var(--sky); }
.industry { padding-block: clamp(1.4rem, 3vw, 2rem); border-top: 1px solid var(--sky); }
.industry h3 { font-weight: 700; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.05; letter-spacing: -.03em; }
.industry p { margin-top: .55rem; color: var(--text-soft); max-width: 44ch; }
@media (max-width: 859px) {
  .industries { grid-template-columns: 1fr; }
  .industries-head { position: static; }
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about-statement {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.65rem, 1.15rem + 2vw, 2.85rem);
  line-height: 1.12; letter-spacing: -.03em; text-wrap: balance;
}
.about-copy { margin-top: 1.75rem; display: grid; gap: 1.1rem; max-width: 40rem; color: var(--text-soft); }
.facts { background: var(--mist); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1.35rem; }
.facts dt { font-weight: 600; color: var(--cobalt); font-size: .95rem; }
.facts dd { margin-top: .15rem; font-size: 1.1rem; color: var(--text); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--sky); }
.values h3 { font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.1; }
.values p { margin-top: .6rem; color: var(--text-soft); }
@media (max-width: 899px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 719px) { .values { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: var(--cobalt); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact .lead { margin-top: 1.25rem; color: var(--on-cobalt-soft); font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); max-width: 30rem; }
.contact-details { margin-top: 2.5rem; display: grid; gap: 1.4rem; }
.contact-details dt { font-weight: 600; color: var(--solar); font-size: .95rem; }
.contact-details dd { margin-top: .15rem; font-size: 1.2rem; }
.contact-details a { text-decoration-thickness: 2px; text-underline-offset: .25em; }
.contact-details a:hover { color: var(--solar); }

.composer { background: var(--white); color: var(--text); border-radius: var(--radius); padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.composer h3 { font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1; letter-spacing: -.025em; color: var(--night); }
.composer-note { margin-top: .5rem; color: var(--text-soft); font-size: 1rem; }
.composer fieldset { border: 0; padding: 0; margin: 1.6rem 0 0; min-width: 0; }
.composer legend, .composer label.field-label { font-weight: 600; color: var(--night); padding: 0; margin-bottom: .6rem; display: block; font-size: .98rem; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: .6rem 1.05rem; border-radius: 999px; border: 2px solid var(--sky);
  background: var(--white); font-weight: 500; font-size: .98rem; line-height: 1.2;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover span { border-color: var(--cobalt); }
.chip input:checked + span { background: var(--cobalt); border-color: var(--cobalt); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 3px; }

.field { margin-top: 1.4rem; }
.field input, .field textarea {
  width: 100%; border: 2px solid var(--sky); border-radius: 12px; padding: .8rem 1rem; background: var(--white);
  transition: border-color .15s; line-height: 1.4;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #aab4f5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(31, 46, 232, .18); }
.field ::placeholder { color: #7b82b3; }

.composer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem; margin-top: 1.75rem; }
.composer-actions .text-link { margin-top: 0; }
.composer-fallback { margin-top: 1.25rem; color: var(--text-soft); font-size: .98rem; }
.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--cobalt); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em;
}
.link-btn:hover { color: var(--cobalt-deep); }
.copy-status { margin-left: .5rem; font-weight: 600; color: #0a7a4b; }

@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--white); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 4fr) minmax(0, 2fr); gap: 2.5rem; }
.footer-blurb { margin-top: 1.1rem; color: var(--on-night-soft); max-width: 22rem; }
.site-footer h2 { font-family: var(--font-body); font-weight: 600; font-size: .98rem; color: var(--solar); letter-spacing: 0; }
.site-footer ul { list-style: none; margin-top: 1rem; display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; color: var(--on-night-soft); }
.site-footer .brand { color: var(--white); }
.site-footer .brand:hover { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: .25em; }
.site-footer address { overflow-wrap: anywhere; font-style: normal; color: var(--on-night-soft); margin-top: 1rem; display: grid; gap: .55rem; }
.footer-base {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .16);
  color: var(--on-night-soft); font-size: .95rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
}
@media (max-width: 899px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 479px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Legal (privacy) page ---------- */
.legal-hero { background: var(--cobalt); color: var(--white); padding: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden; isolation: isolate; }
.legal-hero h1 { font-weight: 800; font-size: clamp(2.6rem, 1.5rem + 4.5vw, 5rem); line-height: .98; letter-spacing: -.04em; }
.legal-hero p { margin-top: 1.1rem; color: var(--on-cobalt-soft); font-size: 1.15rem; max-width: 38rem; }
.legal-hero-art { position: absolute; z-index: -1; right: 3%; bottom: -80px; width: min(620px, 80%); pointer-events: none; }

.legal { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3rem, 7vw, 5.5rem); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 2rem); }
.toc h2 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.toc ol { list-style: none; margin-top: 1rem; display: grid; gap: .5rem; }
.toc a { color: var(--text-soft); text-decoration: none; }
.toc a:hover { color: var(--cobalt); text-decoration: underline; text-underline-offset: .25em; }
.prose { max-width: 44rem; }
.prose h2 { font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -.025em; line-height: 1.15; margin-top: 3rem; color: var(--night); scroll-margin-top: calc(var(--header-h) + 1rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-weight: 700; font-size: 1.2rem; margin-top: 1.75rem; color: var(--night); }
.prose p, .prose ul, .prose ol { margin-top: 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: .5rem; }
.prose a { color: var(--cobalt); text-decoration-thickness: 2px; text-underline-offset: .22em; }
.prose a:hover { color: var(--cobalt-deep); }
.table-wrap { margin-top: 1.25rem; overflow-x: auto; border: 1px solid var(--sky); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .98rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .85rem 1rem; border-bottom: 1px solid var(--sky); }
.prose th { background: var(--mist); color: var(--night); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
@media (max-width: 899px) { .legal { grid-template-columns: 1fr; } .toc { position: static; } }
@media (max-width: 759px) { .legal-hero-art { display: none; } }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; background: var(--cobalt); color: var(--white); padding: 2rem var(--gutter); position: relative; overflow: hidden; isolation: isolate; }
.notfound-art { position: absolute; z-index: -1; right: -10%; bottom: -8%; width: min(760px, 120%); pointer-events: none; }
.notfound-inner { width: 100%; max-width: 44rem; }
.notfound h1 { font-weight: 800; font-size: clamp(2.6rem, 1.5rem + 5vw, 5.5rem); line-height: .98; letter-spacing: -.04em; margin-top: 2rem; }
.notfound p { margin-top: 1.25rem; font-size: 1.2rem; color: var(--on-cobalt-soft); max-width: 32rem; }

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
