/* ─────────────────────────────────────────────
   Recepta — website styles
   Shared across landing, recipe preview, delete-account, privacy.
   Reuses the app's coral cookbook identity.
   ───────────────────────────────────────────── */

@font-face {
  font-family: 'ChunkFive';
  src: url('fonts/chunkfive.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DMSerif';
  src: url('fonts/dmserif.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --bg:          #FBF1EC;
  --surface:     #FFFFFF;
  --surface-2:   #FCE6DE;
  --surface-3:   #F8D9CB;
  --accent:      #D9614E;
  --accent-deep: #A8463A;
  --ink:         #2A1F1B;
  --ink-2:       #5C453E;
  --ink-muted:   #9A8278;
  --rule:        rgba(42,31,27,0.10);
  --rule-soft:   rgba(42,31,27,0.06);
  --gingham:     #F4C9BB;

  --font-display: 'ChunkFive', Georgia, serif;
  --font-serif:   'DMSerif', 'DM Serif Display', Georgia, serif;
  --font-ui:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1080px;
  --shadow-card: 0 1px 2px rgba(42,31,27,0.05), 0 12px 32px rgba(42,31,27,0.08);
  --shadow-soft: 0 1px 2px rgba(42,31,27,0.06), 0 6px 18px rgba(42,31,27,0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Gingham texture — brand accent */
.gingham {
  background-image:
    linear-gradient(0deg, var(--gingham) 50%, transparent 50%),
    linear-gradient(90deg, var(--gingham) 50%, #FFFFFF 50%);
  background-size: 26px 26px;
  background-blend-mode: multiply;
}

/* Warm diagonal-stripe photo placeholder (mirrors the app) */
.photo-ph {
  position: relative; overflow: hidden;
  background: repeating-linear-gradient(135deg,
    var(--ph-a, #E8C5B6) 0 9px, var(--ph-b, #DDB2A2) 9px 18px);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ───────── Header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,241,236,0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 18px; line-height: 1;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.18);
}
.brand-word {
  font-family: var(--font-serif); font-style: italic;
  font-size: 21px; color: var(--ink); letter-spacing: 0.01em;
}
.brand-logo {
  width: 30px; height: 30px; border-radius: 9px; object-fit: cover;
  display: block; flex-shrink: 0;
}
.header-nav { display: flex; align-items: center; gap: 26px; }
.header-nav a:not(.btn) {
  text-decoration: none; color: var(--ink-2);
  font-size: 14.5px; font-weight: 500;
  transition: color .15s ease;
}
.header-nav a:not(.btn):hover { color: var(--accent-deep); }
.header-nav a.btn-primary { color: #fff; }
.header-nav a.btn-primary:hover { color: #fff; }
@media (max-width: 620px) { .header-nav a.nav-hide-sm { display: none; } }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-ui); font-size: 15.5px; font-weight: 600;
  padding: 13px 22px; border-radius: 13px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--rule); box-shadow: var(--shadow-soft); }
.btn-ghost:hover { background: #fff; border-color: var(--accent); }
.btn-quiet { background: transparent; color: var(--ink-2); }
.btn-quiet:hover { color: var(--accent-deep); }
.btn-danger { background: var(--accent-deep); color: #fff; }
.btn-danger:hover { background: #8d3a2f; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-lg { padding: 16px 28px; font-size: 16.5px; border-radius: 15px; }

/* ───────── Store badges ───────── */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 11px 18px; border-radius: 13px; min-width: 168px;
  transition: transform .08s ease, opacity .15s ease;
  box-shadow: var(--shadow-soft);
}
.store-badge:hover { opacity: 0.92; }
.store-badge:active { transform: scale(0.985); }
.store-badge svg { flex-shrink: 0; }
.store-badge span { display: inline-flex; flex-direction: column; }
.store-badge .sb-top { font-size: 10.5px; line-height: 1; opacity: 0.82; letter-spacing: 0.02em; }
.store-badge .sb-main { font-family: var(--font-ui); font-size: 18px; font-weight: 600; line-height: 1.15; margin-top: 5px; }

/* "Coming soon" state */
.store-badge.is-soon { background: #3a2c26; cursor: default; }
.store-badge.is-soon:hover { opacity: 1; }
.soon-pill {
  display: inline-block; margin-left: 6px; padding: 2px 8px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--accent); color: #fff; border-radius: 999px; vertical-align: middle;
}

/* ───────── Support contact card ───────── */
.support-card {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin: 4px 0 8px; padding: 22px 24px;
  background: var(--surface); border: 1px solid var(--rule-soft);
  border-radius: 18px; box-shadow: var(--shadow-card);
}
.support-card-icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--accent-deep);
}
.support-card-body { flex: 1; min-width: 200px; }
.support-card-label {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted); margin: 0 0 4px;
}
.support-card-email {
  font-family: var(--font-ui); font-size: 21px; font-weight: 600;
  color: var(--accent-deep); text-decoration: none; word-break: break-word;
}
.support-card-email:hover { text-decoration: underline; }
.support-card-note { font-size: 13.5px; color: var(--ink-muted); margin: 6px 0 0; }
.support-card-btn { flex-shrink: 0; }

/* ───────── Eyebrow / section bits ───────── */
.eyebrow {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-deep);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px); line-height: 1.08;
  margin: 12px 0 0; color: var(--ink); letter-spacing: -0.01em;
}
.lead { color: var(--ink-2); font-size: 17px; }

/* ───────── Cards ───────── */
.card {
  background: var(--surface); border: 1px solid var(--rule-soft);
  border-radius: 20px; box-shadow: var(--shadow-card);
}

/* ───────── Footer ───────── */
.site-footer {
  margin-top: 96px; border-top: 1px solid var(--rule);
  background: var(--surface);
}
.site-footer .wrap {
  padding-top: 44px; padding-bottom: 44px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
}
.site-footer .foot-brand .brand { margin-bottom: 12px; }
.site-footer p { color: var(--ink-muted); font-size: 14px; max-width: 30ch; margin: 0; }
.foot-col h4 {
  font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted); margin: 4px 0 14px; font-weight: 700;
}
.foot-col a {
  display: block; text-decoration: none; color: var(--ink-2);
  font-size: 14.5px; padding: 5px 0; transition: color .15s ease;
}
.foot-col a:hover { color: var(--accent-deep); }
.foot-base {
  border-top: 1px solid var(--rule-soft);
}
.foot-base .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 20px; padding-bottom: 28px; flex-wrap: wrap;
}
.foot-base p { font-size: 13px; color: var(--ink-muted); margin: 0; max-width: none; }
@media (max-width: 720px) {
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .foot-brand { grid-column: 1 / -1; }
}

/* ───────── Phone frame (for app shots) ───────── */
.phone {
  position: relative; width: 280px; border-radius: 38px;
  background: #1d1411; padding: 10px;
  box-shadow: 0 2px 4px rgba(42,31,27,0.12), 0 30px 60px rgba(42,31,27,0.28);
}
.phone-screen { border-radius: 29px; overflow: hidden; background: #000; }
.phone-screen img { width: 100%; display: block; }

/* ───────── Landing: hero ───────── */
.hero { padding: 60px 0 28px; overflow: hidden; }
/* Offset in-page anchor jumps so the sticky header doesn't cover the target. */
#get, #features, #sharing { scroll-margin-top: 84px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 66px); line-height: 1.0; letter-spacing: -0.015em;
  margin: 16px 0 0; color: var(--ink);
}
.hero-title em { font-family: var(--font-serif); font-style: italic; color: var(--accent-deep); }
.hero-sub { font-size: 18px; color: var(--ink-2); margin: 20px 0 0; max-width: 46ch; text-wrap: pretty; }
.hero-stores { margin-top: 30px; }
.hero-note { font-size: 13.5px; color: var(--ink-muted); margin: 18px 0 0; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 540px; z-index: 1; }
.hero-art-bg {
  position: absolute; width: 380px; height: 380px; border-radius: 40px;
  transform: rotate(-6deg); opacity: 0.7; filter: saturate(0.9); z-index: 0;
}
.hero-art .phone { position: relative; transform: rotate(2.5deg); }
.app-shot {
  position: relative; width: 100%; max-width: 520px;
  border-radius: 20px; overflow: hidden;
  transform: rotate(0deg);
  box-shadow: 0 2px 6px rgba(42,31,27,0.14), 0 34px 70px rgba(42,31,27,0.30);
  border: 1px solid rgba(0,0,0,0.18);
}
.app-shot img { width: 100%; display: block; }
@media (max-width: 880px) {
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-stores { justify-content: center; }
  .hero-note { margin-bottom: 40px; }
  .hero-art { min-height: 300px; margin-top: 8px; }
  .hero-art-bg { width: 260px; height: 280px; top: auto; bottom: 0; }
}

/* ───────── Landing: features ───────── */
.features { padding: 64px 24px 8px; }
.feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px;
}
.feature { padding: 30px 28px; }
.feature-ico {
  width: 54px; height: 54px; border-radius: 15px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: grid; place-items: center; margin-bottom: 18px;
}
.feature h3 { font-family: var(--font-serif); font-size: 23px; margin: 0 0 8px; color: var(--ink); font-weight: 400; }
.feature p { color: var(--ink-2); font-size: 15.5px; margin: 0; text-wrap: pretty; }
@media (max-width: 680px) { .feature-grid { grid-template-columns: 1fr; } }

