/* The legal pages.
 *
 * Long prose that people read rather than scan, so the body column is capped at
 * a comfortable measure instead of filling the window. Everything here is
 * classes: the CSP forbids inline styles, which is also why the markdown
 * renderer rewrites markdown-it's `style="text-align:…"` on table cells into
 * `u-left` / `u-center` / `u-right` from util.css.
 */

.legal-list { list-style: none; margin: 0; padding: 0; }
.legal-list-item + .legal-list-item { margin-top: var(--space-5); }
.legal-list-link { font-size: 1.05rem; font-weight: 600; }
.legal-list-summary { color: var(--color-text-muted); margin: var(--space-1) 0 0; }
.legal-note { color: var(--color-text-muted); font-size: 0.9rem; }

/* Document + contents. One column until there is room for the sidebar; the
   contents list is an aid, not the content, so it goes second in the source
   and a narrow screen simply gets it after the prose. */
.legal-layout { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 960px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr) 15rem; }
  .legal-toc { position: sticky; top: var(--space-6); }
}

.legal-body { max-width: 46rem; line-height: 1.65; overflow-wrap: anywhere; }
.legal-body h1 { margin-top: 0; }
.legal-body h2 { margin-top: var(--space-7); }
.legal-body h3 { margin-top: var(--space-5); }
.legal-body code { font-size: 0.9em; }
.legal-body blockquote {
  margin: var(--space-4) 0;
  padding-left: var(--space-4);
  border-left: 3px solid var(--color-border);
  color: var(--color-text-muted);
}
/* A table of ~30 footnoted rows must not push the page sideways. */
.legal-body table { display: block; overflow-x: auto; border-collapse: collapse; }
.legal-body th, .legal-body td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--color-border); }

.legal-toc h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); }
.legal-toc ul { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.legal-toc li { margin: var(--space-2) 0; }
.legal-toc-l3 { padding-left: var(--space-3); }

.legal-others { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }

/* The contact page: one labelled address, not a form. */
.legal-contact { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 0; }
.legal-contact dt { color: var(--color-text-muted); }
.legal-contact dd { margin: 0; overflow-wrap: anywhere; }
