@charset "utf-8";

/* ==========================================================================
   Quantisentry marketing site
   One stylesheet serves both /  (English) and /es/ (Spanish).
   ========================================================================== */

:root {
  --ink: #0c1412;
  --ink-deep: #07110e;
  --ink-elevated: #13241e;
  --fog: #e7f0ea;
  --mist: #9bb5a8;
  --mist-dim: #6f8a7d;
  --signal: #1f8a6e;
  --signal-bright: #3fc79c;
  --signal-deep: #0f5c49;
  --glow: rgba(31, 138, 110, 0.35);
  --line: rgba(231, 240, 234, 0.12);
  --line-strong: rgba(231, 240, 234, 0.24);
  --warn: #c4a35a;
  --halt: #d6705f;
  --halt-line: rgba(214, 112, 95, 0.4);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --space: 8px;
  --content: 72rem;
  --hero-copy: 52rem;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  color: var(--fog);
  font-family: var(--font-body);
  background: var(--ink);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* --------------------------------------------------------------------------
   Backdrop
   -------------------------------------------------------------------------- */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 12% 18%, rgba(31, 138, 110, 0.28), transparent 55%),
    radial-gradient(900px 600px at 88% 72%, rgba(15, 92, 73, 0.35), transparent 50%),
    linear-gradient(165deg, #07110e 0%, #0c1412 45%, #13241e 100%);
  animation: drift 18s ease-in-out infinite alternate;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(231, 240, 234, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 240, 234, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.45;
}

@keyframes drift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.04) translate(-1.2%, 1%); }
}

.site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--space) * 2);
  padding: calc(var(--space) * 2.5) clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid transparent;
}

.topbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(var(--space) * 0.5) calc(var(--space) * 2);
  list-style: none;
}

.nav a {
  text-decoration: none;
  color: var(--mist);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 160ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--fog);
}

.nav .nav-cta {
  color: #f4fff9;
  background: var(--signal);
  padding: 0.45rem 0.9rem;
  border-radius: 0.3rem;
}

.nav .nav-cta:hover {
  background: var(--signal-deep);
  color: #f4fff9;
}

/* Language switch sits in the nav as a mono pair: EN · ES */
.nav .lang {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--mist-dim);
  border-left: 1px solid var(--line);
  padding-left: calc(var(--space) * 2);
}

.nav .lang a[aria-current="true"] {
  color: var(--signal-bright);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vw, 5rem);
  max-width: var(--content);
  margin: 0 auto;
  width: 100%;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-copy {
  max-width: var(--hero-copy);
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 1.35rem;
}

.hero h1,
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.6vw, 2.4rem);
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 1rem;
}

.lede {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 400;
  color: var(--mist);
  max-width: 34rem;
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space) * 1.5);
  align-items: center;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.35rem;
  border-radius: 0.35rem;
  background: var(--signal);
  color: #f4fff9;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 0 0 var(--glow);
  transition: background 180ms ease, box-shadow 280ms ease, transform 180ms ease;
}

.btn:hover {
  background: var(--signal-deep);
  box-shadow: 0 0 28px 2px var(--glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--fog);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(231, 240, 234, 0.04);
  box-shadow: none;
  border-color: var(--line-strong);
}

.btn:focus-visible,
.nav a:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid #b7e6d4;
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-delay-1 { transition-delay: 120ms; }
.reveal-delay-2 { transition-delay: 220ms; }
.reveal-delay-3 { transition-delay: 320ms; }