/* ───────── Landing: sharing ───────── */
.sharing { padding: 84px 0 8px; }
.sharing-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 56px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 28px 0 26px; display: grid; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--ink-2); }
.steps li span {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 999px;
  background: var(--surface-2); color: var(--accent-deep);
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.steps li strong { color: var(--ink); }
.sharing-art { display: grid; place-items: center; }
.link-card { width: 320px; overflow: hidden; }
.link-card-top {
  display: flex; align-items: center; gap: 9px; padding: 14px 16px;
  border-bottom: 1px solid var(--rule-soft); color: var(--ink-2);
}
.link-card-photo { height: 180px; background-size: cover; background-position: center; }
.link-card-body { padding: 18px 18px 20px; }
.link-card-title { font-family: var(--font-display); font-size: 26px; color: var(--ink); line-height: 1.1; }
.link-card-meta { font-size: 13.5px; color: var(--ink-muted); margin-top: 6px; }
@media (max-width: 820px) {
  .sharing-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .steps { justify-items: center; }
  .steps li { justify-content: center; }
}

/* ───────── Landing: CTA band ───────── */
.cta-band {
  margin-top: 90px; padding: 76px 0; background: var(--ink);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: 0.10;
  background-image:
    linear-gradient(0deg, var(--accent) 50%, transparent 50%),
    linear-gradient(90deg, var(--accent) 50%, transparent 50%);
  background-size: 30px 30px;
}
.cta-band .wrap-narrow { position: relative; }
.cta-title {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 50px);
  color: #fff; margin: 0; line-height: 1.05; letter-spacing: -0.01em;
}
.cta-band .lead { color: rgba(255,255,255,0.74); }
.cta-band + .site-footer { margin-top: 0; }

