.pd-hero--legal { padding-bottom: 88px; }
.pd-hero--legal h1 { margin-bottom: 20px; }
.pd-hero--legal .pd-hero-lede { margin-bottom: 0; }
.pd-hero--legal .pd-hero-meta { margin-top: 40px; }

.pd-legal-layout {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.pd-legal-toc {
  position: sticky;
  top: calc(var(--nav-height) + 28px);
  max-height: calc(100vh - var(--nav-height) - 56px);
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.4;
}

.pd-legal-toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--pd-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.pd-legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--pd-line);
}

.pd-legal-toc a {
  display: block;
  padding: 6px 0 6px 16px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  color: var(--pd-ink-mute);
  transition: color 200ms ease, border-color 200ms ease;
}

.pd-legal-toc a:hover {
  color: var(--pd-green);
  border-left-color: var(--pd-green);
}

.pd-legal-body {
  max-width: 720px;
  font-size: 17px;
}

.pd-legal-body h2 {
  font-family: "Arial Narrow", system-ui, sans-serif;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--pd-ink);
  margin: 56px 0 16px;
  scroll-margin-top: calc(var(--nav-height) + 28px);
}

.pd-legal-body h2:first-child { margin-top: 0; }

.pd-legal-body ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

.pd-legal-body ol li {
  padding-left: 4px;
  margin-bottom: 10px;
}

.pd-legal-body ol li::marker {
  color: var(--pd-green);
  font-weight: 700;
}

.pd-legal-body code {
  font-family: Consolas, Menlo, monospace;
  font-size: 0.88em;
  background: var(--pd-paper);
  padding: 2px 6px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

@media (max-width: 899px) {
  .pd-legal-layout {
    width: min(760px, calc(100% - 40px));
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pd-legal-toc {
    position: static;
    max-height: none;
    overflow: visible;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--pd-line);
  }
}

@media (max-width: 639px) {
  .pd-hero--legal { padding-bottom: 56px; }
  .pd-legal-layout { width: calc(100% - 32px); }
  .pd-legal-body { font-size: 16px; }
  .pd-legal-body h2 { font-size: 26px; margin-top: 44px; }
}
