/* Hawkeye public landing page. One stylesheet, no web fonts, no framework.
   Colours follow the app (ui/static/app.css): black on white, with the
   Phoenix red used only as a small accent. Dark follows the system setting. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --soft: #f4f4f4;
  --card: #ffffff;
  --ink: #111111;
  --muted: #4a4a4a;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.22);
  --control: #5c5c5c;
  --accent: #d31212;
  --btn-bg: #0a0a0b;
  --btn-ink: #ffffff;
  --btn-hover: #2a2a2d;
  --dark: #0a0a0b;
  --on-dark: #ffffff;
  --on-dark-muted: #d0d0d0;
  --ok: #0f6b32;
  --focus: #0a0a0b;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 12px 32px -12px rgba(0, 0, 0, 0.16);
  --max: 1160px;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --header-h: 4rem;
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0b;
    --soft: #131315;
    --card: #17171a;
    --ink: #f4f4f4;
    --muted: #b8b8b8;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.28);
    --control: #9a9a9a;
    --btn-bg: #f4f4f4;
    --btn-ink: #0a0a0b;
    --btn-hover: #ffffff;
    --dark: #17171a;
    --ok: #5fd08a;
    --focus: #f4f4f4;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  }
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  text-wrap: balance;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 680;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: var(--pad);
  top: -5rem;
  z-index: 40;
  background: var(--btn-bg);
  color: var(--btn-ink);
  padding: 0.65rem 1rem;
  border-radius: 10px;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

/* Mark swaps with the colour scheme. */
.mark-for-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .mark-for-light {
    display: none;
  }

  .mark-for-dark {
    display: block;
  }
}

/* The mark is a <picture>: the dark-scheme file only downloads in dark mode. */
picture {
  display: contents;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

/* iPhone Chrome and Safari drop taps on links inside a sticky header that
   uses backdrop-filter. The blur stays on desktop. Touch screens get a
   solid bar so Log in actually navigates. */
@media (hover: none) and (pointer: coarse) {
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

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

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.6rem;
  margin-right: auto;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.2rem;
}

.brand-mark {
  width: 32px;
  height: auto;
}

.site-nav {
  display: none;
  gap: 1.75rem;
}

.site-nav a,
.login-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 560;
}

.site-nav a:hover,
.login-link:hover {
  color: var(--ink);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.cta-long {
  display: none;
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }
}

@media (min-width: 1200px) {
  .cta-long {
    display: inline;
  }

  .cta-short {
    display: none;
  }
}

/* Buttons */
.btn,
.link-cta {
  font: inherit;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.6rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 640;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
}

.btn-primary:hover {
  background: var(--btn-hover);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--ink);
}

.btn-sm {
  min-height: 44px;
  padding: 0.4rem 1.05rem;
  font-size: 0.95rem;
}

.btn-lg {
  min-height: 52px;
  padding: 0.75rem 1.7rem;
  font-size: 1.05rem;
}

.btn-inverse {
  background: #ffffff;
  color: #0a0a0b;
}

.btn-inverse:hover {
  background: #e8e8e8;
}

