/* ==========================================================================
   LEGAL
   Privacy policy and terms (/privacy-policy/). A readable document:
   contents on the left (sticky on desktop), text on the right.
   ========================================================================== */

.legal-head {
  padding-block: clamp(40px, 6vw, 72px) clamp(32px, 4vw, 48px);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.legal-head__title {
  margin-top: 20px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.legal-head .lede { margin-top: 16px; max-width: 40em; }
.legal-head__date { margin-top: 18px; color: var(--muted); font-size: 14.5px; }

.legal {
  display: grid;
  grid-template-columns: minmax(200px, 3fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(40px, 6vw, 80px) var(--section-space);
}

/* contents */
.legal__toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  font-size: 14.5px;
}
.legal__toc-title { color: var(--ink); font-weight: 600; }
.legal__toc-part {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.legal__toc ol { margin-top: 8px; border-left: 2px solid var(--line); }
.legal__toc li a {
  display: block;
  padding: 5px 0 5px 14px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--text);
  text-decoration: none;
}
.legal__toc li a:hover { border-left-color: var(--c); color: var(--ink); }

/* text */
.legal__body { max-width: 46em; }
.legal__part {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 500;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.legal__part ~ .legal__part { margin-top: clamp(48px, 6vw, 72px); }
.legal__body section { padding-top: 28px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal__body h3 { color: var(--ink); font: 500 20px/1.3 var(--font-display); }
.legal__body p, .legal__body ul { margin-top: 12px; }
.legal__body ul { padding-left: 0; }
.legal__body li { position: relative; padding-left: 22px; margin-top: 6px; }
.legal__body li::before {
  content: "";
  position: absolute; left: 4px; top: .7em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--c);
}
.legal__body a { color: var(--brand-ink); text-underline-offset: 3px; }
.legal__body strong { color: var(--ink); font-weight: 600; }
.legal__contact {
  margin-top: clamp(40px, 5vw, 56px);
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--bg-alt);
}
.legal__contact p { margin: 0; }

@media (max-width: 1023px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .legal__toc {
    position: static;
    max-height: none;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: var(--surface);
  }
  .legal__toc ol { columns: 2; column-gap: 24px; }
}
@media (max-width: 599px) {
  .legal__toc ol { columns: 1; }
}
