/* =============================================================
   Ulalo — stealth deep-tech website
   ============================================================= */

:root {
  --bg: #07090C;
  --bg-elev: #0B0F14;
  --surface: #111821;
  --surface-2: #161F2A;
  --border: rgba(245, 247, 250, 0.08);
  --border-strong: rgba(245, 247, 250, 0.14);
  --text: #F5F7FA;
  --text-secondary: rgba(245, 247, 250, 0.70);
  --text-muted: rgba(245, 247, 250, 0.48);
  --text-faint: rgba(245, 247, 250, 0.30);
  --accent: #1BE866;
  --accent-soft: #8DF3B2;
  --accent-deep: #0EA84A;
  --accent-glow: rgba(27, 232, 102, 0.18);
  --accent-glow-strong: rgba(27, 232, 102, 0.35);

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

  --max-width: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 12px;
  --radius-lg: 20px;

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

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { font-family: inherit; cursor: pointer; }

/* ---------- background field ---------- */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(27, 232, 102, 0.08), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(27, 232, 102, 0.05), transparent 55%),
    linear-gradient(180deg, #07090C 0%, #05070A 100%);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(245, 247, 250, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 247, 250, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 30%, transparent 75%);
}
canvas.bg-network {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}

/* ---------- container ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(7, 9, 12, 0.65);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
}
.nav-logo img { height: 28px; width: auto; }
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.005em;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: rgba(245, 247, 250, 0.03);
  transition: all .25s var(--ease);
}
.nav-cta:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent-soft);
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  color: var(--text);
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 12px var(--gutter) 24px;
    background: rgba(7, 9, 12, 0.96);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open a, .nav-links.open .nav-cta {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: none;
    width: 100%;
  }
}

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 .5em;
  color: var(--text);
}
h1 {
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.035em;
  line-height: 1.04;
}
h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.025em;
}
h3 {
  font-size: clamp(20px, 2vw, 24px);
}
p { margin: 0 0 1em; color: var(--text-secondary); }
.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-secondary);
  max-width: 64ch;
  line-height: 1.55;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.accent-text {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 50%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: all .3s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #03130A;
  box-shadow: 0 0 0 0 var(--accent-glow-strong);
}
.btn-primary:hover {
  background: var(--accent-soft);
  box-shadow: 0 0 0 8px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(245, 247, 250, 0.03);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent-soft);
}
.btn-arrow::after {
  content: "→";
  transition: transform .3s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- sections ---------- */
section {
  position: relative;
  padding: clamp(80px, 12vh, 140px) 0;
}
section.tight { padding: clamp(56px, 8vh, 96px) 0; }
section + section { border-top: 1px solid var(--border); }

.section-head {
  max-width: 760px;
  margin-bottom: 64px;
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(120px, 18vh, 180px) 0 clamp(80px, 14vh, 140px);
  position: relative;
  overflow: hidden;
}
.hero h1 .mute { color: var(--text-secondary); }
.hero .lead { margin-top: 28px; }
.hero .cta-row {
  margin-top: 44px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 64px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-meta span { display: inline-flex; gap: 8px; align-items: center; }
.hero-meta .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* ---------- stat grid ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--bg-elev);
  padding: 36px 32px;
}
.stat .num {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 12px;
}
.stat .num .accent { color: var(--accent); }
.stat .label {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---------- card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  padding: 36px 32px;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(17,24,33,0.6) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all .35s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), var(--accent-glow), transparent 40%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }
.card .card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 24px;
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-secondary); margin: 0; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-glow);
  border: 1px solid rgba(27, 232, 102, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
}

/* ---------- principle list ---------- */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.principle {
  background: var(--bg-elev);
  padding: 40px 32px;
}
.principle .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.principle h3 { font-size: 20px; margin-bottom: 10px; }
.principle p { font-size: 15px; color: var(--text-secondary); margin: 0; }

