/* lendey-web — all styles for every page.
   The layout is perawise-web's (phones in CSS frames, a steps block, a spotlight, card rows, a
   privacy card), without its script: Lendey is light only, like the apps. The landing page's
   iPhone/Android switch is two radio buttons read by :has() below, and on the policy pages it is
   two plain links. Colours mirror the app's warm-paper palette
   (lendey-swift LendeyDesign/Tokens.generated.swift). No web fonts: the system stack is SF Pro on
   Apple devices and Roboto on Android, which is each app's own face. */

:root {
  color-scheme: light;

  --surface-app: #F4F3F0;    /* Tokens.canvas; repeated in every page's <meta name="theme-color"> */
  --surface-card: #FFFFFF;   /* Tokens.surface */
  --surface-sunken: #ECEAE5; /* Tokens.canvasSunken */
  --brand: #2F6B4D;          /* Tokens.green: text, icons, and fills under white text */
  --brand-deep: #1C3A2A;     /* Tokens.LoanFace.cash, the gradient's dark end */
  --text-primary: #14161A;   /* Tokens.ink */
  --text-secondary: #55575A; /* Tokens.textSecondary (ink at 70%) flattened on canvas: 6.9:1 */
  --text-tertiary: #67686B;  /* Tokens.textTertiary (ink at 60%) flattened: 5.2:1 on canvas */
  --text-quiet: #8F9093;     /* decorative numerals only, never words */
  --on-brand: #FFFFFF;
  --border: #E2E0DB;         /* Tokens.hairline flattened on canvas */

  /* Web-only washes for the panels behind the phones. Green is the brand's own pale; the others
     are the loan faces' hues (Tokens.LoanFace item, card, custom), washed out. */
  --surface-tint: #E8F2EC;   /* Tokens.greenPale; --brand on it is 5.6:1 */
  --tint-amber: #FBF1E2;     /* Tokens.amberPale */
  --tint-indigo: #E9EBF4;    /* LoanFace.card, washed */
  --tint-plum: #F4E9EF;      /* LoanFace.custom, washed */
  --tint-rule: color-mix(in srgb, var(--brand) 14%, transparent);
  --tint-rule-strong: color-mix(in srgb, var(--brand) 22%, transparent);

  --bezel: #0B0C0E;
  --rim: #25282D;
  --island: #000000;

  /* The iPhone/Android links on the policy pages: a track, and a pill under the current page. */
  --segment-track: var(--border);
  --segment-on: var(--surface-card);
  --segment-edge: #7A7B7E;
  --segment-shadow: 0 1px 2px rgb(20 22 26 / 0.1);

  --radius-card: 28px;
  --radius-compact: 16px;
  --shadow-phone: 0 1px 2px rgb(20 22 26 / 0.06), 0 18px 40px -12px rgb(20 22 26 / 0.28);
  --shadow-card: 0 1px 2px rgb(20 22 26 / 0.04);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, sans-serif;

  --text-sm: 0.9375rem;      /* 15px: eyebrows, fine print, status chips, footer, policy intro */
  --text-body: 1.0625rem;    /* 17px */
  --text-lead: 1.125rem;     /* 18px: section intros, policy section headings */
  --text-lg: 1.1875rem;      /* 19px: the wordmark, the policy lead */
  --text-title: 1.25rem;     /* 20px: step and card headings */
  --text-intro: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --text-section: clamp(2rem, 1.35rem + 2.4vw, 3rem);
  --text-section-minor: clamp(1.75rem, 1.35rem + 1.5vw, 2.25rem);

  --gutter: max(16px, 4vw);
  --max: 72rem;
  --space-section: clamp(4rem, 3rem + 5vw, 7.5rem);
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--surface-app);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--brand); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.site-header { container: header / inline-size; }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;           /* at large text sizes the nav drops below the wordmark */
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  padding-block: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark img {
  width: 32px;
  height: 32px;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px var(--border);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

/* The iPhone/Android switch: radios on the landing page, links on the policy pages. On phones it
   takes a centred row under the wordmark; once the header is wide for its text, the three sit on
   one row. */
.header-switch {
  order: 3;
  flex: 1 0 100%;
  display: flex;
  justify-content: center;
}

@container header (min-width: 36.5em) {
  .site-header .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.75rem;
  }
  .site-header .wordmark { grid-area: 1 / 1; justify-self: start; }
  .header-switch { grid-area: 1 / 2; }
  .header-actions { grid-area: 1 / 3; justify-self: end; }
}

