/* The privacy policy and the terms (legal.js renders the Markdown). site.css keeps the
   header and footer; this is the reading: a comfortable measure, tables that scroll inside
   their own box on a phone, and on a computer the sections listed beside the text. */
.legal { padding: 28px 16px 64px; }
.legal-grid { display: block; }
.legal article { max-width: 70ch; min-width: 0; font-size: 16px; line-height: 1.6; }
.legal article h1 { font-size: clamp(30px, 6vw, 40px); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 12px; }
.legal article h2 { font-size: 22px; line-height: 1.25; margin: 36px 0 10px; scroll-margin-top: 80px; }
.legal article h3 { font-size: 18px; margin: 24px 0 8px; scroll-margin-top: 80px; }
.legal article p, .legal article li { color: #d6dae1; }
.legal article ul, .legal article ol { padding-left: 1.3em; }
.legal article li + li { margin-top: 4px; }
.legal article a { overflow-wrap: anywhere; }
/* a table is wider than a phone: it scrolls sideways in its own box, the page never does */
.legal .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
.legal .table-scroll table { display: table; border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; line-height: 1.45; }
.legal .table-scroll th, .legal .table-scroll td { border: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal .table-scroll th { position: sticky; top: 0; background: var(--card); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); }
.legal .table-scroll tr:last-child td { border-bottom: 0; }
.legal .table-scroll td:first-child { color: var(--text); font-weight: 500; }
.legal-loading { display: grid; gap: 12px; max-width: 70ch; }
.legal-loading i { display: block; height: 14px; border-radius: 6px; background: var(--card-2); }
.legal-loading i:first-child { height: 34px; width: 55%; margin-bottom: 10px; }
.legal-toc { display: none; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 18px; font-size: 15px; font-weight: 500; }
@media (min-width: 1100px) {
  .legal { max-width: 1080px; padding-top: 40px; }
  .legal-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
  .legal-toc { display: block; position: sticky; top: 88px; max-height: calc(100vh - 120px); overflow-y: auto; font-size: 14px; }
  .legal-toc b { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
  .legal-toc a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); color: var(--text-2); line-height: 1.35; }
  .legal-toc a.on { color: var(--accent); border-left-color: var(--accent); }
}
@media (hover: hover) { .legal-toc a:hover { color: var(--text); text-decoration: none; } }
@media print {
  .site-head, .site-foot, .legal-toc, .legal-back { display: none; }
  body { background: #fff; color: #000; }
  .legal article p, .legal article li { color: #000; }
}
