/* =============================================================================
 * The Gantry — marketing site
 * Palette, type and component language are lifted straight from the app
 * (frontend/tailwind.config.js + frontend/src/index.css) so the site and the
 * product read as one thing.
 * ========================================================================== */

@import url('../fonts/fonts.css');

:root {
  --eggshell: #F7F3E8;
  --green: #123D32;
  --green-hover: #0E3027;
  --green-deep: #0A241D;
  --orange: #B85C38;
  --orange-hover: #964B2E;
  --orange-text: #9F4D2E;
  --charcoal: #2B2C2D;
  --sand: #E9DDC7;
  --olive: #6F7D5F;
  --muted: #736858;   /* 4.92:1 on eggshell — #7A6F62 sat at 4.43:1, just under AA */
  --warmgrey: #A79C8E;

  --maxw: 1180px;
  --nav-h: 68px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--eggshell);
  color: var(--charcoal);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* height:auto is load-bearing — the width/height attributes on the screenshots
   map to the CSS height property, so without it max-width shrinks the width
   while the height stays pinned and every shot stretches vertically. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.2; }
h4 { font-size: 1.05rem; }

/* --- shared bits ---------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-tight { padding: clamp(56px, 7vw, 96px) 0; }

.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--orange-text);
  font-weight: 500;
  margin: 0 0 14px;
}
.eyebrow.on-green { color: #E2A184; }
.eyebrow.quiet { color: var(--muted); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
  line-height: 1.62;
  max-width: 58ch;
}
.on-green .lede, .band .lede { color: rgba(247, 243, 232, 0.78); }

/* Ember underline for the one word that carries the sentence. */
.ember {
  color: var(--green);
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-size: 100% 3px;
  background-position: 0 100%;
  padding-bottom: 6px;
}
.band .ember { color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 14px 28px;
  font-size: 0.95rem; font-weight: 500; font-family: inherit;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-hover); }
.btn-secondary { background: transparent; color: var(--green); border-color: var(--green); }
.btn-secondary:hover { background: rgba(18, 61, 50, .06); }
.btn-on-green { background: var(--eggshell); color: var(--green); }
.btn-on-green:hover { background: #fff; }
.btn-ghost-on-green { background: transparent; color: var(--eggshell); border-color: rgba(247,243,232,.4); }
.btn-ghost-on-green:hover { border-color: var(--eggshell); }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

.card {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: 20px;
  padding: 28px;
}
.card-quiet { background: transparent; border-color: rgba(233,221,199,.9); }
.band .card {
  background: rgba(255,255,255,.055);
  border-color: rgba(233,221,199,.18);
  color: var(--eggshell);
}

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 999px; padding: 6px 14px;
  font-size: 0.78rem; font-weight: 500;
  background: rgba(18,61,50,.08); color: var(--green);
  border: 1px solid rgba(18,61,50,.14);
}
.pill-orange { background: rgba(184,92,56,.1); color: var(--orange-text); border-color: rgba(184,92,56,.22); }
.band .pill { background: rgba(247,243,232,.12); color: var(--eggshell); border-color: rgba(247,243,232,.22); }

.ic { width: 1em; height: 1em; stroke-width: 1.7; flex-shrink: 0; }
.ic-lg { width: 22px; height: 22px; stroke-width: 1.6; }

