/* Privacy policy and other long-form pages */

.legal-hero {
  position: relative;
  overflow: hidden;
  margin-top: -88px; /* sit under the floating header */
  padding: 136px 0 48px;
  color: var(--text);
  background:
    radial-gradient(closest-side, rgba(245, 220, 180, 0.45), transparent) -12rem 4rem / 36rem 36rem no-repeat,
    radial-gradient(closest-side, var(--leaf-100), transparent) calc(100% + 10rem) -8rem / 36rem 36rem no-repeat,
    linear-gradient(180deg, #f4f8ef 0%, #faf9f3 70%, #ffffff 100%);
}
.legal-hero h1 { color: var(--leaf-700); font-size: clamp(2.4rem, 5.4vw, 3.6rem); }
.legal-hero p { margin-top: 12px; font-size: 1.05rem; max-width: 60ch; }
.legal-hero .updated { font-size: 0.9rem; font-weight: 600; color: var(--leaf-700); }

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 110px;
}

.toc { position: sticky; top: 100px; align-self: start; }
.toc-title { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; border-left: 2px solid var(--line); }
.toc li { counter-increment: toc; }
.toc a {
  display: block;
  margin-left: -2px;
  padding: 6px 12px;
  border-left: 2px solid transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.toc a::before { content: counter(toc) ". "; color: var(--muted); }
.toc a:hover { color: var(--navy); border-left-color: var(--lime); background: var(--grey); }

.prose { color: var(--text); font-size: 1.01rem; line-height: 1.75; }
.prose section { scroll-margin-top: 96px; padding-top: 8px; }
.prose section + section { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.prose h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; color: var(--leaf-700); font-size: 1.6rem; line-height: 1.15; margin-bottom: 14px; }
.prose h3 { color: var(--ink); font-size: 1.02rem; font-weight: 800; margin: 26px 0 8px; }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 10px 0 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.72em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
}
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--navy); font-weight: 700; }

.summary {
  margin-bottom: 44px;
  padding: 28px;
  border-radius: 14px;
  background: var(--gold-soft);
  border-left: 6px solid var(--lime);
}
.summary h2 { font-size: 1.5rem; margin-bottom: 8px; }
.summary ul li::before { background: var(--navy); }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; }
  .toc { position: static; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--grey); }
  .toc ol { border-left: 0; }
  .toc a { margin-left: 0; border-left: 0; padding: 6px 4px; }
}
