/* ────────────────────────────────────────────────────────────
   FOLO v2 — paper-first, single purple accent, Heebo only.
   Refined, restrained, RTL Hebrew. Anthropic vibe.
   ──────────────────────────────────────────────────────────── */

:root {
  /* Palette — FOLO official only */
  --folo-dark:        #1A1A1A;
  --folo-purple:      #7F77DD;
  --folo-purple-dark: #534AB7;
  --folo-paper:       #FAFAF7;
  --folo-paper-soft:  #F3F1EB;
  --folo-warn:        #FAEEDA;
  --folo-success:     #0F6E56;
  --folo-danger:      #A32D2D;

  --folo-text:        #1A1A1A;
  --folo-text-muted:  #6B6B7B;
  --folo-text-faint:  #9A9AA6;
  --folo-text-inverse:#FAFAF7;

  --folo-border:        rgba(26, 26, 26, 0.08);
  --folo-border-strong: rgba(26, 26, 26, 0.18);

  --folo-border-dark:        rgba(250, 250, 247, 0.08);
  --folo-border-dark-strong: rgba(250, 250, 247, 0.18);

  --font-display: 'Heebo', system-ui, sans-serif;
  --font-body:    'Heebo', system-ui, sans-serif;

  /* Type scale — restrained, smaller than v1 */
  --text-hero:   clamp(56px, 9vw, 120px);
  --text-h1:     clamp(40px, 6vw, 72px);
  --text-h2:     clamp(28px, 4vw, 44px);
  --text-h3:     clamp(20px, 2.5vw, 28px);
  --text-body:   17px;
  --text-small:  14px;
  --text-mini:   12px;

  --lh-display:  1.05;
  --lh-heading:  1.15;
  --lh-body:     1.65;

  --pad-x: clamp(24px, 6vw, 96px);
  --pad-y: clamp(80px, 11vw, 144px);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--folo-paper);
  color: var(--folo-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--folo-purple); color: var(--folo-paper); }

/* ── Layout ─────────────────────────────────────────────── */

.shell { min-height: 100vh; }

section {
  padding: var(--pad-y) var(--pad-x);
  position: relative;
}

.dark {
  background: var(--folo-dark);
  color: var(--folo-text-inverse);
}
.dark .muted { color: rgba(250, 250, 247, 0.6); }

.muted { color: var(--folo-text-muted); }
.faint { color: var(--folo-text-faint); }

/* Eyebrows — small Hebrew labels, no English section codes */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--folo-text-muted);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--folo-purple);
  border-radius: 50%;
  display: inline-block;
}
.dark .eyebrow { color: rgba(250, 250, 247, 0.65); }

/* ── Nav ─────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad-x);
  background: color-mix(in oklab, var(--folo-paper) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--folo-border);
}
.nav-logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex; gap: 32px; list-style: none; margin: 0; padding: 0;
  font-size: 15px;
}
.nav-links a {
  color: var(--folo-text-muted);
  transition: color 300ms ease-out;
}
.nav-links a:hover { color: var(--folo-text); }
.nav-right { display: flex; align-items: center; gap: 14px; }

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 300ms ease-out, color 300ms ease-out, border-color 300ms ease-out, transform 300ms ease-out;
  white-space: nowrap;
}
.btn .arrow {
  display: inline-block;
  transition: transform 300ms ease-out;
}
.btn:hover .arrow { transform: translateX(-3px); }

.btn-primary {
  background: var(--folo-purple);
  color: var(--folo-paper);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--folo-purple-dark);
}
.btn-outline {
  background: transparent;
  color: var(--folo-text);
  border-color: var(--folo-border-strong);
}
.btn-outline:hover {
  border-color: var(--folo-text);
}
.dark .btn-outline {
  color: var(--folo-text-inverse);
  border-color: var(--folo-border-dark-strong);
}
.dark .btn-outline:hover { border-color: var(--folo-text-inverse); }

.btn-sm { padding: 10px 16px; font-size: 14px; }

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  min-height: calc(100vh - 70px);
  padding-block: clamp(64px, 10vw, 140px) clamp(72px, 10vw, 140px);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 64px;
}
.hero-inner { align-self: center; max-width: 1280px; }
.hero h1 {
  font-size: var(--text-hero);
  line-height: var(--lh-display);
  letter-spacing: -0.04em;
  margin: 0;
  max-width: 14ch;
}
.hero h1 .line-1 { display: block; font-weight: 700; }
.hero h1 .line-2 { display: block; font-weight: 300; color: var(--folo-text); }
.hero h1 .accent { color: var(--folo-purple); }

.hero-sub {
  margin: 36px 0 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--folo-text-muted);
  max-width: 52ch;
  font-weight: 400;
}
.hero-sub b { color: var(--folo-text); font-weight: 600; }

.hero-ctas {
  margin-top: 44px;
  display: flex; gap: 12px; flex-wrap: wrap;
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--folo-border);
  padding-top: 28px;
  font-size: 14px;
  color: var(--folo-text-muted);
}
.hero-foot-stat { display: flex; flex-direction: column; gap: 4px; }
.hero-foot-stat b {
  color: var(--folo-text);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

/* ── Section heads ─────────────────────────────────────── */