/* Each side is a full 44px target; the pill is drawn inside it, 4px in. */
.segmented {
  display: inline-flex;
  max-width: 100%;
  border-radius: 999px;
  background: var(--segment-track);
  box-shadow: inset 0 0 0 1px var(--border);
}
.segmented > a,
.segmented > label {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.25rem min(1.125rem, 4vw);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.segmented > a::before,
.segmented > label::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4px;
  border-radius: 999px;
}
.segmented > a:hover,
.segmented > label:hover { color: var(--text-primary); }
.segmented > [aria-current="page"],
.segmented > :checked + label { color: var(--text-primary); cursor: default; }
.segmented > [aria-current="page"]::before,
.segmented > :checked + label::before {
  background: var(--segment-on);
  box-shadow: 0 0 0 1px var(--segment-edge), var(--segment-shadow);
}
.segmented > :focus-visible { outline-offset: -2px; border-radius: 999px; }
/* The radio itself is hidden, so its focus ring is drawn on its label. */
.segmented > input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: -2px; }

/* Platform-specific content: data-only="ios" or "android" on any element, following the landing
   page's radios. A display:none element is out of the accessibility tree, and a lazy image inside
   one is not fetched until it is shown. !important so a component's own display rule can never
   undo it. Without :has() the page is the iPhone one and the switch is not drawn. */
:root:not(:has(#platform-android:checked)) [data-only="android"],
:root:has(#platform-android:checked) [data-only="ios"] { display: none !important; }
@supports not selector(:has(*)) {
  [data-only="android"], .header-switch--platform { display: none !important; }
}

.site-nav { display: flex; }
.site-nav a {
  display: inline-block;
  padding: 0.6rem 0.5rem;
  color: var(--text-secondary);
  font-weight: 550;
  text-decoration: none;
}
.site-nav a:hover { color: var(--text-primary); }
.site-nav a[aria-current="page"] { color: var(--text-primary); }

/* ---------- Phone: a screenshot inside a CSS iPhone ---------- */

/* The screenshots carry the status bar, so the Dynamic Island sits over it the way it does on
   a real device. Sizes are shares of the phone's width (cqi). */
.phone {
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 300px;
}
.phone img {
  width: 100%;
  padding: 7px;                        /* fallback without container units */
  padding: 2.2cqi;
  border-radius: 46px;
  border-radius: 15cqi;
  /* The screen area shows the page colour, not the bezel, while a lazy image loads. */
  background: linear-gradient(var(--surface-app), var(--surface-app)) content-box, var(--bezel);
  box-shadow: 0 0 0 1px var(--rim), inset 0 0 0 1px rgb(255 255 255 / 0.07), var(--shadow-phone);
}
.phone::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 4.6cqi;
  left: 50%;
  width: 27cqi;
  height: 7.9cqi;
  border-radius: 999px;
  background: var(--island);
  transform: translateX(-50%);
}

/* The Android screenshots in a Pixel-style frame: a slimmer, even bezel, a smaller corner, and a
   punch-hole camera centred in the status bar instead of the Dynamic Island. */
.phone--pixel img {
  padding: 5px;
  padding: 1.6cqi;
  border-radius: 30px;
  border-radius: 9.5cqi;
}
.phone--pixel::before {
  top: 5.7cqi;
  width: 3.6cqi;
  height: 3.6cqi;
  border-radius: 50%;
}

/* ---------- Type ---------- */

.eyebrow {
  margin-bottom: 0.875rem;
  color: var(--brand);
  font-size: var(--text-sm);
  font-weight: 650;
}

.section-title {
  font-size: var(--text-section);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.section-title--minor {
  font-size: var(--text-section-minor);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-text {
  max-width: 36ch;
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: var(--text-lead);
}
.section-text + .section-text { margin-top: 0.75rem; }

.fine {
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-block: clamp(1.5rem, 1rem + 3vw, 4rem) var(--space-section);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(min(2.75rem, 13vw), 1.6rem + 5vw, 5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
}

.hero .lede {
  max-width: 32ch;
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: var(--text-intro);
  line-height: 1.45;
}

.availability { margin-top: 2.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* A status, deliberately not a button: there is no listing to go to yet. */
.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--tint-rule-strong);
  border-radius: 999px;
  background: var(--surface-tint);
  color: var(--brand);
  font-weight: 600;
  font-size: var(--text-sm);
}
.coming-soon::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
}

.platform {
  margin-top: 0.875rem;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* The Home screen, on a soft green wash. */
.hero-phone {
  position: relative;
  justify-self: center;
  width: min(290px, 76vw);
}
.hero-phone::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 190%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--surface-tint) 45%, transparent);
  transform: translate(-50%, -48%);
}
.hero-phone .phone { max-width: none; }

@media (min-width: 52rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3rem;
  }
  .hero-phone { width: 330px; justify-self: end; margin-right: clamp(0rem, 4vw, 3rem); }
}

