/* Phloem — legal pages (privacy / terms) · "Baseten" direction.
   Sits on phloem.css tokens (Geist, dashed grid, single green accent).
   index-old.html keeps its own styles.css/legal-era styling untouched. */

/* nav: push the toggle + CTA to the right (no section links here) */
.nav-inner .nav-right { margin-left: auto; }

/* ── page header ─────────────────────────────────────────────── */
.legal { padding-block: clamp(48px, 7vw, 88px) 0; }

.legal-head {
  max-width: 880px;
  padding-bottom: clamp(40px, 6vw, 72px);
  border-bottom: var(--dash);
  display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 26px);
}
.legal-head h1 {
  font-size: clamp(38px, 5.4vw, 60px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.0;
}
.legal-head h1 em { font-style: normal; color: var(--accent); }
.legal-lede {
  font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55;
  color: var(--ink-mute); max-width: 60ch; text-wrap: pretty;
}

/* ── body / sections ─────────────────────────────────────────── */
.legal-body { padding-block: clamp(40px, 5vw, 72px) clamp(64px, 9vw, 110px); }

.legal-section {
  display: grid; grid-template-columns: 150px 1fr; gap: clamp(28px, 4vw, 56px);
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: var(--dash);
  align-items: start;
}
.legal-section:first-of-type { border-top: 0; padding-top: 0; }
.legal-section > .mono { position: sticky; top: 88px; color: var(--ink); }
.legal-section > .mono .idx { color: var(--accent); }

.legal-section-body { min-width: 0; }
.legal-section-body > *:first-child { margin-top: 0; }
.legal-section-body > *:last-child  { margin-bottom: 0; }

.legal-section h2 {
  font-size: clamp(26px, 3.2vw, 40px); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 28px;
}
.legal-section h3 {
  font-size: clamp(18px, 1.8vw, 21px); font-weight: 600;
  letter-spacing: -0.012em; line-height: 1.2; margin: 26px 0 9px; color: var(--ink);
}
.legal-section h3:first-of-type { margin-top: 0; }

.legal-section p {
  font-size: 15.5px; line-height: 1.6; color: var(--ink-mute);
  margin: 0 0 15px; max-width: 66ch; text-wrap: pretty;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  list-style: none; padding: 0; margin: 0 0 18px; border-top: var(--dash);
}
.legal-section ul:last-child { margin-bottom: 0; }
.legal-section li {
  padding: 12px 0 12px 26px; border-bottom: var(--dash);
  font-size: 14.5px; line-height: 1.5; color: var(--ink-mute);
  position: relative; max-width: 66ch;
}
.legal-section li::before {
  content: "\2192"; position: absolute; left: 0; top: 12px;
  font-family: var(--mono); font-size: 12.5px; color: var(--accent);
}
.legal-section li strong { font-weight: 500; color: var(--ink); }

.legal-contact a {
  font-family: var(--mono); font-size: 14.5px; color: var(--ink);
  border-bottom: 1px solid var(--accent); padding-bottom: 2px;
  transition: color .15s ease;
}
.legal-contact a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .legal-section { grid-template-columns: 1fr; gap: 12px; }
  .legal-section > .mono { position: static; }
}