.sec-head {
  margin-bottom: 56px;
  max-width: 880px;
}
.sec-head h2 {
  font-size: var(--text-h1);
  line-height: var(--lh-heading);
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 14px 0 0;
  text-wrap: balance;
}
.sec-head h2 .light { font-weight: 300; }
.sec-head h2 .accent { color: var(--folo-purple); }
.sec-head p {
  margin: 22px 0 0;
  font-size: 19px;
  color: var(--folo-text-muted);
  max-width: 56ch;
  line-height: 1.6;
}
.dark .sec-head p { color: rgba(250, 250, 247, 0.7); }

/* ── "What FOLO does" rows ───────────────────────────────── */

.does-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--folo-border);
}
.does-row {
  display: grid;
  grid-template-columns: 60px 1fr 1.4fr auto;
  gap: 32px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--folo-border);
  transition: background 300ms ease-out;
}
.does-row:hover { background: rgba(127, 119, 221, 0.04); }
.does-row .idx {
  font-size: 14px;
  font-weight: 500;
  color: var(--folo-text-faint);
  letter-spacing: -0.01em;
}
.does-row .title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.does-row .desc {
  font-size: 16px;
  color: var(--folo-text-muted);
  max-width: 48ch;
}
.does-row .platforms {
  font-size: 13px;
  color: var(--folo-text-faint);
  white-space: nowrap;
}
.does-row .platforms span { color: var(--folo-text-muted); }
@media (max-width: 880px) {
  .does-row {
    grid-template-columns: 40px 1fr;
    gap: 8px 18px;
  }
  .does-row .desc, .does-row .platforms {
    grid-column: 2;
  }
}

/* ── GEO showcase (dark) ─────────────────────────────────── */

.geo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .geo-grid { grid-template-columns: 1fr; } }

.ai-card {
  border: 1px solid var(--folo-border-dark);
  border-radius: 14px;
  background: rgba(250, 250, 247, 0.025);
  padding: 26px 24px 24px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 360px;
  transition: background 400ms ease-out, border-color 400ms ease-out;
}
.ai-card:hover {
  background: rgba(250, 250, 247, 0.04);
  border-color: var(--folo-border-dark-strong);
}
.ai-card .src {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px;
  color: rgba(250, 250, 247, 0.55);
}
.ai-card .src-name {
  display: flex; align-items: center; gap: 10px;
}
.ai-card .src-name .badge {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid; place-items: center;
  border: 1px solid var(--folo-border-dark);
  font-weight: 700;
  font-size: 13px;
  color: var(--folo-paper);
  background: rgba(250, 250, 247, 0.04);
}
.ai-card .src-tag {
  font-size: 11.5px;
  color: var(--folo-purple);
  border: 1px solid color-mix(in oklab, var(--folo-purple) 50%, transparent);
  background: color-mix(in oklab, var(--folo-purple) 12%, transparent);
  border-radius: 999px;
  padding: 3px 10px;
}
.ai-card .q {
  font-size: 13.5px;
  color: rgba(250, 250, 247, 0.65);
  border-inline-start: 2px solid var(--folo-border-dark-strong);
  padding: 4px 12px 4px 0;
  padding-inline-start: 12px;
  font-style: italic;
}
.ai-card .answer {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(250, 250, 247, 0.88);
  flex: 1;
}
.ai-card .answer .hl {
  background: color-mix(in oklab, var(--folo-purple) 22%, transparent);
  color: var(--folo-paper);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.ai-card .cites {
  display: flex; gap: 6px; flex-wrap: wrap;
  font-size: 11px;
  color: rgba(250, 250, 247, 0.5);
}
.ai-card .cites span {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--folo-border-dark);
}
.ai-card .cites .us {
  color: var(--folo-purple);
  border-color: color-mix(in oklab, var(--folo-purple) 50%, transparent);
  background: color-mix(in oklab, var(--folo-purple) 10%, transparent);
}

