/* Long-form legal / policy pages (privacy, terms) — shares tokens.css + index.css (nav, footer, buttons) */

.legal {
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px 32px 48px;
}

/* ─── Header ─── */
.legal-hero { max-width: 760px; margin-bottom: 8px; }

.legal-eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage-600);
  font-weight: 700;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.legal-eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--sage-400); }

.legal-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.028em;
  margin-bottom: 22px;
}
.legal-title em { font-style: italic; color: var(--sage-600); }

.legal-lead {
  font-size: 18px;
  line-height: 1.68;
  color: var(--ink);
  opacity: 0.78;
}

.legal-meta {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink);
  opacity: 0.6;
}
.legal-meta a { color: inherit; }

/* Pre-launch / review note — tasteful callout, not alarming */
.legal-note {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sage-400);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.85;
  max-width: 760px;
}
.legal-note strong { font-weight: 700; color: var(--sage-700); }

/* ─── The short version (TL;DR cards) ─── */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 40px 0 8px;
}
.promise {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px 24px;
}
.promise-mark {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--sage-500);
  font-size: 22px;
  line-height: 1;
  margin-bottom: 12px;
}
.promise h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.promise p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.68;
}

/* ─── Two-column: sticky TOC + body ─── */
.legal-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 52px;
}

.legal-toc {
  position: sticky;
  top: 88px;
}
.legal-toc-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.4;
  margin-bottom: 14px;
}
.legal-toc a {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
  opacity: 0.6;
  text-decoration: none;
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--line);
  transition: opacity 0.15s, border-color 0.15s, color 0.15s;
}
.legal-toc a:hover {
  opacity: 1;
  border-left-color: var(--sage-400);
  color: var(--sage-700);
}

/* ─── Body ─── */
.legal-body { max-width: 680px; }
.legal-body section { margin-bottom: 40px; scroll-margin-top: 92px; }
.legal-body section:last-child { margin-bottom: 0; }

.legal-body h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.legal-body h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin: 22px 0 6px;
}

.legal-body p,
.legal-body li {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink);
  opacity: 0.82;
}
.legal-body p { margin-bottom: 14px; }

.legal-body ul {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-body li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.legal-body li::before {
  content: '✦';
  color: var(--sage-500);
  font-family: 'Fraunces', serif;
  font-style: italic;
  flex-shrink: 0;
  line-height: 1.6;
}

.legal-body strong { font-weight: 700; opacity: 1; }
.legal-body a { color: var(--sage-700); text-decoration: underline; text-underline-offset: 2px; }

/* Placeholder — legal specifics to finalise before launch. Understated, not a sticky note. */
.legal-body .ph {
  color: var(--sage-700);
  background: rgba(46, 83, 67, 0.06);
  border-radius: 4px;
  padding: 0 5px;
  font-style: italic;
  font-size: 0.94em;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .legal { padding: 52px 22px 36px; }
  .promise-grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
  .legal-toc { display: none; }
  .legal-body { max-width: none; }
}
@media (max-width: 520px) {
  .promise-grid { grid-template-columns: 1fr; }
}