/* ==========================================================================
   Finchly landing site — shared styles
   Plain CSS, no build step, no framework. Palette matches the mobile app:
   cream paper, brand gold, and a soft dark theme for prefers-color-scheme.
   ========================================================================== */

/* --- tokens --------------------------------------------------------------- */
:root {
  --bg: #fffdf7;
  --bg-alt: #fff8e9;
  --surface: #ffffff;
  --border: #efe9dc;
  --border-strong: #e2d9c5;

  --ink: #1a1714;
  --ink-muted: #55504a;
  --ink-faint: #8a837a;

  --gold: #ffc107;
  --gold-deep: #b8860b; /* large/bold text, borders, accents only */
  --gold-text: #8a6508; /* small text on light backgrounds */
  --gold-wash: #fff3d6;

  --green: #27ae60;
  --green-wash: #e7f7ec;
  --blue: #2f80ed;
  --blue-wash: #e4f0ff;
  --purple: #7c5ce0;
  --purple-wash: #f1e9ff;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(26, 23, 20, 0.05);
  --shadow: 0 1px 2px rgba(26, 23, 20, 0.04), 0 10px 28px -14px rgba(26, 23, 20, 0.16);
  --shadow-lg: 0 2px 4px rgba(26, 23, 20, 0.05), 0 24px 56px -24px rgba(26, 23, 20, 0.28);

  --max: 1120px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --bg-alt: #191713;
    --surface: #1e1e1e;
    --border: #2e2c28;
    --border-strong: #3a3733;

    --ink: #f2efe9;
    --ink-muted: #b3ada4;
    --ink-faint: #8b857c;

    --gold-deep: #e5b94e;
    --gold-text: #e5b94e;
    --gold-wash: #3a331c;

    --green-wash: #1e3326;
    --blue-wash: #1c2a3d;
    --purple-wash: #2e2547;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -14px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.5), 0 24px 56px -24px rgba(0, 0, 0, 0.9);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* clears the sticky header on anchor jumps */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

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

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

/* --- layout helpers ------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(184, 134, 11, 0.28);
  border-radius: var(--radius-pill);
  background: var(--gold-wash);
  color: var(--gold-text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h2.h2 {
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
}

h3.h3 {
  font-size: 1.06rem;
}

.lede {
  margin-top: 0.9rem;
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.97rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--gold);
  color: #241d05;
  box-shadow: 0 8px 20px -10px rgba(184, 134, 11, 0.9);
}

.btn--primary:hover {
  background: #ffcb2b;
  box-shadow: 0 12px 26px -10px rgba(184, 134, 11, 0.95);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--gold-deep);
  color: var(--gold-text);
}

.btn--sm {
  padding: 0.55rem 1.05rem;
  font-size: 0.9rem;
}

/* --- header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg); /* fallback where color-mix() is unsupported */
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

/* one flex item, so the header's `gap` can't split the wordmark in two */
.brand .wordmark {
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin-inline-start: auto;
  flex-wrap: wrap;
}

.nav a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
  font-size: 0.93rem;
  font-weight: 700;
}

.nav a:hover {
  background: var(--gold-wash);
  color: var(--gold-text);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  background: var(--gold-wash);
  color: var(--gold-text);
  font-weight: 800;
}

.site-header .btn {
  margin-inline-start: 0.35rem;
}

@media (max-width: 560px) {
  .nav {
    order: 3;
    width: 100%;
    margin-inline-start: 0;
    gap: 0;
  }
  .nav a {
    padding-inline: 0.6rem;
  }
  .site-header .btn {
    margin-inline-start: auto;
  }
}

/* --- hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.hero__blob {
  position: absolute;
  top: -9rem;
  right: -6rem;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.14;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-deep);
}

.hero__sub {
  margin-top: 1.1rem;
  max-width: 34rem;
  color: var(--ink-muted);
  font-size: clamp(1.02rem, 1.8vw, 1.16rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 1.4rem;
  list-style: none;
  color: var(--ink-faint);
  font-size: 0.87rem;
  font-weight: 600;
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__trust svg {
  color: var(--green);
  flex: none;
}

/* --- phone mockup (pure CSS) ---------------------------------------------- */
.showcase {
  position: relative;
  display: grid;
  justify-items: center;
}

.phone {
  position: relative;
  width: min(300px, 78vw);
  padding: 0.7rem 0.65rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: 38px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.phone::before {
  content: "";
  display: block;
  width: 4.5rem;
  height: 0.32rem;
  margin: 0 auto 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--border-strong);
}

.phone__screen {
  border-radius: 26px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.9rem 0.85rem 1.1rem;
  display: grid;
  gap: 0.7rem;
}