.geo-foot {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--folo-border-dark);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 14px;
  color: rgba(250, 250, 247, 0.55);
}

/* ── Comparison table ───────────────────────────────────── */

.compare {
  border: 1px solid var(--folo-border);
  border-radius: 14px;
  overflow: hidden;
  background: white;
}
.compare-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-bottom: 1px solid var(--folo-border);
}
.compare-row:last-child { border-bottom: 0; }
.compare-row > div {
  padding: 22px 28px;
  border-inline-start: 1px solid var(--folo-border);
  font-size: 16px;
}
.compare-row > div:first-child {
  border-inline-start: 0;
  color: var(--folo-text-muted);
  font-size: 15px;
}
.compare-head > div {
  background: var(--folo-paper-soft);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--folo-text);
}
.compare-head .them { color: var(--folo-text-muted); }
.compare-head .us   { color: var(--folo-purple-dark); }
.compare-row .them-cell { color: var(--folo-text-muted); }
.compare-row .us-cell {
  font-weight: 600;
  color: var(--folo-text);
}
.compare-row .us-cell b {
  color: var(--folo-purple-dark);
  font-weight: 700;
}
.compare-foot {
  margin-top: 22px;
  font-size: 13px;
  color: var(--folo-text-faint);
}

/* ── Case study teaser ──────────────────────────────────── */

.case-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--folo-border);
  border-bottom: 1px solid var(--folo-border);
  padding: 56px 0;
}
@media (max-width: 760px) { .case-numbers { grid-template-columns: 1fr; gap: 40px; } }
.case-stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case-stat .n {
  font-size: clamp(64px, 8vw, 108px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--folo-text);
}
.case-stat .n .unit {
  font-size: 0.45em;
  color: var(--folo-text-muted);
  margin-inline-start: 4px;
}
.case-stat .n .accent { color: var(--folo-purple); }
.case-stat .l { font-size: 15px; color: var(--folo-text-muted); }

.case-foot {
  margin-top: 36px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.case-foot .who {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.case-foot .meta {
  font-size: 14px; color: var(--folo-text-muted);
  margin-top: 4px;
}

/* ── Pricing ─────────────────────────────────────────────── */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .price-grid { grid-template-columns: 1fr; } }

.price-card {
  border: 1px solid var(--folo-border);
  border-radius: 16px;
  padding: 32px 28px 30px;
  background: white;
  display: flex; flex-direction: column; gap: 22px;
  transition: border-color 400ms ease-out, box-shadow 400ms ease-out;
}
.price-card:hover {
  border-color: var(--folo-border-strong);
  box-shadow: 0 8px 24px -8px rgba(26, 26, 26, 0.08);
}
.price-card.featured {
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F2FF 100%);
  border-color: color-mix(in oklab, var(--folo-purple) 45%, transparent);
  box-shadow: 0 12px 30px -12px color-mix(in oklab, var(--folo-purple) 30%, transparent);
}
.price-card .tier {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--folo-text-muted);
}
.price-card.featured .tier { color: var(--folo-purple-dark); }
.price-card .tier .badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--folo-purple);
  color: var(--folo-paper);
  font-weight: 600;
}
.price-card .price {
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
}
.price-card .price .small {
  font-size: 15px;
  font-weight: 400;
  color: var(--folo-text-muted);
  margin-inline-start: 6px;
}
.price-card .desc {
  color: var(--folo-text-muted);
  font-size: 15px;
}
.price-card ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 15px;
}
.price-card ul li {
  display: flex; gap: 12px; align-items: flex-start;
  line-height: 1.5;
}
.price-card ul li::before {
  content: "";
  width: 14px; height: 14px;
  margin-top: 5px;
  flex-shrink: 0;
  background: var(--folo-purple);
  clip-path: polygon(14% 50%, 0 64%, 40% 100%, 100% 24%, 86% 12%, 40% 70%);
}
.price-card .price-cta {
  margin-top: auto;
  padding-top: 6px;
}