html.ready .reveal {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Bands & sections
   -------------------------------------------------------------------------- */

.band {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.band-elevated {
  background: rgba(19, 36, 30, 0.55);
  backdrop-filter: blur(8px);
}

.band-inner {
  max-width: var(--content);
  margin: 0 auto;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: calc(var(--space) * 1.5);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: 0.75rem;
}

.section-lede {
  color: var(--mist);
  max-width: 40rem;
  margin-bottom: calc(var(--space) * 4);
}

.section-lede-tight {
  margin-bottom: calc(var(--space) * 2.5);
}

.split {
  display: grid;
  gap: calc(var(--space) * 4);
}

@media (min-width: 840px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }

  .split-even {
    grid-template-columns: 1fr 1fr;
  }

  .split-evidence {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.rail {
  border-left: 1px solid var(--line);
  padding-left: calc(var(--space) * 3);
}

.rail-flush {
  border: none;
  padding-left: 0;
  list-style: none;
}

.rail-item + .rail-item {
  margin-top: calc(var(--space) * 3);
}

.rail-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 560;
  margin-bottom: 0.4rem;
}

.rail-item p {
  color: var(--mist);
  font-size: 0.98rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--warn);
  border: 1px solid rgba(196, 163, 90, 0.35);
  padding: 0.35rem 0.65rem;
  border-radius: 0.25rem;
  margin-bottom: calc(var(--space) * 2);
}

.page-hero {
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 5vw, 3rem);
  max-width: var(--content);
  margin: 0 auto;
}

.page-hero .brand-mark {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--mist);
  margin-bottom: 1rem;
}

.page-hero h1 {
  max-width: 20ch;
}

/* --------------------------------------------------------------------------
   Stat grid — headline numbers, each with its own provenance line
   -------------------------------------------------------------------------- */

.stat-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  overflow: hidden;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 840px) {
  .stat-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  background: rgba(7, 17, 14, 0.6);
  padding: 1.15rem 1.1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--signal-bright);
}

.stat-value .unit {
  font-size: 0.85rem;
  letter-spacing: 0;
  color: var(--mist);
  margin-left: 0.25rem;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--fog);
}

.stat-source {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--mist-dim);
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   Spec table — the wire contract, rendered as data
   -------------------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: rgba(7, 17, 14, 0.45);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 34rem;
}

.spec-table caption {
  text-align: left;
  padding: 0.9rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal);
  border-bottom: 1px solid var(--line);
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table thead th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist-dim);
  font-weight: 400;
}

.spec-table tbody th {
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--fog);
  white-space: nowrap;
}

.spec-table td {
  color: var(--mist);
}

.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td {
  border-bottom: none;
}

.spec-table .num {
  font-family: var(--font-mono);
  color: var(--signal-bright);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Ladder — ordered states, most healthy first
   -------------------------------------------------------------------------- */

.ladder {
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  overflow: hidden;
}

.ladder li {
  background: rgba(7, 17, 14, 0.55);
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.15rem 1rem;
  grid-template-columns: 7.5rem 1fr;
  align-items: baseline;
}

.ladder .state {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--signal-bright);
}

.ladder .state-warn { color: var(--warn); }
.ladder .state-halt { color: var(--halt); }
.ladder .state-mute { color: var(--mist-dim); }

.ladder p {
  color: var(--mist);
  font-size: 0.9rem;
  grid-column: 2;
}

@media (max-width: 560px) {
  .ladder li {
    grid-template-columns: 1fr;
  }

  .ladder p {
    grid-column: 1;
  }
}

/* --------------------------------------------------------------------------
   Code block — real payloads and real responses
   -------------------------------------------------------------------------- */

.code-block {
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: rgba(7, 17, 14, 0.7);
  overflow: hidden;
}

.code-block header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--mist-dim);
}

.code-block header .verb {
  color: var(--signal-bright);
}

.code-block header .verb-halt {
  color: var(--halt);
}

.code-block pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.65;
  color: var(--mist);
}

.code-block pre b {
  color: var(--fog);
  font-weight: 500;
}

.code-block-halt {
  border-color: var(--halt-line);
}