/* ───────── Recipe preview page ───────── */
.recipe-main { padding-top: 36px; padding-bottom: 8px; }
.shared-from {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-muted); margin-bottom: 18px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: 0.02em;
}
.shared-from .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }
.recipe-hero { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-card); }
.recipe-photo {
  position: relative; aspect-ratio: 16 / 10; background-size: cover; background-position: center;
  background-color: var(--surface-2);
}
.time-chip {
  position: absolute; top: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(42,31,27,0.62); color: #fff; backdrop-filter: blur(4px);
  padding: 8px 13px; border-radius: 999px; font-size: 14px; font-weight: 600;
}
.recipe-head { padding: 28px 4px 0; }
.recipe-title {
  font-family: var(--font-display); font-size: clamp(34px, 6vw, 52px);
  line-height: 1.04; margin: 0; letter-spacing: -0.01em;
}
.recipe-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  margin-top: 14px; color: var(--ink-2); font-size: 15.5px;
}
.recipe-meta .sep { color: var(--ink-muted); }
.tag-chip {
  background: var(--surface-2); color: var(--accent-deep);
  padding: 4px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
}
.recipe-note {
  margin: 16px 0 0; color: var(--ink-2); font-size: 16.5px; font-style: italic;
  font-family: var(--font-serif); line-height: 1.5; max-width: 54ch;
}

