/* Nubadir landing — "warm civic editorial"
   Tokens first, then base, then sections. No framework, no build step. */

:root {
  --teal: #0E5E6F;
  --teal-deep: #0A4653;
  --teal-soft: #D6E6E9;
  --sand: #F6F0E6;
  --sand-2: #EDE4D5;
  --paper: #FFFDF9;
  --terracotta: #D96C3B;
  --terracotta-text: #B04E22;   /* 4.7:1 on sand — use for small text */
  --ink: #1B1B1B;
  --ink-2: #5B5750;             /* 6.3:1 on sand */
  --olive: #4B7F52;
  --olive-text: #3A6640;        /* 5.9:1 on sand */
  --line: rgba(27, 27, 27, 0.14);

  --font-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, "Segoe UI", Tahoma, Arial, sans-serif;
  --font-en: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  --font: var(--font-ar);

  --text-sm: 0.875rem;
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.35rem);
  --text-h2: clamp(1.9rem, 1.3rem + 2.4vw, 3.4rem);
  --text-hero: clamp(2.4rem, 1.4rem + 4.4vw, 5.4rem);
  --text-num: clamp(3.5rem, 2rem + 5vw, 6.5rem);

  --gutter: clamp(1rem, 4vw, 4.5rem);
  --section: clamp(4rem, 3rem + 5vw, 9rem);
  --max: 1280px;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-1: 0 1px 2px rgba(27, 27, 27, 0.06), 0 8px 24px -12px rgba(14, 94, 111, 0.25);
  --shadow-2: 0 2px 4px rgba(27, 27, 27, 0.06), 0 24px 48px -24px rgba(14, 94, 111, 0.45);

  --duration: 220ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ls-tight: 0;
}

html[lang="en"] {
  --font: var(--font-en);
  --ls-tight: -0.015em;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100dvh;
}

/* Decorative grain only on larger pointer-driven screens. */
@media (min-width: 900px) and (hover: hover) {
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: var(--ls-tight);
  text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img, svg { max-width: 100%; display: block; }

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

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

.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--sand);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top var(--duration) var(--ease);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--terracotta-text);
  margin-block-end: 1rem;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.eyebrow-light { color: var(--sand); }

.section-head { max-width: 40rem; }
.section-head h2 { font-size: var(--text-h2); }
.section-lede {
  margin-block-start: 1.25rem;
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.6;
}

/* ---------- Buttons & tags ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), background-color var(--duration) var(--ease);
}
.btn-primary {
  background: var(--terracotta);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(27, 27, 27, 0.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(217, 108, 59, 0.8); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--sand); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}
.tag-olive { background: var(--olive); color: #fff; }
.tag-terracotta { background: var(--terracotta); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem var(--gutter);
  background: rgba(246, 240, 230, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-inline-end: auto;
}
.brand-mark { flex: none; }
.brand-word {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
}
.brand-latin {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding-block: 0.25rem;
}
.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: inline-end;
  transition: transform var(--duration) var(--ease);
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: inline-start; }

.lang-toggle {
  min-width: 3rem;
  height: 2.5rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: transparent;
  font-weight: 700;
  font-family: var(--font-en);
  cursor: pointer;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
.lang-toggle:hover { background: var(--ink); color: var(--sand); }

/* ---------- Layout helpers ---------- */
main > section, .site-footer { padding-inline: var(--gutter); }
.how, .community, .business, .cta-final, .strip {
  max-width: var(--max);
  margin-inline: auto;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  max-width: var(--max);
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 6rem) var(--section);
}
.hero-copy { grid-column: 1 / span 7; }
.hero-card { grid-column: 8 / span 5; }

.hero h1 {
  font-size: var(--text-hero);
  line-height: 1.08;
  max-width: 14ch;
}
.lede {
  margin-block-start: 1.5rem;
  max-width: 36rem;
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--ink);
}

/* Waitlist form: a paper card floating over a terracotta offset slab */
.launch-note { margin-block-start: 1rem; font-size: var(--text-sm); color: var(--ink-2); }
.waitlist {
  position: relative;
  margin-block-start: 2.5rem;
  max-width: 38rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.waitlist::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--radius);
  background: var(--terracotta);
  transform: translate(-8px, 8px);
  opacity: 0.85;
}
html[dir="rtl"] .waitlist::before { transform: translate(8px, 8px); }