/* --------------------------------------------------------------------------
   Chip row — enumerated constants (strategy families, states, …)
   -------------------------------------------------------------------------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-top: calc(var(--space) * 2);
}

.chip-row li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--fog);
  border: 1px solid var(--line-strong);
  border-radius: 0.25rem;
  padding: 0.3rem 0.6rem;
  background: rgba(7, 17, 14, 0.5);
}

.chip-row li.muted {
  color: var(--mist-dim);
  border-color: var(--line);
}

/* --------------------------------------------------------------------------
   Contract strip — what the neural layer may say vs what is stripped
   -------------------------------------------------------------------------- */

.contract-strip {
  display: grid;
  gap: calc(var(--space) * 2);
}

@media (min-width: 780px) {
  .contract-strip {
    grid-template-columns: 1fr 1fr;
  }
}

.contract-col {
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 1.15rem;
  background: rgba(7, 17, 14, 0.45);
}

.contract-col h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 560;
  margin-bottom: 0.3rem;
}

.contract-col > p {
  color: var(--mist);
  font-size: 0.88rem;
  margin-bottom: 0.9rem;
}

.contract-col ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.contract-col li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.2rem;
  border: 1px solid var(--line);
}

.contract-accept {
  border-color: rgba(31, 138, 110, 0.4);
}

.contract-accept li {
  color: var(--signal-bright);
  border-color: rgba(31, 138, 110, 0.35);
}

.contract-strip-out {
  border-color: var(--halt-line);
}

.contract-strip-out li {
  color: var(--halt);
  border-color: var(--halt-line);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* --------------------------------------------------------------------------
   Pipeline diagram
   -------------------------------------------------------------------------- */

.pipeline {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background:
    linear-gradient(160deg, rgba(31, 138, 110, 0.1), transparent 60%),
    rgba(7, 17, 14, 0.6);
  padding: 1rem;
}

.pipeline svg {
  width: 100%;
  height: auto;
  display: block;
}

.pipeline .node-box {
  fill: rgba(7, 17, 14, 0.9);
  stroke: var(--line-strong);
}

.pipeline .node-box-halt {
  fill: rgba(214, 112, 95, 0.08);
  stroke: var(--halt-line);
}

.pipeline .flow {
  stroke: var(--signal);
  stroke-width: 1.5;
  fill: none;
}

.pipeline .flow-halt {
  stroke: var(--halt);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 4 3;
}

.pipeline .wall {
  stroke: var(--halt);
  stroke-width: 2;
}

.pipeline text {
  font-family: var(--font-mono);
  fill: var(--mist);
  font-size: 9px;
}

.pipeline .t-strong {
  fill: var(--fog);
  font-size: 10px;
}

.pipeline .t-signal {
  fill: var(--signal-bright);
}

.pipeline .t-halt {
  fill: var(--halt);
}

.pipeline .dash {
  animation: dashflow 2.2s linear infinite;
}

@keyframes dashflow {
  to { stroke-dashoffset: -14; }
}

.pipeline-caption {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--mist-dim);
  margin-top: 0.75rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Notes: limitations and roadmap, stated in the open
   -------------------------------------------------------------------------- */

.note {
  border-left: 2px solid var(--line-strong);
  padding: 0.15rem 0 0.15rem 1rem;
  color: var(--mist);
  font-size: 0.92rem;
  max-width: 44rem;
}

.note + .note {
  margin-top: calc(var(--space) * 2);
}

.note strong {
  color: var(--fog);
  font-weight: 500;
}

.note-limit {
  border-left-color: var(--warn);
}

.note-roadmap {
  border-left-color: var(--mist-dim);
}

/* --------------------------------------------------------------------------
   Legacy component: read-only status mock
   -------------------------------------------------------------------------- */

.product-visual {
  min-height: 16rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background:
    linear-gradient(160deg, rgba(31, 138, 110, 0.12), transparent 55%),
    rgba(7, 17, 14, 0.65);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mist);
  overflow: hidden;
}

.product-visual .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.product-visual .ok {
  color: var(--signal);
}

