/* Legal pages (privacy, terms, delete account) — layered on css/site.css */

.nav--solid .nav-inner {
  background: rgba(23,20,20,.82);
  border-color: rgba(246,243,239,.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 20px 50px -25px rgba(0,0,0,.5);
}

.legal-hero {
  position: relative; overflow: clip; isolation: isolate;
  padding: calc(var(--nav-h) + clamp(72px, 12vw, 140px)) 0 clamp(56px, 8vw, 96px);
  background: var(--ink); color: var(--cream);
}
.legal-hero::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 0; width: min(1100px, 140vw); aspect-ratio: 2; translate: -50% -45%;
  background: radial-gradient(closest-side, rgba(220,94,25,.26), rgba(246,166,35,.06) 55%, transparent 75%);
}
.legal-hero .eyebrow { color: rgba(246,243,239,.62); }
.legal-hero h1 { max-width: 14ch; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-size: 14px; color: rgba(246,243,239,.62); }
.legal-meta a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(246,243,239,.3); }

.legal-body { background: var(--tiki); color: var(--warm-ink); padding: clamp(56px, 8vw, 104px) 0 var(--section); }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.legal-grid--single { grid-template-columns: minmax(0, 760px); }

.legal-toc { position: sticky; top: calc(var(--nav-h) + 40px); max-height: calc(100vh - var(--nav-h) - 80px); overflow: auto; overscroll-behavior: contain; padding-right: 8px; }
.legal-toc p { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--warm-mid); margin-bottom: 14px; }
.legal-toc ol { border-left: 1px solid rgba(43,37,35,.12); }
.legal-toc a {
  position: relative; display: block; padding: 6px 0 6px 16px; font-size: 13.5px; line-height: 1.4; color: var(--warm-mid);
  transition: color .25s;
}
.legal-toc a::before {
  content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--orange);
  transform: scaleY(0); transition: transform .4s var(--ease-out);
}
.legal-toc a:hover { color: var(--warm-ink); }
.legal-toc a.is-active { color: var(--warm-ink); font-weight: 500; }
.legal-toc a.is-active::before { transform: scaleY(1); }

.legal-content { max-width: 70ch; }
.legal-content .headline-md {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; letter-spacing: -.01em;
  color: var(--warm-ink);
  margin: 64px 0 18px; padding-top: 28px; border-top: 1px solid rgba(43,37,35,.1);
  scroll-margin-top: calc(var(--nav-h) + 32px);
}
.legal-content .headline-md:first-of-type { margin-top: 40px; }
.legal-content .body-md { font-size: 16px; line-height: 1.75; color: var(--warm-mid); margin-bottom: 14px; }
.legal-content ul.body-md, .legal-content ol.body-md { padding-left: 1.3em; margin-bottom: 18px; }
.legal-content ul.body-md { list-style: disc; }
.legal-content ol.body-md { list-style: decimal; }
.legal-content li { margin-bottom: 6px; padding-left: 4px; }
.legal-content li::marker { color: var(--orange); }
.legal-content strong { color: var(--warm-ink); font-weight: 600; }
.legal-content a { color: var(--orange); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(220,94,25,.35); transition: text-decoration-color .25s; }
.legal-content a:hover { text-decoration-color: currentColor; }

.legal-callout {
  margin-top: 48px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius);
  background: var(--ink); color: var(--cream);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.legal-callout h2 { font-family: var(--font-serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.legal-callout p { color: rgba(246,243,239,.62); font-size: 15px; margin-top: 6px; }

.to-top {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 70;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--cream); box-shadow: 0 12px 30px -10px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .4s, transform .5s var(--ease-out);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; max-height: none; padding: 20px; border-radius: var(--radius-sm); background: rgba(43,37,35,.04); }
  .legal-toc ol { columns: 1; }
}
.legal-content a.btn { color: #fff; text-decoration: none; font-weight: 600; }