.modular {
  margin-top: 32px;
  padding: 22px 26px;
  border: 1px solid var(--folo-border);
  border-radius: 12px;
  background: var(--folo-paper-soft);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 15px;
  color: var(--folo-text-muted);
}
.modular b { color: var(--folo-text); font-weight: 600; }
.modular a { color: var(--folo-purple-dark); font-weight: 600; }

/* ── Final CTA (dark) ────────────────────────────────────── */

.final-cta {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
}
.final-cta h2 {
  font-size: var(--text-h1);
  line-height: var(--lh-heading);
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 18ch;
  font-weight: 300;
}
.final-cta h2 .strong { font-weight: 700; }
.final-cta h2 .accent { color: var(--folo-purple); }

.brain-chat {
  width: min(680px, 100%);
  border: 1px solid var(--folo-border-dark-strong);
  border-radius: 14px;
  background: rgba(250, 250, 247, 0.04);
  padding: 8px;
  display: flex; gap: 8px;
  align-items: center;
}
.brain-chat input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 16px 18px;
  color: var(--folo-paper);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
}
.brain-chat input::placeholder { color: rgba(250, 250, 247, 0.4); }
.brain-chat button {
  background: var(--folo-purple);
  color: var(--folo-paper);
  border: 0;
  border-radius: 10px;
  padding: 14px 22px;
  font-weight: 600;
  font-size: 15px;
  transition: background 300ms ease-out;
}
.brain-chat button:hover { background: var(--folo-purple-dark); }

.final-meta {
  font-size: 14px;
  color: rgba(250, 250, 247, 0.55);
}
.final-meta b { color: var(--folo-paper); font-weight: 600; }

/* ── Footer ─────────────────────────────────────────────── */

.footer {
  padding: 72px var(--pad-x) 48px;
  border-top: 1px solid var(--folo-border);
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 760px) { .footer { grid-template-columns: 1fr 1fr; } }
.footer .brand h3 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.footer .brand p {
  margin: 0;
  color: var(--folo-text-muted);
  max-width: 38ch;
  font-size: 15px;
  line-height: 1.6;
}
.footer .col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--folo-text);
  margin: 0 0 18px;
}
.footer .col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 14px;
}
.footer .col ul a {
  color: var(--folo-text-muted);
  transition: color 300ms ease-out;
}
.footer .col ul a:hover { color: var(--folo-text); }