.product-visual .halt {
  color: var(--halt);
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.pricing-grid {
  display: grid;
  gap: calc(var(--space) * 2);
}

.pricing-grid-spaced {
  margin-top: 1.5rem;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plan {
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 1.5rem;
  background: rgba(7, 17, 14, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
}

.plan-featured {
  border-color: rgba(31, 138, 110, 0.55);
  box-shadow: 0 0 0 1px rgba(31, 138, 110, 0.2);
}

.plan h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 560;
}

.plan .price {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.plan .price span {
  font-size: 0.85rem;
  color: var(--mist);
}

.plan ul {
  list-style: none;
  color: var(--mist);
  font-size: 0.95rem;
  flex: 1;
}

.plan li + li {
  margin-top: 0.55rem;
}

.plan li::before {
  content: "— ";
  color: var(--signal);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form {
  display: grid;
  gap: calc(var(--space) * 2);
  max-width: 36rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.85rem;
  color: var(--mist);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.3rem;
  border: 1px solid var(--line);
  background: rgba(7, 17, 14, 0.55);
  color: var(--fog);
  font: inherit;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 2px solid #b7e6d4;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Footer & utilities
   -------------------------------------------------------------------------- */

.footnote {
  color: var(--mist);
  font-size: 0.85rem;
  margin-top: calc(var(--space) * 2);
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: calc(var(--space) * 3) clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--mist);
  font-size: 0.85rem;
}

.site-footer strong {
  color: var(--fog);
  font-weight: 500;
}

.mono {
  font-family: var(--font-mono);
}

.stack-sm > * + * {
  margin-top: calc(var(--space) * 2);
}

.stack-md > * + * {
  margin-top: calc(var(--space) * 3);
}

@media (max-width: 640px) {
  .nav {
    justify-content: flex-end;
  }

  .nav .lang {
    border-left: none;
    padding-left: 0;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .atmosphere {
    animation: none;
  }

  .pipeline .dash {
    animation: none;
  }

  .reveal,
  html.ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .btn:hover {
    transition: none;
    transform: none;
  }
}

/* ── Cookie consent banner ─────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--ink);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--fg);
  box-shadow: 0 -4px 24px rgba(0,0,0,.5);
}
.cookie-banner p { margin: 0; flex: 1; min-width: 200px; }
.cookie-banner a { color: var(--signal); }
.cookie-banner-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.cookie-accept {
  background: var(--signal);
  color: var(--ink);
  border: none;
  padding: .45rem 1.1rem;
  border-radius: 4px;
  cursor: pointer;
  font: 600 .8rem/1 var(--font-sans);
}
.cookie-reject {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  padding: .45rem 1.1rem;
  border-radius: 4px;
  cursor: pointer;
  font: .8rem/1 var(--font-sans);
}
.cookie-reject:hover { border-color: var(--fg); }

/* ── Footer legal links ────────────────────────────────────────────────── */
.footer-legal {
  display: flex;
  gap: .25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: .3rem 0 0;
}
.footer-legal a {
  font-size: .75rem;
  color: var(--muted);
  text-decoration: none;
}
.footer-legal a:hover { color: var(--fg); text-decoration: underline; }

/* ── Legal pages ───────────────────────────────────────────────────────── */
.legal-body { max-width: 680px; margin: 0 auto; padding: 0 var(--gap-md); }
.legal-body h2 { font-family: var(--font-serif); font-size: 1.15rem; margin: 2rem 0 .5rem; color: var(--fg); }
.legal-body p, .legal-body li { font-size: .95rem; line-height: 1.7; color: var(--muted); margin: .4rem 0; }
.legal-body ul { padding-left: 1.25rem; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .85rem; }
.legal-body th { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--border); color: var(--fg); font-weight: 600; }
.legal-body td { padding: .5rem .75rem; border-bottom: 1px solid var(--border); color: var(--muted); vertical-align: top; }
.legal-body .last-updated { font-size: .8rem; color: var(--muted); margin-bottom: 2rem; }