/* ---------- How it works ---------- */

.steps { padding-bottom: var(--space-section); }

.steps-grid {
  container: steps / inline-size;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.steps-phone { justify-self: center; width: min(270px, 70vw); order: 2; }
.steps-phone .phone { max-width: none; }

.step-list {
  display: grid;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}
.step-list li {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
}
.step-list li:last-child { border-bottom: 1px solid var(--border); }

/* Decorative: the <ol> already carries the order. */
.step-num {
  color: var(--text-quiet);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.step-list h3 {
  font-size: var(--text-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.step-list p {
  margin-top: 0.35rem;
  color: var(--text-secondary);
}

@media (min-width: 52rem) {
  .steps-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 5rem;
  }
  .steps-phone { order: 0; width: 300px; }
  .step-list li { grid-template-columns: 5rem minmax(0, 1fr); gap: 1.25rem; }
}

/* Large text on a phone: the numeral moves above its step so the words keep the full width. */
@container steps (max-width: 16em) {
  .step-list li { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; align-items: start; }
  .step-num { font-size: 2rem; }
}

/* ---------- Spotlight ---------- */

.spotlight {
  display: grid;
  gap: 2.75rem;
  overflow: hidden;
  padding: clamp(2rem, 1rem + 4.5vw, 4.5rem) clamp(1.5rem, 0.5rem + 4.5vw, 4.5rem) 0;
  border-radius: var(--radius-card);
  background: var(--surface-tint);
}
.spotlight .section-title { max-width: 12ch; }

/* The phone runs off the card's bottom edge. */
.spotlight-phone {
  justify-self: center;
  width: min(280px, 74%);
  height: clamp(20rem, 60vw, 25rem);
}
.spotlight-phone .phone { max-width: none; }

@media (min-width: 52rem) {
  .spotlight {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 3rem;
  }
  .spotlight-copy { align-self: center; padding-bottom: clamp(2rem, 4vw, 4.5rem); }
  .spotlight-phone { width: 320px; height: 32rem; margin-top: 0.5rem; }
}

/* ---------- Card grids ---------- */

.showcase { padding-top: var(--space-section); }

.showcase-head { max-width: 40rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }

.card-grid {
  display: grid;
  gap: 2.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 40rem) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Below the two-column breakpoint each grid is a row that scrolls sideways, one card at a time,
   with the next one peeking in. The scroller is a focusable region in the markup, so arrow keys
   scroll it and screen readers name it. */
.card-scroller { container-type: inline-size; }
@media (width < 40rem) {
  .card-scroller {
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
  }
  .card-scroller:focus-visible { outline-offset: -2px; border-radius: 0; }
  .card-scroller .card-grid {
    grid-auto-flow: column;
    grid-auto-columns: 80cqi;
    gap: 1rem;
    width: max-content;
  }
  .card-scroller .card-item { scroll-snap-align: start; }
}
@media (min-width: 60rem) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* A tinted panel with the phone's lower half cut off by its bottom edge. */
.card-shot {
  display: flex;
  justify-content: center;
  aspect-ratio: 4 / 3.5;
  overflow: hidden;
  padding-top: 10%;
  border-radius: var(--radius-card);
  background: var(--surface-tint);
}
.card-shot .phone { width: 62%; max-width: none; flex: none; }

.card-shot--amber { background: var(--tint-amber); }
.card-shot--indigo { background: var(--tint-indigo); }
.card-shot--plum { background: var(--tint-plum); }

.card-item h3 {
  margin-top: 1.25rem;
  font-size: var(--text-title);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.card-item p {
  max-width: 34ch;
  margin-top: 0.375rem;
  color: var(--text-secondary);
}

/* A quiet tag beside a card heading: which screens need Lendey Pro. */
.pro-tag {
  display: inline-block;
  margin-left: 0.375rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--tint-amber);
  color: #9D5C10;            /* Tokens.amberText: 5.2:1 on amberPale */
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0;
  vertical-align: 0.15em;
}

/* ---------- Privacy summary ---------- */

.privacy-summary { padding-block: var(--space-section); }
.privacy-summary > .wrap { container: privacy / inline-size; }

.privacy-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding: clamp(1.75rem, 0.75rem + 4.5vw, 4.5rem);
  border-radius: var(--radius-card);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
}
@media (min-width: 52rem) {
  .privacy-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
}

.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.75rem;
}
.text-links a { font-weight: 650; }

/* What Lendey does not have, kept like a ledger. */
.zero {
  padding: 0.5rem clamp(1.25rem, 0.75rem + 2vw, 1.75rem) 0.75rem;
  border-radius: var(--radius-compact);
  background: var(--surface-tint);
}
.zero-title {
  padding-block: 1.1rem 0.9rem;
  border-bottom: 1px solid var(--tint-rule-strong);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: var(--text-body);
  font-weight: 650;
}
.zero-ledger { margin: 0; }
.zero-ledger div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
}
.zero-ledger div + div { border-top: 1px solid var(--tint-rule); }
.zero-ledger dt {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-weight: 500;
}
.zero-ledger dd {
  flex: none;
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
}