.btn-inverse-outline {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-inverse-outline:hover {
  border-color: #ffffff;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.link-cta {
  font-weight: 640;
  text-decoration: none;
  color: var(--ink);
}

.link-cta:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(1.5rem, 4vw, 3.5rem);
  background:
    radial-gradient(60rem 28rem at 78% -6rem, color-mix(in srgb, var(--ink) 7%, transparent), transparent 70%),
    var(--bg);
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  font-size: clamp(2.4rem, 1.2rem + 4.6vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.lead {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.93rem;
  color: var(--muted);
}

/* Hero example */
.demo {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.demo-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--line-strong);
}

.demo-bar p {
  margin-left: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.demo-body {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
}

.demo-msg {
  font-size: 0.97rem;
  line-height: 1.5;
}

.demo-you {
  justify-self: end;
  max-width: 88%;
  padding: 0.7rem 0.95rem;
  background: var(--soft);
  border-radius: 14px 14px 4px 14px;
}

.demo-agent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.demo-agent img {
  width: 28px;
  flex: none;
  margin-top: 0.15rem;
}

.demo-who {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-workers {
  display: grid;
  gap: 0.5rem;
  margin-left: 2.35rem;
}

.demo-workers li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.92rem;
}

.demo-name {
  font-weight: 650;
}

.demo-task {
  color: var(--muted);
}

.demo-state {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ok);
}

.demo-state::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.demo-file {
  justify-self: start;
  margin-left: 2.35rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

/* Sections */
.band {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.band-soft {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  letter-spacing: -0.035em;
}

.section-lead {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 38rem;
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* How it works */
.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: none;
}

.steps li {
  position: relative;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.steps h3,
.role h3,
.feature h3 {
  margin-bottom: 0.5rem;
}

.steps p,
.role p,
.feature p {
  color: var(--muted);
  font-size: 0.98rem;
}

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

/* Team and privacy cards */
.role-grid {
  display: grid;
  gap: 1.25rem;
}

.role {
  padding: 1.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.trust-links {
  margin-top: 1.75rem;
  color: var(--muted);
}

.trust-links a {
  color: var(--ink);
  font-weight: 600;
}

/* Features */
.feature-grid {
  display: grid;
  gap: 1.25rem;
}

.feature {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.ico {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.55rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Using less */
.usage-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.ticks {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.ticks li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--muted);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) translateY(-30%);
}

.ticks b {
  color: var(--ink);
}

.router {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.router-in,
.router-hub {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 650;
}

.router-in {
  border: 1px solid var(--line-strong);
}

.router-hub {
  display: grid;
  background: var(--btn-bg);
  color: var(--btn-ink);
}

.router-hub small {
  font-weight: 500;
  opacity: 0.8;
}

.router-rungs {
  display: grid;
  gap: 0.5rem;
}

.router-rungs li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.router-rungs span {
  color: var(--muted);
}

.router figcaption {
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 960px) {
  .usage-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 4rem;
  }
}

/* Pricing */
.plans {
  display: grid;
  gap: 1.25rem;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plan-free {
  border: 2px solid var(--ink);
  padding: calc(1.6rem - 1px);
}

.plan h3 {
  font-size: 1.25rem;
}

.amount {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.num {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.per {
  color: var(--muted);
  font-size: 0.95rem;
}

.yearly {
  min-height: 2.9em;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.plan ul {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  flex: 1;
  margin: 1.25rem 0 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.plan li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.38em;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}

.plan .btn {
  width: 100%;
}

.price-note {
  margin-top: 1.25rem;
  max-width: 52rem;
  font-size: 0.93rem;
  color: var(--muted);
}

.price-note:first-of-type {
  margin-top: 1.75rem;
}

.price-note:empty {
  display: none;
}

@media (min-width: 700px) {
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* FAQ */
.faq {
  max-width: 52rem;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  font-size: 1.05rem;
  font-weight: 620;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  padding-bottom: 1.25rem;
  max-width: 44rem;
  color: var(--muted);
}

/* Final call to action */
.final {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: var(--dark);
  color: var(--on-dark);
  text-align: center;
}

.final-inner {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.final-mark {
  width: 56px;
  height: auto;
  margin-bottom: 0.5rem;
  /* The band is dark in both schemes; the light-scheme file is black, so flip it. */
  filter: invert(1);
}

@media (prefers-color-scheme: dark) {
  .final-mark {
    filter: none;
  }
}

.final h2 {
  color: var(--on-dark);
}

.final p {
  max-width: 34rem;
  color: var(--on-dark-muted);
  font-size: 1.1rem;
}

.final .cta-row {
  justify-content: center;
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.93rem;
}

.footer-bar {
  display: grid;
  gap: 1.75rem;
}

.footer-top,
.footer-bottom {
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-brand img {
  width: 28px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}

.site-footer nav a:hover,
.site-footer nav .link-cta {
  color: var(--ink);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-cookies {
  color: var(--muted);
}

.footer-cookies a {
  color: var(--ink);
}

@media (min-width: 860px) {
  .footer-top,
  .footer-bottom {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .footer-top nav,
  .footer-bottom nav {
    justify-content: flex-end;
  }
}

/* Waitlist box: shown only while sign-up is closed. */
.waitlist {
  margin-top: 1.75rem;
  max-width: 28rem;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.25rem 1.25rem 1.35rem;
}

.waitlist h2 {
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.waitlist-lead {
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.waitlist label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  font-weight: 640;
  font-size: 0.98rem;
}

.waitlist .opt {
  font-weight: 500;
  color: var(--muted);
}

.waitlist input[type="email"],
.waitlist input[type="text"] {
  width: 100%;
  min-height: 46px;
  font: inherit;
  font-size: 16px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--control);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
}

.waitlist input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.waitlist .btn {
  width: 100%;
  margin-top: 1rem;
}

.waitlist .form-challenge {
  margin: 0.9rem 0 0;
  min-width: 0;
  max-width: 100%;
}

.waitlist .form-challenge[hidden] {
  display: none;
}

.waitlist .challenge-note {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--muted);
}

.waitlist .form-challenge,
.waitlist .challenge-box {
  position: relative;
  z-index: 0;
  isolation: isolate;
}

.waitlist .challenge-box {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 65px;
  max-height: 140px;
  overflow: hidden;
  /* A transformed box is the containing block for a fixed-position iframe,
     so the human-check widget cannot cover the header. */
  transform: translateZ(0);
}

.waitlist .challenge-box iframe {
  max-width: 100%;
  max-height: 140px;
}

.waitlist-err,
.waitlist-ok {
  margin: 0.75rem 0 0;
  font-size: 0.98rem;
  line-height: 1.45;
}

.waitlist-err:empty {
  display: none;
}

.waitlist-err {
  font-weight: 680;
}

.waitlist-ok {
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--ink);
  border-radius: 10px;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Phones */
@media (max-width: 699px) {
  .yearly {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  :root {
    --header-h: 3.5rem;
  }

  .header-bar {
    gap: 0.75rem;
  }

  .header-cta {
    gap: 0.9rem;
  }

  .brand {
    font-size: 1.1rem;
  }

  .brand-mark {
    width: 28px;
  }

  .cta-row .btn {
    width: 100%;
  }

  .demo-workers,
  .demo-file {
    margin-left: 0;
  }

  .demo-workers li {
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    font-size: 0.88rem;
  }

  .num {
    font-size: 2.2rem;
  }
}

@media (max-width: 390px) {
  .waitlist {
    padding: 1rem 0.9rem 1.1rem;
  }

  .waitlist .form-challenge {
    margin-top: 0.75rem;
  }

  .waitlist .challenge-box {
    min-height: 65px;
  }
}

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

  .btn {
    transition: none;
  }
}

/* Legal pages: terms, privacy, cookies, acceptable use, refunds. */
.legal-doc {
  max-width: 46rem;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 4rem;
  font-size: 1.02rem;
  line-height: 1.6;
}

.legal-doc h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem);
}

.legal-updated {
  margin-top: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 1rem 0 0;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
}

.legal-doc h2 {
  margin-top: 2.25rem;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem);
}

.legal-doc h3 {
  margin-top: 1.4rem;
}

.legal-doc p,
.legal-doc ul,
.legal-doc ol,
.legal-doc dl,
.legal-doc table {
  margin-top: 0.85rem;
}

.legal-doc ul,
.legal-doc ol {
  padding-left: 1.4rem;
}

.legal-doc ul {
  list-style: disc;
}

.legal-doc ol {
  list-style: decimal;
}

.legal-doc li + li {
  margin-top: 0.35rem;
}

.legal-doc dt {
  margin-top: 0.85rem;
  font-weight: 650;
}

.legal-doc dd {
  margin: 0.2rem 0 0;
}

.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

.legal-doc th {
  font-weight: 650;
}

.legal-table-wrap {
  overflow-x: auto;
}

.legal-summary {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-summary p:first-child {
  margin-top: 0;
}

.legal-placeholder {
  display: inline-block;
  padding: 0 0.35rem;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-weight: 650;
}

.legal-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.legal-doc a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.legal-header .header-cta .btn {
  white-space: nowrap;
}