.waitlist-title {
  font-size: 1.2rem;
  margin-block-end: 1rem;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.field { display: block; }
.field-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-2);
  margin-block-end: 0.35rem;
}
.field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--sand);
  transition: border-color var(--duration) var(--ease), background-color var(--duration) var(--ease);
}
.field input::placeholder { color: var(--ink-2); opacity: 1; }
.field input:hover { border-color: var(--ink-2); }
.field input:focus { border-color: var(--teal); background: #fff; outline: none; box-shadow: 0 0 0 3px var(--teal-soft); }
.field input[aria-invalid="true"] { border-color: var(--terracotta-text); }

.role-set {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
}
.role-set legend {
  float: inline-start;
  margin-inline-end: 0.5rem;
  margin-block-end: 0;
  padding: 0;
}
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.chip-label {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--sand);
  transition: background-color var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip:hover .chip-label { border-color: var(--ink-2); }
.chip input:checked + .chip-label { background: var(--teal); border-color: var(--teal); color: var(--sand); }
.chip input:focus-visible + .chip-label { outline: 3px solid var(--teal); outline-offset: 3px; }

.hp {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-block-start: 1.25rem;
}
.form-note { font-size: var(--text-sm); color: var(--ink-2); }
.form-status {
  margin-block-start: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--olive-text);
}
.form-status:empty { display: none; }
.form-status.is-error { color: var(--terracotta-text); }
.form-status a { color: var(--teal); }

/* Ticket-style app preview */
.hero-card { position: relative; }
.ticket {
  position: relative;
  padding: 1.35rem 1.35rem 1.15rem;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  border: 1px solid var(--line);
  transform: rotate(-2deg);
  transition: transform 400ms var(--ease);
}
html[dir="rtl"] .ticket { transform: rotate(2deg); }
.hero-card:hover .ticket { transform: rotate(0deg); }

.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block-end: 0.85rem;
}
.ticket-time { font-family: var(--font-en); font-size: 0.85rem; color: var(--ink-2); font-weight: 600; }
.ticket-title { font-size: 1.25rem; line-height: 1.3; }
.ticket-org { margin-block-start: 0.3rem; font-size: 0.9rem; color: var(--ink-2); }
.ticket-org strong { color: var(--teal); }

.map {
  position: relative;
  height: 150px;
  margin-block-start: 1rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(246, 240, 230, 0.08) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(246, 240, 230, 0.08) 0 1px, transparent 1px 22px),
    linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
}
.fence {
  position: absolute;
  left: 50%; top: 50%;
  width: 110px; height: 110px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px dashed rgba(246, 240, 230, 0.75);
  background: rgba(217, 108, 59, 0.22);
}
.pin {
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(246, 240, 230, 0.9);
}
.pin::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--terracotta);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}
.map-label {
  position: absolute;
  bottom: 0.6rem;
  inset-inline-start: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--sand);
  color: var(--teal-deep);
  font-size: 0.75rem;
  font-weight: 600;
}

.counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-block-start: 1rem;
}
.counts li {
  padding: 0.6rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--sand);
  text-align: center;
}
.counts strong {
  display: block;
  font-family: var(--font-en);
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 700;
  color: var(--teal);
}
.counts span { font-size: 0.75rem; color: var(--ink-2); }
.counts .verified { background: var(--teal); }
.counts .verified strong, .counts .verified span { color: var(--sand); }

.perforation {
  position: relative;
  height: 0;
  margin: 1.1rem -1.35rem 1rem;
  border-top: 2px dashed var(--line);
}
.perforation::before, .perforation::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--sand);
  box-shadow: inset 0 0 0 1px var(--line);
}
.perforation::before { left: -10px; }
.perforation::after { right: -10px; }

.checkin {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.selfie {
  flex: none;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--olive);
  color: #fff;
  border: 3px solid var(--sand);
  box-shadow: 0 0 0 2px var(--olive);
}
.checkin-title { font-weight: 700; font-size: 0.95rem; }
.checkin-meta { font-size: 0.8rem; color: var(--ink-2); }
.contribution-thanks {
  margin-inline-start: auto;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--terracotta-text);
}
.card-caption {
  margin-block-start: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-2);
}

/* ---------- Strip ---------- */
.strip {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-block: 0.9rem;
}
.strip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0;
  font-weight: 600;
  font-size: 0.95rem;
}
.strip-list li { padding-inline: 1.1rem; position: relative; }
.strip-list li + li::before {
  content: "";
  position: absolute;
  inset-inline-start: -4px;
  top: 50%;
  width: 8px; height: 8px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--terracotta);
}

/* ---------- How it works ---------- */
.how { padding-block: var(--section); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-block-start: clamp(2.5rem, 5vw, 4.5rem);
  counter-reset: step;
}
.step {
  position: relative;
  padding-block-start: 1.25rem;
  border-top: 2px solid var(--ink);
}
.step-num {
  display: block;
  font-family: var(--font-en);
  font-size: var(--text-num);
  font-weight: 700;
  line-height: 0.9;
  color: var(--terracotta);
  letter-spacing: -0.04em;
  margin-block-end: 1rem;
}
.step h3 { font-size: 1.35rem; margin-block-end: 0.6rem; }
.step p { color: var(--ink-2); }
.step:nth-child(2) { margin-block-start: clamp(0rem, 4vw, 3rem); }
.step:nth-child(3) { margin-block-start: clamp(0rem, 8vw, 6rem); }

