/* 992 Legal Terms and Policies (Version 1.0). Long-form reading in the 992 system: black, white, cobalt for interaction.
   Presentation only: the wording comes from the owner's PDF (site/legal/v1.0/source.json) and is never styled away. */
.inner:has(.legal) .column { max-width: calc(680px + 2 * var(--gutter)); }
.inner:has(.legal) .column > :first-child { margin-top: 0; }
.legal { text-align: left; padding: clamp(28px, 6vh, 56px) 0 24px; font-size: 16px; line-height: 1.68; color: var(--fg-2); overflow-wrap: anywhere; }
.legal h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: -.01em; color: var(--fg); margin: 0 0 10px; }
.legal h2 { font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--fg); margin: 2.2em 0 .6em; scroll-margin-top: 24px; }
.legal h3 { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--fg); margin: 1.6em 0 .4em; }
.legal p { margin: 0 0 1em; }
.legal strong { color: var(--fg); font-weight: 600; }
.legal a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--interactive); text-underline-offset: 3px; }
.legal a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.legal-version { font-size: 13px; letter-spacing: .04em; color: var(--fg-3); margin: 0 0 2em !important; }
.legal-list { margin: 0 0 1.1em; padding: 0 0 0 1.4em; }
ol.legal-list { list-style: none; padding-left: 0; }
ol.legal-list > li { padding-left: 1.9em; text-indent: -1.9em; }
ol.legal-list > li > * { text-indent: 0; }
ol.legal-list .n { display: inline-block; min-width: 1.9em; text-indent: 0; color: var(--fg); }
.legal-list > li { margin: 0 0 .55em; }
ul.legal-list > li::marker { color: var(--fg-3); }
.legal-table { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--border); border-radius: var(--radius); }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); min-width: 9em; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table th { color: var(--fg); font-weight: 600; background: rgba(255, 255, 255, .04); }
/* Drafts (staging) and review notes are not legal text (data-nonlegal; the text checks skip them). */
mark.ph { background: rgba(6, 71, 215, .28); color: var(--fg); padding: 0 .15em; border-radius: var(--radius); }
.tf { color: var(--fg); font-style: italic; }
.legal-draft { margin: clamp(20px, 4vh, 36px) 0 0; padding: 12px 14px; border: 1px solid var(--interactive); border-radius: var(--radius); font-size: 14px; line-height: 1.5; color: var(--fg-2); text-align: left; }
.legal-draft strong { color: var(--fg); }
li.flagged { outline: 1px dashed var(--interactive); outline-offset: 6px; }
.legal-flag { display: block; margin: .6em 0 0; font-size: 13px; line-height: 1.5; color: var(--fg); text-indent: 0; }
.legal-flag::before { content: "Review: "; font-weight: 600; }
.legal-nav { border-top: 1px solid var(--border); padding: 24px 0 8px; font-size: 14px; text-align: left; }
.legal-nav > a { color: var(--fg-2); }
.legal-nav ol { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.legal-nav a { color: var(--fg-2); text-decoration: none; }
.legal-nav a[aria-current="page"] { color: var(--fg); }
@media (hover: hover) { .legal-nav a:hover { color: var(--fg); text-decoration: underline; text-decoration-color: var(--interactive); } }
.legal-cover .legal-mark { font-size: 44px; font-weight: 600; letter-spacing: var(--numeral-track); color: var(--fg); margin: 0 0 .2em; }
.legal-cover .legal-tagline { font-size: 17px; color: var(--fg); }
.legal-contents { font-size: 12px !important; letter-spacing: .24em; text-transform: none; color: var(--fg-3) !important; margin-top: 2.4em !important; }
.legal-toc { list-style: none; padding: 0; margin: 0 0 2.4em; display: grid; gap: 10px; font-size: 18px; }
.legal-toc a { text-decoration: none; }
.legal-back { font-size: 13px; color: var(--fg-3); border-top: 1px solid var(--border); padding-top: 18px; }
/* Phones: tables fit the column (three narrow columns wrap instead of scrolling sideways). */
@media (max-width: 520px) {
  .legal-table table { font-size: 13px; }
  .legal-table th, .legal-table td { min-width: 0; padding: 9px 8px; overflow-wrap: break-word; hyphens: auto; }
}
