/* Long-form legal and policy pages. */
.page-head { padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 5.5rem)); padding-bottom: clamp(2rem, 5vw, 3rem); position: relative; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-top: 1rem; }
.page-head .updated { margin-top: 1rem; color: var(--text-2); font-size: 0.95rem; }

.prose { max-width: 74ch; padding-bottom: clamp(3rem, 8vw, 5rem); }
.prose > div + div { margin-top: clamp(2.25rem, 5vw, 3rem); }
.prose h2 {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 1rem;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.prose h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--text-1); margin: 1.5rem 0 0.6rem; }
.prose p { color: var(--text-2); line-height: 1.75; }
.prose p + p { margin-top: 1rem; }
.prose ul { margin: 1rem 0; display: grid; gap: 0.6rem; }
.prose ul li { position: relative; padding-left: 1.5rem; color: var(--text-2); line-height: 1.7; }
.prose ul li::before {
  content: '';
  position: absolute; left: 0.25rem; top: 0.72em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); opacity: 0.55;
}
.prose ol { margin: 1rem 0 1rem 1.25rem; display: grid; gap: 0.6rem; list-style: decimal; color: var(--text-2); }
.prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--text-1); font-weight: 700; }

/* On-page contents, built from the h2s. */
.toc { position: sticky; top: calc(var(--nav-h) + 2rem); align-self: start; display: none; }
@media (min-width: 1040px) { .toc { display: block; } }
.toc h4 { font-family: var(--font-head); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.9rem; font-weight: 700; }
.toc ul { display: grid; gap: 0.15rem; max-height: 62vh; overflow-y: auto; padding-right: 0.5rem; }
.toc a {
  display: block;
  padding: 0.4rem 0.7rem;
  border-radius: 9px;
  font-size: 0.86rem; line-height: 1.4;
  color: var(--text-2);
  border-left: 2px solid transparent;
  transition: color 200ms var(--ease), background-color 200ms var(--ease), border-color 200ms var(--ease);
}
.toc a:hover { color: var(--text-1); background: var(--fill); }
.toc a[aria-current="true"] { color: var(--primary-text); border-left-color: var(--primary); background: var(--primary-tint); }

.legal-grid { display: grid; gap: 3rem; }
@media (min-width: 1040px) { .legal-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 4rem; } .legal-grid .toc { order: 2; } }

/* 404 */
.notfound { min-height: 74vh; display: grid; place-items: center; text-align: center; position: relative; padding-top: var(--nav-h); }
.notfound .code {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 700; line-height: 1; letter-spacing: -0.04em;
  color: var(--text-3);
}
.notfound .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 2rem; }

.back { display: inline-block; margin-bottom: 1.25rem; font-size: 0.9rem; color: var(--text-2); }
.back:hover { color: var(--primary-text); }
.back .ico { display: inline-block; vertical-align: -4px; margin-right: 0.35rem; width: 16px; height: 16px; }