/* ---------- Organisers (full-bleed teal) ---------- */
.organisers {
  background: var(--teal);
  color: var(--sand);
  padding-block: var(--section);
  position: relative;
  overflow: hidden;
}
.organisers::after {
  content: "";
  position: absolute;
  inset-inline-end: -12vw;
  top: -20%;
  width: 46vw; height: 140%;
  border-radius: 50%;
  background: var(--teal-deep);
  opacity: 0.7;
  pointer-events: none;
}
.org-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.org-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2rem;
}
.org-features li {
  padding-inline-start: 1.1rem;
  border-inline-start: 3px solid var(--terracotta);
}
.org-features h3 { font-size: 1.15rem; margin-block-end: 0.4rem; }
.org-features p { font-weight: 300; }

/* ---------- Businesses ---------- */
.business { padding-block: var(--section) 0; }
.biz-card {
  position: relative;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  border: 2px dashed var(--terracotta);
  border-radius: var(--radius-lg);
  background: var(--sand-2);
  max-width: 52rem;
}
.biz-card h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); margin-block: 1rem; }
.biz-card p { max-width: 40rem; color: var(--ink-2); margin-block-end: 1.5rem; }

/* ---------- Community ---------- */
.community { padding-block: var(--section); }
.community-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-block-start: 2.5rem; }
.community-grid article { border-top: 2px solid var(--teal); padding-block-start: 1.25rem; }
.community-grid h3 { font-size: 1.35rem; line-height: 1.4; margin-block-end: 0.8rem; }
.community-grid p { color: var(--ink-2); }
.community-note { margin-block-start: 2rem; font-size: var(--text-sm); color: var(--ink-2); }
@media (max-width: 760px) { .community-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- Final CTA ---------- */
.cta-final {
  padding-block: 0 var(--section);
  text-align: center;
}
.cta-final h2 {
  font-size: var(--text-h2);
  margin-block-end: 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--sand);
  padding-block: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 3rem;
  align-items: start;
}
.footer-brand p { margin-block-start: 0.6rem; font-weight: 400; }
.footer-owners { font-size: var(--text-sm); opacity: 0.85; }
.site-footer .brand-latin { color: #C9C2B6; }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { text-decoration: none; opacity: 0.9; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; opacity: 1; }
.site-footer :focus-visible { outline-color: var(--sand); }
.copyright {
  grid-column: 1 / -1;
  font-family: var(--font-en);
  font-size: var(--text-sm);
  opacity: 0.7;
  border-top: 1px solid rgba(246, 240, 230, 0.2);
  padding-block-start: 1.25rem;
  text-align: start;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-copy { grid-column: 1 / span 7; }
  .hero-card { grid-column: 8 / -1; }
  .org-inner { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy, .hero-card { grid-column: auto; }
  .hero-card { max-width: 30rem; margin-inline: auto; width: 100%; }
  .ticket, html[dir="rtl"] .ticket { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(n) { margin-block-start: 0; }
}
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; gap: 0.5rem 1rem; }
  .site-nav { order: 3; flex-basis: 100%; gap: 1rem; overflow-x: auto; padding: 0.25rem; }
  .site-nav a { flex: none; white-space: nowrap; min-height: 2.75rem; display: inline-flex; align-items: center; }
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .org-features { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .brand-latin { display: none; }
  .waitlist::before, html[dir="rtl"] .waitlist::before { transform: translate(0, 6px); }
}
@media (max-width: 360px) {
  .counts { grid-template-columns: 1fr 1fr 1fr; gap: 0.3rem; }
  .counts strong { font-size: 1.3rem; }
}

/* ---------- Motion preferences ---------- */
/* Shared policy and not-found pages use the landing page's existing visual system. */
[data-content-lang] { display: none; }
html[lang="ar"] [data-content-lang="ar"], html[lang="en"] [data-content-lang="en"] { display: block; }
h1 [data-content-lang], .legal-date [data-content-lang] { display: none; }
html[lang="ar"] h1 [data-content-lang="ar"], html[lang="en"] h1 [data-content-lang="en"],
html[lang="ar"] .legal-date [data-content-lang="ar"], html[lang="en"] .legal-date [data-content-lang="en"] { display: inline; }
.legal-page { max-width: 54rem; margin-inline: auto; padding: 3rem var(--gutter) 5rem; min-height: 50vh; }
.legal-heading { border-bottom: 1px solid var(--line); padding-block-end: 2rem; margin-block-end: 2rem; }
.legal-heading h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.legal-date { margin-block-start: 1rem; color: var(--ink-2); }
.legal-page section { margin-block-start: 2rem; }
.legal-page h2 { font-size: 1.4rem; line-height: 1.4; margin-block-end: 0.7rem; }
.legal-page a { color: var(--teal); text-underline-offset: 3px; overflow-wrap: anywhere; }
#waitlist, :target { scroll-margin-top: 8rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .pin::after { display: none; }
}
