/* Scrollable legal documents; pair with styles.css for tokens + base font */

html.legal-doc-root {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body.legal-doc {
  height: auto;
  max-height: none;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

.legal-shell {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  padding-bottom: clamp(2.5rem, 8vh, 4rem);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.legal-back:hover,
.legal-back:focus-visible {
  color: #6bb8ff;
  text-decoration: underline;
}

.legal-shell h1 {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.legal-shell .legal-updated {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-shell h2 {
  margin: 1.65rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #b8d4ff;
  letter-spacing: -0.01em;
}

.legal-shell p {
  margin: 0 0 0.85rem;
  line-height: 1.65;
  color: #e2e8f0;
}

.legal-shell ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  line-height: 1.65;
  color: #e2e8f0;
}

.legal-shell li {
  margin-bottom: 0.45rem;
}

.legal-shell a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-shell a:hover,
.legal-shell a:focus-visible {
  color: #6bb8ff;
}

.legal-shell strong {
  font-weight: 600;
  color: var(--text-main);
}