.mini-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.mini-top img {
  width: 30px;
  height: 30px;
  flex: none;
}

.mini-top strong {
  font-size: 0.83rem;
  letter-spacing: -0.01em;
}

.mini-top small {
  display: block;
  color: var(--ink-faint);
  font-size: 0.68rem;
  font-weight: 600;
}

.mini-chip {
  margin-inline-start: auto;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--gold-wash);
  color: var(--gold-text);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.mini-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 0.6rem 0.7rem;
  box-shadow: var(--shadow-sm);
}

.mini-card__label {
  color: var(--ink-faint);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.mini-row strong {
  font-size: 0.8rem;
}

.mini-pill {
  margin-inline-start: auto;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--blue-wash);
  color: var(--blue);
  font-size: 0.64rem;
  font-weight: 800;
}

.mini-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--purple);
  flex: none;
}

.bubble {
  max-width: 88%;
  padding: 0.5rem 0.7rem;
  font-size: 0.76rem;
  line-height: 1.5;
  border-radius: 14px;
}

.bubble--me {
  margin-inline-start: auto;
  background: var(--gold);
  color: #241d05;
  border-bottom-right-radius: 5px;
  font-weight: 600;
}

.bubble--bot {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  border-bottom-left-radius: 5px;
}

.mini-task {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.mini-check {
  width: 1rem;
  height: 1rem;
  border-radius: 5px;
  border: 2px solid var(--green);
  background: var(--green-wash);
  flex: none;
}

/* --- feature cards -------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.card--hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.95rem;
  border-radius: 13px;
}

.card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.tint-gold {
  background: var(--gold-wash);
  color: var(--gold-text);
}
.tint-green {
  background: var(--green-wash);
  color: var(--green);
}
.tint-blue {
  background: var(--blue-wash);
  color: var(--blue);
}
.tint-purple {
  background: var(--purple-wash);
  color: var(--purple);
}

.card p {
  margin-top: 0.4rem;
  color: var(--ink-muted);
  font-size: 0.93rem;
}

.tag {
  display: inline-block;
  margin-inline-start: 0.45rem;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--gold-wash);
  color: var(--gold-text);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 0.15em;
}

/* --- steps ---------------------------------------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  list-style: none;
}

.steps li {
  position: relative;
  padding: 1.4rem 1.4rem 1.4rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  background: var(--gold);
  color: #241d05;
  font-size: 0.95rem;
  font-weight: 800;
}

.steps h3 {
  font-size: 1rem;
}

.steps p {
  margin-top: 0.35rem;
  color: var(--ink-muted);
  font-size: 0.93rem;
}

/* --- plans ---------------------------------------------------------------- */
.plans {
  display: grid;
  gap: 1.15rem;
  align-items: stretch; /* both cards share a height; buttons hug the bottom */
}

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

.plan {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.plan--pro {
  border-color: var(--gold-deep);
  box-shadow: var(--shadow);
}

.plan__top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.plan__name {
  font-size: 1.15rem;
}

.plan__badge {
  margin-inline-start: auto;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: #241d05;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan__price {
  margin-top: 0.9rem;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan__price small {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0;
}

.plan__alt {
  margin-top: 0.3rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.plan ul {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.6rem;
  list-style: none;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.plan li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.plan li svg {
  flex: none;
  margin-top: 0.28rem;
  color: var(--green);
}

.plan .btn {
  width: 100%;
  margin-top: auto;
  padding-top: 0.8rem;
}

.plan ul {
  margin-bottom: 1.4rem;
}

.plan__note {
  margin-top: 0.85rem;
  color: var(--ink-faint);
  font-size: 0.83rem;
  text-align: center;
}

/* --- about / purpose (Google OAuth verification) --------------------------- */
.about {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

@media (min-width: 920px) {
  .about {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.about__body p {
  margin-top: 0.95rem;
  color: var(--ink-muted);
  font-size: 1rem;
}

.about__body strong {
  color: var(--ink);
  font-weight: 700;
}

.app-facts {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.app-facts > div {
  display: grid;
  gap: 0.15rem 0.9rem;
  padding: 0.8rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.app-facts > div:last-child {
  border-bottom: 0;
}

@media (min-width: 520px) {
  .app-facts > div {
    grid-template-columns: 8.5rem 1fr;
    align-items: baseline;
  }
}

.app-facts dt {
  color: var(--ink-faint);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.app-facts dd {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.app-facts dd strong {
  color: var(--ink);
  font-weight: 800;
}

/* --- data disclosure (Google OAuth verification) -------------------------- */
.scope-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.scope {
  display: grid;
  gap: 0.4rem 1.25rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.scope:last-child {
  border-bottom: 0;
}

@media (min-width: 760px) {
  .scope {
    grid-template-columns: 18rem 1fr 5.5rem;
    align-items: baseline;
  }
}

.scope code {
  justify-self: start;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  background: var(--gold-wash);
  color: var(--gold-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.scope p {
  color: var(--ink-muted);
  font-size: 0.93rem;
}

.scope .ro {
  justify-self: start;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--green-wash);
  color: var(--green);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-split {
  display: grid;
  gap: 1rem;
  margin-top: 1.15rem;
  align-items: start;
}

@media (min-width: 860px) {
  .data-split {
    grid-template-columns: 1fr 1fr;
  }
}

.donts {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.donts h3 {
  font-size: 1rem;
}

.donts ul {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.55rem;
  list-style: none;
  color: var(--ink-muted);
  font-size: 0.93rem;
}

/* absolute marker, not a flex item — a flex `gap` would push inline links out
   of the sentence they belong to */
.donts li {
  position: relative;
  padding-inline-start: 1.7rem;
}

.donts li::before {
  content: "×";
  position: absolute;
  inset-inline-start: 0;
  top: 0.15rem;
  display: grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--gold-wash);
  color: var(--gold-text);
  font-weight: 800;
  font-size: 0.8rem;
  line-height: 1;
}

/* same card, affirmative markers */
.donts--do li::before {
  content: "✓";
  background: var(--green-wash);
  color: var(--green);
}

.legal-note + .donts {
  margin-top: 1rem;
}

.data-actions {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 700;
}

/* --- faq ------------------------------------------------------------------ */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
  margin-inline: auto;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0.95rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.faq summary::after {
  content: "+";
  margin-inline-start: auto;
  color: var(--gold-deep);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

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

.faq details p {
  margin-top: 0.7rem;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

/* --- closing cta ---------------------------------------------------------- */
.cta {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  border: 1px solid rgba(184, 134, 11, 0.3);
  border-radius: 26px;
  background: linear-gradient(135deg, var(--gold-wash), var(--surface));
  padding: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
  justify-items: center;
}

@media (min-width: 760px) {
  .cta {
    grid-template-columns: 9rem 1fr;
    text-align: start;
    justify-items: start;
  }
}

.cta img {
  width: 9rem;
}

.cta h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
}

.cta p {
  margin-top: 0.7rem;
  color: var(--ink-muted);
}

.cta .hero__actions {
  margin-top: 1.3rem;
}

/* --- footer --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding-block: 2.5rem 2rem;
  font-size: 0.9rem;
}

.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
}

.site-footer p {
  margin-top: 0.6rem;
  max-width: 22rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--ink-muted);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--gold-text);
}

.site-footer__base {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  color: var(--ink-faint);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: space-between;
}

/* --- legal pages ---------------------------------------------------------- */
.legal-hero {
  padding-block: clamp(2.5rem, 6vw, 4rem) 0;
}

.legal-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
}

.legal-hero .updated {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.25rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.legal-hero .lede {
  max-width: 42rem;
}

.legal-layout {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2rem, 5vw, 3rem) clamp(3.5rem, 8vw, 5rem);
  align-items: start;
}

@media (min-width: 940px) {
  .legal-layout {
    grid-template-columns: 15rem 1fr;
  }
  .toc {
    position: sticky;
    top: 5.5rem;
  }
}

.toc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.toc h2 {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.toc ol {
  margin: 0.7rem 0 0;
  padding-inline-start: 1.15rem;
  display: grid;
  gap: 0.3rem;
  font-size: 0.87rem;
}

.toc a {
  color: var(--ink-muted);
  font-weight: 600;
}

.toc a:hover {
  color: var(--gold-text);
}

.legal {
  display: grid;
  gap: 1rem;
  max-width: 46rem;
}

.legal section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 5.5rem;
}

.legal h2 {
  font-size: 1.08rem;
  margin-bottom: 0.6rem;
}

.legal p,
.legal ul {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.legal p + p,
.legal p + ul,
.legal ul + p {
  margin-top: 0.75rem;
}

.legal ul {
  display: grid;
  gap: 0.5rem;
  padding-inline-start: 1.25rem;
  list-style: disc;
}

.legal strong {
  color: var(--ink);
  font-weight: 700;
}

.legal-note {
  border: 1px solid rgba(184, 134, 11, 0.3);
  border-radius: var(--radius);
  background: var(--gold-wash);
  padding: 1.1rem 1.25rem;
  color: var(--gold-text);
  font-size: 0.92rem;
  font-weight: 600;
}

.legal-note a {
  color: inherit;
  text-decoration: underline;
}

/* beats `.legal p` so the callout keeps its own colour inside a legal page */
.legal .legal-note {
  color: var(--gold-text);
}