/* ---------- capability list ---------- */
.capability-list {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
}
.capability {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.capability .num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.capability h3 {
  font-size: clamp(20px, 2vw, 28px);
  margin: 0;
}
.capability p {
  margin: 8px 0 0;
  max-width: 70ch;
}

/* ---------- ecosystem logos ---------- */
.ecosystem {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.eco-cell {
  background: var(--bg-elev);
  padding: 28px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  min-height: 88px;
  transition: color .25s var(--ease);
}
.eco-cell:hover { color: var(--text); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: 40px;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 9, 12, 0.6) 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand img { height: 26px; margin-bottom: 16px; }
.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 36ch;
  margin: 0;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-secondary);
  font-size: 14px;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .legal { display: flex; gap: 24px; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: clamp(64px, 10vh, 96px) clamp(32px, 6vw, 80px);
  background:
    radial-gradient(600px 400px at 70% 50%, rgba(27, 232, 102, 0.12), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cta-band h2 { max-width: 22ch; }
.cta-band .lead { margin: 16px 0 32px; }
.cta-band .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- forms ---------- */
.form {
  display: grid;
  gap: 20px;
  max-width: 560px;
}
.form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form input, .form select, .form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elev);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .submit-row { margin-top: 8px; }

/* ---------- two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- sdg row ---------- */
.sdg-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.sdg-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  position: relative;
  overflow: hidden;
}
.sdg-card .badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}
.sdg-card h3 { font-size: 18px; margin: 0 0 8px; }
.sdg-card p { font-size: 14px; margin: 0; }

/* ---------- bio block ---------- */
.bio {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: start;
}
.bio .avatar {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 30%, var(--accent-glow), transparent 60%),
    linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 48px;
}
.bio .role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.bio h3 { font-size: 28px; margin-bottom: 16px; }
.bio ul { padding-left: 20px; color: var(--text-secondary); }
.bio ul li { margin-bottom: 6px; }
@media (max-width: 700px) {
  .bio { grid-template-columns: 1fr; }
  .bio .avatar { width: 120px; height: 120px; font-size: 32px; }
}

/* ---------- focus area badges ---------- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(245,247,250,0.02);
}

/* ---------- page hero (interior pages) ---------- */
.page-hero {
  padding: clamp(80px, 14vh, 140px) 0 clamp(48px, 8vh, 80px);
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  max-width: 18ch;
}
.page-hero .lead { margin-top: 20px; max-width: 56ch; }

/* ---------- divider line ---------- */
.divider {
  height: 1px;
  background: var(--border);
  margin: clamp(48px, 8vh, 96px) 0;
}

/* ---------- utility ---------- */
.muted { color: var(--text-muted); }
.center { text-align: center; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 56px; }

/* ---------- animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- mission band (image + emotional copy) ---------- */
.mission-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.mission-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(800px 600px at 30% 20%, rgba(27, 232, 102, 0.30), transparent 55%),
    radial-gradient(600px 500px at 80% 80%, rgba(141, 243, 178, 0.18), transparent 60%),
    linear-gradient(160deg, #0E1A14 0%, #07090C 65%, #0B141A 100%);
}
.mission-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Duotone-style treatment: grayscale + green tint */
  filter: grayscale(100%) contrast(1.05) brightness(0.85);
  mix-blend-mode: luminosity;
  opacity: 0.85;
}
.mission-figure::after {
  /* Green wash overlay — keeps the photo on-brand */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 12, 0.15) 0%, rgba(7, 9, 12, 0.55) 100%),
    radial-gradient(800px 600px at 30% 20%, rgba(27, 232, 102, 0.20), transparent 60%);
  pointer-events: none;
}
.mission-figure .caption {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.65);
}
.mission-copy .quote {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 28px;
  text-wrap: balance;
}
.mission-copy .attribution {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 24px;
}
@media (max-width: 860px) {
  .mission-band { grid-template-columns: 1fr; }
  .mission-figure { aspect-ratio: 16 / 11; }
}

/* ---------- legal / long-form prose pages ---------- */
.legal {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 96px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legal-toc h4 {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin: 0 0 16px;
  font-weight: 500;
}
.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.legal-toc li { counter-increment: toc; margin-bottom: 10px; }
.legal-toc a {
  color: var(--text-secondary);
  display: flex;
  gap: 10px;
  align-items: baseline;
  line-height: 1.4;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--text-faint);
  font-size: 11px;
}
.legal-toc a:hover { color: var(--accent); }

.legal-body { max-width: 72ch; }
.legal-body section {
  padding: 0 0 48px;
  border: 0;
  scroll-margin-top: 96px;
}
.legal-body section + section { border-top: 1px solid var(--border); padding-top: 48px; }
.legal-body h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 0 0 20px;
}
.legal-body h3 {
  font-size: 17px;
  margin: 28px 0 10px;
  color: var(--text);
}
.legal-body p, .legal-body li {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.7;
}
.legal-body ul, .legal-body ol { padding-left: 22px; margin: 0 0 16px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--accent-soft); border-bottom: 1px solid rgba(141,243,178,0.3); }
.legal-body a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}
.legal-body th, .legal-body td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-secondary);
}
.legal-body th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.legal-body .callout {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 8px;
  margin: 20px 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}
@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  canvas.bg-network { display: none; }
}
