/* Public policy pages. Keep legal copy calm, readable, and inside the shared
   Meridian acquisition identity — paper field, teal-as-text links — without
   inheriting the authenticated app chrome. Consumes the fixed --orc-* tokens
   directly (identity §2/§3/§11); the retired teal token bridge is gone as of
   Task 6 (legal was its last consumer). */

body.legal-page > nav.navbar,
body.legal-page > footer.bg-light {
  display: none;
}

body.legal-page main.legal-main {
  padding: 0;
  background: var(--orc-bg);
}

/* 68–74ch reading measure on the prose column (identity §11). */
.legal-shell {
  width: min(100% - 2rem, 72ch);
  margin: 0 auto;
  padding: 3.5rem 0 4.5rem;
  color: var(--orc-ink);
}

.legal-header {
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--orc-border);
}

.legal-eyebrow {
  margin: 0 0 0.5rem;
  color: var(--orc-current-text);
  font-size: var(--orc-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-header h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
}

.legal-updated {
  margin: 0.75rem 0 1rem;
  color: var(--orc-ink-muted);
  font-size: var(--orc-text-sm);
}

.legal-header > p:last-child {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--orc-ink-muted);
  font-size: var(--orc-text-lg);
}

.legal-shell section + section {
  margin-top: 2rem;
}

.legal-shell h2 {
  margin: 0 0 0.65rem;
  font-size: var(--orc-text-lg);
  font-weight: 700;
}

.legal-shell p {
  margin: 0.65rem 0 0;
  line-height: 1.7;
}

/* Teal-as-text links (>=4.5:1 on paper, both themes); the hover pins teal so
   base.css `a:hover` cannot hijack it; visible --orc-focus ring on focus. */
.legal-shell a {
  color: var(--orc-current-text);
  font-weight: 600;
}

.legal-shell a:hover {
  color: var(--orc-current-text);
}

.legal-shell a:focus-visible {
  outline: 2px solid var(--orc-focus);
  outline-offset: 3px;
}

.legal-shell code {
  color: inherit;
  font-size: 0.9em;
}

@media (max-width: 640px) {
  .legal-shell {
    width: min(100% - 1.5rem, 72ch);
    padding: 2.5rem 0 3.5rem;
  }
}