.yours {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.yours li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-secondary);
}
.yours li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--brand);
}
.yours strong { color: var(--text-primary); font-weight: 600; }

@container privacy (max-width: 16em) {
  .privacy-card { padding: 1.5rem 0.75rem; }
  .zero { padding-inline: 0.625rem; }
  .zero-ledger div { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-sunken);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}
.site-footer .wrap { padding-block: 3rem 2rem; }

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem 3rem;
}
.footer-brand { flex: 1 0 100%; }
.footer-brand p { margin-top: 0.75rem; max-width: 26ch; }

.footer-label {
  margin-bottom: 0.125rem;
  color: var(--text-primary);
  font-weight: 650;
}
.site-footer ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer ul a {
  display: inline-block;
  max-width: 100%;
  padding-block: 0.65rem;
  color: var(--text-secondary);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.site-footer ul a:hover { color: var(--text-primary); text-decoration: underline; }
.site-footer ul a[aria-current="page"] { color: var(--text-primary); }

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--text-primary) 10%, transparent);
}

@media (min-width: 52rem) {
  .footer-grid { flex-wrap: nowrap; gap: 3rem; }
  .footer-brand { flex: 2 1 0; }
  .footer-col { flex: 1 1 0; }
  .site-footer ul a { overflow-wrap: break-word; }
}

/* ---------- Privacy pages ---------- */

.policy { padding-block: 1rem var(--space-section); }

/* On phones the policy sits on the page itself, so the text gets the full width.
   From 40rem up it is a card. */
.policy-doc {
  max-width: 42rem;
  margin-inline: auto;
  padding-top: 0.5rem;
}
@media (min-width: 40rem) {
  .policy-doc {
    padding: clamp(1.5rem, 0.75rem + 4vw, 3.5rem);
    border-radius: var(--radius-card);
    background: var(--surface-card);
    box-shadow: var(--shadow-card);
  }
}

.policy h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.policy-intro {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.policy-lead {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-primary);
  font-size: var(--text-lg);
  line-height: 1.5;
}

.policy-sections { display: grid; gap: 2rem; margin-top: 2.5rem; }

.policy h2 {
  font-size: var(--text-lead);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.policy h2 ~ p {
  margin-top: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.policy-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}
.policy-footer p + p { margin-top: 0.2rem; }
.policy-footer a { color: inherit; overflow-wrap: anywhere; }
.policy-footer a:hover { color: var(--text-primary); }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .segmented > a,
  .segmented > label { transition: color 0.15s ease; }
}