/* --- nav ------------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: rgba(247, 243, 232, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.nav.stuck { border-bottom-color: var(--sand); background: rgba(247,243,232,.96); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 0.9rem; color: var(--muted);
  transition: color .16s ease, background-color .16s ease;
}
.nav-links a:hover { color: var(--charcoal); background: rgba(233,221,199,.5); }
.nav-links a.active { color: var(--green); font-weight: 500; }
.nav-cta { margin-left: 12px; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 0; padding: 8px; color: var(--charcoal); cursor: pointer;
}

/* --- hero ----------------------------------------------------------------- */
.hero {
  background: var(--green);
  color: var(--eggshell);
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 104px) 0 0;
}
.hero::before {
  /* gantry motif — orange nodes on a horizon, echoing the logo mark */
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(184,92,56,.5), rgba(184,92,56,.5)),
    radial-gradient(circle, rgba(184,92,56,.55) 46%, transparent 50%),
    radial-gradient(circle, rgba(184,92,56,.55) 46%, transparent 50%),
    radial-gradient(circle, rgba(184,92,56,.4) 46%, transparent 50%);
  background-repeat: no-repeat;
  background-size: 100% 1px, 14px 14px, 14px 14px, 14px 14px;
  background-position: 0 78%, 12% 78%, 47% 78%, 88% 78%;
  opacity: .5;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero h1 { color: #fff; }
.hero .lede { color: rgba(247,243,232,.8); margin-top: 22px; }
.hero-copy { padding-bottom: clamp(56px, 7vw, 96px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 20px; font-size: 0.85rem; color: rgba(247,243,232,.55); }
.hero-shot {
  justify-self: center;
  align-self: end;
  width: min(266px, 100%);
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  border: 1px solid rgba(233,221,199,.22);
  border-bottom: 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,.22);
  align-self: end;
}
.hero-shot img { border-radius: 27px 27px 0 0; }

/* trust strip under the hero */
.strip {
  background: var(--green-deep);
  color: rgba(247,243,232,.72);
  padding: 18px 0;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.strip-inner { display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: center; justify-content: center; text-align: center; }
.strip span { display: inline-flex; align-items: center; gap: 8px; }
.strip svg { color: #C87A55; }

/* --- section headers ------------------------------------------------------ */
.sec-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .lede { margin-left: auto; margin-right: auto; }
.sec-head .lede { margin-top: 18px; }

/* --- steps ---------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--sand); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: -11px; left: 0;
  background: var(--eggshell); padding-right: 12px;
  font-family: 'Fraunces', Georgia, serif; font-size: 0.9rem; color: var(--orange-text);
}
.step h4 { margin-bottom: 8px; color: var(--green); }
.step p { font-size: 0.94rem; color: var(--muted); margin: 0; }

/* --- feature rows --------------------------------------------------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 8vw, 120px); }
.feature.flip .feature-media { order: -1; }
.feature h3 { color: var(--green); margin-bottom: 16px; }
.feature p { color: var(--muted); font-size: 1.02rem; }
.feature-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.96rem; color: var(--charcoal); }
.feature-list svg { color: var(--green); margin-top: 4px; }
.feature-note {
  margin-top: 24px; padding: 16px 18px;
  border-left: 2px solid var(--orange);
  background: rgba(184,92,56,.05);
  border-radius: 0 12px 12px 0;
  font-size: 0.9rem; color: var(--muted);
}

/* Stage — a soft panel behind a phone shot, so the media column reads as a
   deliberate surface rather than a tall image floating in whitespace. */
.stage {
  background: linear-gradient(180deg, rgba(233,221,199,.72), rgba(233,221,199,.22));
  border: 1px solid rgba(233,221,199,.9);
  border-radius: 28px;
  padding: 40px 28px;
}
.band .stage {
  background: linear-gradient(180deg, rgba(247,243,232,.09), rgba(247,243,232,.02));
  border-color: rgba(233,221,199,.16);
}
@media (max-width: 600px) { .stage { padding: 28px 18px; border-radius: 22px; } }

/* phone frame */
.phone-frame {
  width: min(258px, 100%);
  margin: 0 auto;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, #16463A, #0A241D);
  box-shadow: 0 24px 60px -24px rgba(18,61,50,.5);
}
.phone-frame img { border-radius: 26px; }
.band .phone-frame { background: linear-gradient(160deg, #1D5546, #071A15); }

/* Stacked feature — for wide desktop screenshots, which are illegible when
   squeezed into half a row. Copy sits in two columns above a full-width shot. */
.feature-stack + .feature-stack { margin-top: clamp(72px, 8vw, 112px); }
.stack-head {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.stack-head .feature-list { margin-top: 6px; }
@media (max-width: 860px) {
  .stack-head { grid-template-columns: 1fr; gap: 24px; }
}

/* desktop frame */
.desk-frame {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--sand); background: #fff;
  box-shadow: 0 24px 60px -32px rgba(18,61,50,.45);
}
.band .desk-frame { border-color: rgba(233,221,199,.22); box-shadow: 0 24px 70px -30px rgba(0,0,0,.55); }
.desk-frame .bar {
  height: 34px; background: var(--eggshell); border-bottom: 1px solid var(--sand);
  display: flex; align-items: center; gap: 7px; padding: 0 14px;
}
.desk-frame .bar i { width: 9px; height: 9px; border-radius: 999px; background: var(--sand); display: block; }
.band .desk-frame .bar { background: #10362C; border-bottom-color: rgba(233,221,199,.16); }
.band .desk-frame .bar i { background: rgba(233,221,199,.28); }
.shot-scroll { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* On a phone the full dashboard shrinks below reading size, so the frame is a
   link to the full-resolution PNG — tap it and the browser's own pinch-zoom
   does the rest. The hint only appears where the shot is too small to read. */
.shot-hint {
  display: none;
  margin: 10px 2px 0;
  font-size: 0.78rem;
  color: rgba(247,243,232,.55);
}
@media (max-width: 600px) { .shot-hint { display: block; } }
@media (max-width: 980px) {
  /* Between phone and desktop there is room to show the shot slightly wider
     than the column and let it scroll, rather than shrinking it to a blur. */
  .shot-scroll img { width: 760px; max-width: none; }
}
@media (max-width: 600px) {
  /* On a phone even that is unreadable, so fit the frame and let the copy
     carry the detail. */
  .shot-scroll img { width: 100%; max-width: 100%; }
}

/* --- organiser band ------------------------------------------------------- */
.band { background: var(--green); color: var(--eggshell); }
.band h2, .band h3, .band h4 { color: #fff; }
.band p { color: rgba(247,243,232,.78); }
.band .feature-list li { color: rgba(247,243,232,.9); }
.band .feature-list svg { color: #E2A184; }
.band .feature-note { background: rgba(184,92,56,.16); border-left-color: var(--orange); color: rgba(247,243,232,.82); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(48px, 6vw, 72px); }
.stat { border-top: 1px solid rgba(233,221,199,.22); padding-top: 20px; }
.stat b {
  display: block;
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: #fff; letter-spacing: -0.02em;
  line-height: 1.1; margin-bottom: 6px;
}
.stat span { font-size: 0.88rem; color: rgba(247,243,232,.66); }

/* --- privacy grid --------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tile-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(18,61,50,.07); color: var(--green);
  display: grid; place-items: center; margin-bottom: 18px;
}
.band .tile-icon { background: rgba(247,243,232,.1); color: #E2A184; }
.card h4 { margin-bottom: 8px; color: var(--green); }
.card p { font-size: 0.94rem; color: var(--muted); margin: 0; }
.band .card h4 { color: #fff; }
.band .card p { color: rgba(247,243,232,.76); }

/* --- pricing -------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; height: 100%; }
.plan.featured { border-color: rgba(18,61,50,.3); box-shadow: 0 18px 40px -30px rgba(18,61,50,.5); }
.plan .price {
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
  font-size: 2.2rem; color: var(--green); letter-spacing: -0.02em; line-height: 1.1;
  margin: 14px 0 4px;
}
.plan .price small { font-size: 0.85rem; color: var(--muted); font-family: 'Inter', sans-serif; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 0.92rem; align-items: flex-start; }
.plan li svg { color: var(--green); margin-top: 4px; }
.plan.featured li svg { color: var(--orange); }
.plan .plan-foot { margin-top: auto; padding-top: 24px; }
.plan-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .18em; color: var(--orange-text); }

/* --- FAQ ------------------------------------------------------------------ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--sand);
  padding: 22px 0;
}
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  font-family: 'Fraunces', Georgia, serif; font-size: 1.12rem; color: var(--green);
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { color: var(--orange); flex-shrink: 0; transition: transform .2s ease; margin-top: 3px; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; color: var(--muted); font-size: 0.98rem; max-width: 68ch; }

/* --- closing CTA ---------------------------------------------------------- */
.cta { background: var(--green); color: var(--eggshell); text-align: center; }
.cta h2 { color: #fff; }
.cta .lede { margin: 20px auto 0; color: rgba(247,243,232,.78); }
.cta-form {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin: 32px auto 0; max-width: 480px;
}
.cta-form input {
  flex: 1 1 240px;
  background: rgba(247,243,232,.08);
  border: 1px solid rgba(233,221,199,.3);
  border-radius: 999px; padding: 14px 22px;
  color: var(--eggshell); font-family: inherit; font-size: 0.95rem;
}
.cta-form input::placeholder { color: rgba(247,243,232,.45); }
.cta-form input:focus { outline: none; border-color: var(--eggshell); }
.cta-small { margin-top: 16px; font-size: 0.82rem; color: rgba(247,243,232,.5); }

/* Honeypot wrapper — off-screen rather than display:none, because some bots
   skip hidden inputs, which is exactly the ones we want to catch. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* --- footer --------------------------------------------------------------- */
.footer { background: var(--green-deep); color: rgba(247,243,232,.6); padding: 56px 0 40px; font-size: 0.88rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.footer img { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .85; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
/* Social links sit under the tagline rather than in the link column, so the
   footer stays two balanced halves. Text rather than brand glyphs: LinkedIn's
   mark isn't in the CC0 icon set the site uses, and one odd-one-out icon reads
   worse than three consistent words. */
.footer-social { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; }
.footer-social a { color: rgba(247,243,232,.75); }
.footer a:hover { color: var(--eggshell); }
.footer-legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(233,221,199,.12); font-size: 0.8rem; color: rgba(247,243,232,.42); }

/* --- reveal on scroll ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { padding-bottom: 40px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .feature-media { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .grid-3, .plans { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--eggshell); border-bottom: 1px solid var(--sand);
    padding: 12px 20px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; font-size: 1rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
  .steps { grid-template-columns: 1fr; }
  .strip-inner { gap: 8px 20px; font-size: 0.76rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:active { transform: none; }
}

/* =============================================================================
 * Legal pages (privacy, competition terms)
 * A matching pair: same scale, same spacing, same 720px measure. Built from the
 * tokens above — no new palette, no new font stack.
 * ========================================================================== */
.legal { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); }
.legal-wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 24px; }

.legal h1 { font-size: clamp(2rem, 5vw, 2.9rem); color: var(--green); }
.legal .legal-sub {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  margin: 14px 0 0;
  letter-spacing: -0.01em;
}
.legal .legal-org { margin-top: 20px; font-weight: 500; color: var(--charcoal); }
.legal h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  color: var(--green);
  margin: clamp(40px, 5vw, 56px) 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--sand);
}
.legal h3 { font-size: 1.08rem; color: var(--charcoal); margin: 30px 0 10px; }
.legal p, .legal li { font-size: 1rem; line-height: 1.72; color: var(--charcoal); }
.legal p { margin: 0 0 1.1em; }
.legal a { color: var(--orange-text); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--green); }

.legal ul, .legal ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.legal li { margin-bottom: 0.8em; }
.legal li::marker { color: var(--muted); }
.legal ol.terms { counter-reset: term; list-style: none; padding-left: 0; }
.legal ol.terms > li {
  counter-increment: term;
  position: relative;
  padding-left: 44px;
  margin-bottom: 1.4em;
}
.legal ol.terms > li::before {
  content: counter(term);
  position: absolute; left: 0; top: 1px;
  width: 28px; height: 28px; border-radius: 999px;
  background: rgba(18,61,50,.07); color: var(--green);
  display: grid; place-items: center;
  font-size: 0.82rem; font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* "The short version" callout */
.legal-callout {
  background: var(--eggshell);
  border: 1px solid var(--sand);
  border-left: 4px solid var(--orange);
  border-radius: 14px;
  padding: 24px 26px;
  margin: 32px 0 8px;
}
.legal-callout h2 {
  border-top: 0; padding-top: 0; margin: 0 0 12px;
  font-size: 1.1rem; color: var(--green);
}
.legal-callout ul { margin: 0; padding-left: 1.2em; }
.legal-callout li { margin-bottom: 0.5em; }
.legal-callout li:last-child { margin-bottom: 0; }

/* Lawful-basis table — a real table on desktop, stacked pairs on small screens */
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 1.4em; }
.legal-table th, .legal-table td {
  text-align: left; vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--sand);
  font-size: 0.95rem; line-height: 1.6;
}
.legal-table th {
  color: var(--green); font-weight: 500;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: .12em;
  border-bottom-color: rgba(18,61,50,.25);
}
.legal-table td:first-child { color: var(--charcoal); }
.legal-table td:last-child { color: var(--muted); }

@media (max-width: 600px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .legal-table tr {
    border: 1px solid var(--sand); border-left: 3px solid var(--sand);
    border-radius: 12px; padding: 16px 18px; margin-bottom: 12px;
  }
  .legal-table td { border: 0; padding: 0; }
  .legal-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: .12em;
    color: var(--green); margin-bottom: 4px;
  }
  .legal-table td:last-child { margin-top: 12px; }
}

.legal-meta {
  margin-top: clamp(44px, 6vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--sand);
  color: var(--muted);
}
/* Kept at the 16px floor rather than shrunk to small print — these are
   compliance pages and the "last updated" line is one people actually check. */
.legal-meta p { font-size: 1rem; line-height: 1.65; color: var(--muted); margin: 0 0 0.6em; }

/* Sub-page header: the logo, and a way back. No scroll-spy nav to fake. */
.subnav {
  border-bottom: 1px solid var(--sand);
  background: var(--eggshell);
}
.subnav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.subnav img { height: 30px; width: auto; }
.subnav a.back { font-size: 0.9rem; color: var(--muted); }
.subnav a.back:hover { color: var(--charcoal); }

/* Visible focus for keyboard users, on every legal-page link */
.legal a:focus-visible, .subnav a:focus-visible, .footer a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}