.open-callout {
  margin: 30px 0 8px; padding: 26px 28px;
  display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; align-items: center;
}
.open-callout-text h2 { font-family: var(--font-serif); font-size: 25px; margin: 0 0 6px; font-weight: 400; }
.open-callout-text p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 42ch; }
.open-cta { align-self: center; white-space: nowrap; }
.open-stores {
  grid-column: 1 / -1; border-top: 1px solid var(--rule-soft); padding-top: 18px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.open-stores-label { font-size: 14px; color: var(--ink-muted); }
@media (max-width: 600px) {
  .open-callout { grid-template-columns: 1fr; }
  .open-cta { justify-self: stretch; }
}

.recipe-body {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px;
  margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--rule);
}
.col-head {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-deep); margin: 0 0 18px;
}
.ingredients { list-style: none; padding: 0; margin: 0; }
.ingredients li {
  padding: 11px 0; border-bottom: 1px solid var(--rule-soft);
  font-size: 16px; color: var(--ink); display: flex; gap: 10px;
}
.ingredients .qty { font-weight: 700; color: var(--ink); min-width: 64px; }
.steps-list { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 18px; }
.steps-list li {
  position: relative; padding-left: 46px; font-size: 16.5px; color: var(--ink-2);
  line-height: 1.55; counter-increment: step; min-height: 32px; display: flex; align-items: center;
}
.steps-list li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 999px;
  border: 1.5px solid var(--accent); color: var(--accent-deep);
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  font-family: var(--font-ui);
}
@media (max-width: 640px) { .recipe-body { grid-template-columns: 1fr; gap: 32px; } }

.recipe-foot-cta {
  margin-top: 48px; padding: 30px; text-align: center;
  background: var(--surface-2); border-radius: 20px;
}
.recipe-foot-cta p { margin: 0 0 14px; font-family: var(--font-serif); font-size: 20px; color: var(--ink); }

/* ───────── Account / delete page ───────── */
.account-main { padding-top: 44px; padding-bottom: 8px; }
.account-head { margin-bottom: 28px; }
.account-title { font-family: var(--font-display); font-size: clamp(34px, 5vw, 48px); margin: 12px 0 0; letter-spacing: -0.01em; }
.account-intro { color: var(--ink-2); font-size: 17px; margin: 16px 0 0; max-width: 56ch; text-wrap: pretty; }
.acct-card { padding: 30px 32px; margin-bottom: 20px; }
.acct-card.is-hidden { display: none; }
.acct-card-title { font-family: var(--font-serif); font-size: 24px; font-weight: 400; margin: 0 0 8px; }
.acct-card-sub { color: var(--ink-2); font-size: 15.5px; margin: 0 0 22px; }
.signin-btns { display: grid; gap: 12px; max-width: 380px; }
.signin-btn { justify-content: flex-start; padding-left: 20px; }
.acct-fineprint { margin: 22px 0 0; font-size: 13.5px; color: var(--ink-muted); }
.acct-fineprint a, .acct-help a { color: var(--accent-deep); }

.signed-in-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface-2); border-radius: 14px; padding: 14px 16px;
}
.avatar {
  width: 44px; height: 44px; border-radius: 999px; flex-shrink: 0;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 20px;
}
.signed-in-name { font-weight: 600; font-size: 16px; }
.signed-in-email { font-size: 13.5px; color: var(--ink-muted); }
.acct-switch { padding: 8px 12px; font-size: 13.5px; }