.footer-bottom {
  padding: 24px var(--pad-x);
  border-top: 1px solid var(--folo-border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px;
  color: var(--folo-text-faint);
}

/* ── Reveal on scroll (gentle fade only) ─────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile ─────────────────────────────────────────────── */

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ── Arrow — flip for RTL forward direction ──────────────── */
.fwd { display: inline-block; transform: scaleX(-1); }

/* ── About — values grid ────────────────────────────────── */

.about-lede {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: start;
}
@media (max-width: 880px) { .about-lede { grid-template-columns: 1fr; gap: 28px; } }
.about-lede p {
  margin: 0;
  font-size: 19px;
  line-height: 1.65;
  color: var(--folo-text-muted);
}
.about-lede p b { color: var(--folo-text); font-weight: 600; }

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--folo-border);
  border-inline-start: 1px solid var(--folo-border);
}
@media (max-width: 760px) { .values-grid { grid-template-columns: 1fr; border-inline-start: 0; } }
.value {
  padding: 32px 32px;
  border-inline-end: 1px solid var(--folo-border);
  border-bottom: 1px solid var(--folo-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.value .v-idx {
  font-size: 13px;
  color: var(--folo-text-faint);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.value .v-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--folo-text);
}
.value .v-desc {
  font-size: 16px;
  color: var(--folo-text-muted);
  line-height: 1.55;
}

/* ── FAQ ─────────────────────────────────────────────────── */

.faq {
  border-top: 1px solid var(--folo-border);
}
.faq-item {
  border-bottom: 1px solid var(--folo-border);
}
.faq-q {
  width: 100%;
  text-align: start;
  background: transparent;
  border: 0;
  padding: 28px 4px 28px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-body);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 500;
  color: var(--folo-text);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 300ms ease-out;
}
.faq-q:hover { color: var(--folo-purple-dark); }
.faq-q .plus {
  flex-shrink: 0;
  width: 20px; height: 20px;
  position: relative;
  transition: transform 400ms ease-out;
}
.faq-q .plus::before,
.faq-q .plus::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--folo-text);
  transition: opacity 300ms ease-out;
}
.faq-q .plus::before { width: 16px; height: 2px; top: 9px; }
.faq-q .plus::after  { width: 2px;  height: 16px; left: 9px; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-item.open .faq-q .plus::before,
.faq-item.open .faq-q .plus::after { background: var(--folo-purple-dark); }

.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 400ms ease-out;
}
.faq-item.open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a {
  overflow: hidden;
}
.faq-a-inner {
  padding: 0 4px 28px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--folo-text-muted);
  max-width: 78ch;
}
.faq-a-inner b { color: var(--folo-text); font-weight: 600; }

/* ── Legal pages ────────────────────────────────────────── */

.legal-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.legal-page {
  padding: clamp(56px, 8vw, 96px) var(--pad-x);
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 760px);
  gap: clamp(40px, 6vw, 88px);
  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 980px) {
  .legal-page {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.legal-toc {
  position: sticky;
  top: 96px;
  font-size: 14px;
  border-inline-start: 1px solid var(--folo-border);
  padding-inline-start: 22px;
}
.legal-toc-label {
  font-size: 12px;
  color: var(--folo-text-faint);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: toc;
}
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  color: var(--folo-text-muted);
  transition: color 300ms ease-out;
  display: block;
  line-height: 1.4;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero) " · ";
  color: var(--folo-text-faint);
}
.legal-toc a:hover { color: var(--folo-purple-dark); }
@media (max-width: 980px) {
  .legal-toc { position: relative; top: auto; }
}

.legal-body h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 14px;
}
.legal-body .legal-updated {
  display: inline-block;
  font-size: 13px;
  color: var(--folo-purple-dark);
  background: color-mix(in oklab, var(--folo-purple) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--folo-purple) 30%, transparent);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 32px;
}
.legal-body .legal-intro {
  font-size: 19px;
  line-height: 1.6;
  color: var(--folo-text-muted);
  margin: 0 0 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--folo-border);
  max-width: 64ch;
}
.legal-body h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 56px 0 16px;
  scroll-margin-top: 96px;
}
.legal-body h2 .h-idx {
  color: var(--folo-text-faint);
  font-weight: 500;
  margin-inline-end: 10px;
}
.legal-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 8px;
}
.legal-body p,
.legal-body li {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--folo-text);
  max-width: 70ch;
}
.legal-body p { margin: 0 0 16px; }
.legal-body ul {
  margin: 0 0 22px;
  padding-inline-start: 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.legal-body ul li::marker { color: var(--folo-purple); }
.legal-body strong { font-weight: 600; }
.legal-body a {
  color: var(--folo-purple-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal-body .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--folo-border);
  font-size: 15px;
  color: var(--folo-text-muted);
  text-decoration: none;
}
.legal-body .back-link:hover { color: var(--folo-text); }