.disclosure { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 4px 0 24px; }
.disc-head { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 12px; font-weight: 700; }
.disc-del { color: var(--accent-deep); }
.disc-keep { color: #6E7A3A; }
.disc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.disc-list li {
  font-size: 14.5px; color: var(--ink-2); line-height: 1.45; padding-left: 20px; position: relative;
}
.disc-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 2px;
  background: currentColor; opacity: 0.4;
}
.disc-del + .disc-list li::before { background: var(--accent); opacity: 0.55; }
.disc-keep + .disc-list li::before { background: #6E7A3A; opacity: 0.55; }
.disc-list li strong { color: var(--ink); }
@media (max-width: 600px) { .disclosure { grid-template-columns: 1fr; gap: 22px; } }

.confirm-check {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  background: #FBEDE9; border: 1px solid var(--rule); border-radius: 12px;
  padding: 15px 16px; font-size: 14.5px; color: var(--ink);
}
.confirm-check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--accent-deep); flex-shrink: 0; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.acct-error { color: var(--accent-deep); font-size: 14px; line-height: 1.45; margin: 16px 0 0; padding: 11px 14px; background: rgba(168,70,58,0.08); border-radius: 10px; }
@media (max-width: 520px) { .confirm-actions { flex-direction: column-reverse; } .confirm-actions .btn { width: 100%; } }

.processing { text-align: center; padding: 24px 0; }
.processing p { color: var(--ink-2); font-size: 16px; margin: 18px 0 0; }
.spinner {
  width: 40px; height: 40px; margin: 0 auto; border-radius: 999px;
  border: 3px solid var(--surface-3); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.done-state { text-align: center; padding: 14px 0; display: grid; gap: 16px; justify-items: center; }
.done-check {
  width: 64px; height: 64px; border-radius: 999px; background: #6E7A3A;
  display: grid; place-items: center;
}
.acct-help { text-align: center; font-size: 13.5px; color: var(--ink-muted); margin: 8px 0 0; }

/* ───────── Legal / privacy page ───────── */
.legal-layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 56px;
  padding-top: 48px; align-items: start;
}
.legal-toc { position: sticky; top: 92px; }
.toc-label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 700; margin: 0 0 14px;
}
.legal-toc nav { display: grid; gap: 2px; border-left: 2px solid var(--rule); }
.legal-toc a {
  text-decoration: none; color: var(--ink-2); font-size: 14px;
  padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.legal-toc a:hover { color: var(--accent-deep); border-left-color: var(--accent); }
.legal-body { max-width: 680px; }
.legal-title { font-family: var(--font-display); font-size: clamp(34px, 5vw, 46px); margin: 12px 0 0; letter-spacing: -0.01em; }
.legal-updated { color: var(--ink-muted); font-size: 14px; margin: 10px 0 0; }
.legal-lead { font-size: 18px; color: var(--ink-2); line-height: 1.6; margin: 26px 0 8px; text-wrap: pretty; }
.legal-body section { padding-top: 30px; margin-top: 12px; scroll-margin-top: 92px; }
.legal-body h2 { font-family: var(--font-serif); font-size: 26px; font-weight: 400; margin: 0 0 12px; color: var(--ink); }
.legal-body p { color: var(--ink-2); font-size: 16px; line-height: 1.65; margin: 0 0 14px; }
.legal-body ul { margin: 0 0 14px; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.legal-body li {
  color: var(--ink-2); font-size: 16px; line-height: 1.55; padding-left: 22px; position: relative;
}
.legal-body li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px;
  border-radius: 2px; background: var(--accent); opacity: 0.55;
}
.legal-body li strong, .legal-body p strong { color: var(--ink); }
.legal-body a { color: var(--accent-deep); }
.legal-body a.btn { color: #fff; }
@media (max-width: 820px) {
  .legal-layout { grid-template-columns: 1fr; gap: 8px; }
  .legal-toc { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
