/* The legal pages: the landing's type, colours and nav, set as a column of
   plain prose. Everything visual comes from page.css — this only gives the
   text a measure, a rhythm, and room under the fixed nav. */
.legal { max-width: 720px; margin: 0 auto; padding: 132px 24px 24px; }
.legal h1 { font-weight: 300; letter-spacing: -0.035em; font-size: 44px; line-height: 1.1; margin: 0; }
.legal h2 { font-weight: 500; letter-spacing: -0.02em; font-size: 20px; margin: 44px 0 12px; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 20px; }
.legal li:has(> input[type="checkbox"]) { list-style: none; }
.legal li > input[type="checkbox"] { margin: 0 8px 0 -20px; accent-color: var(--orange); }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--orange-ink); }
.legal a:hover { text-decoration: underline; }
/* Text straight under the heading (the support page) sits where the date would. */
.legal h1 + p { margin-top: 18px; }
.legal .meta { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-top: 18px; }
.legal .back { display: inline-flex; margin-top: 48px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.legal .back:hover { color: var(--ink); }

.legal img { max-width: 100%; height: auto; border-radius: 10px; }
.legal pre { overflow-x: auto; padding: 14px 16px; border-radius: 10px; background: var(--line); font-size: 13px; }
.legal blockquote { margin: 0 0 14px; padding-left: 18px; border-left: 3px solid var(--orange); }
.legal blockquote p { font-style: italic; }
.legal code { font-family: var(--mono); font-size: 0.86em; padding: 2px 5px; border-radius: 5px; background: var(--line); }
.legal pre code { padding: 0; background: none; font-size: inherit; }
.legal hr { border: 0; margin: 32px 0; text-align: center; }
.legal hr::after { content: '· · ·'; color: var(--ink-3); letter-spacing: 0.6em; }

/* A post's pictures: the text column's width, or wide, or the page's, with
   the caption under them. */
.legal figure { margin: 28px 0; }
.legal figure img { display: block; width: 100%; }
.legal figure.wide { width: min(1040px, 100vw - 48px); margin-left: calc(50% - min(520px, 50vw - 24px)); }
.legal figure.full { width: 100vw; margin-left: calc(50% - 50vw); }
.legal figure.full img { border-radius: 0; }
.legal figcaption { margin-top: 10px; padding: 0 24px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--ink-3); }

/* A post's tables: hairline rows, and sideways scrolling on a narrow screen. */
.legal table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 8px 0 22px; }
.legal th { padding: 0 24px 10px 0; text-align: left; font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: 0.04em; color: var(--ink-3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.legal td { min-width: 110px; padding: 11px 24px 11px 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); border-bottom: 1px solid var(--line); vertical-align: top; }

/* A post's tag, above its title. */
.legal .tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--orange-ink); margin: 0 0 10px; }

/* The blog's list of posts. */
.legal .posts { list-style: none; padding: 0; margin: 44px 0 0; }
.legal .posts li { margin: 0 0 36px; }
.legal .posts a { color: var(--ink); font-weight: 500; letter-spacing: -0.02em; font-size: 22px; line-height: 1.3; }
.legal .posts a:hover { color: var(--orange-ink); text-decoration: none; }
.legal .posts .meta { margin: 8px 0 8px; }

@media (max-width: 600px) {
  .legal { padding: 96px 20px 16px; }
  .legal .posts a { font-size: 20px; }
  .legal h1 { font-size: 34px; }
  .legal h2 { font-size: 18px; margin-top: 36px; }
}

/* The footer, which on the landing comes from features.css — the legal pages
   do not load that file, so its layout lives here too. */
.foot-nav { display: flex; justify-content: space-between; align-items: center; max-width: 720px; margin: 60px auto 0; padding: 24px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); border-top: 1px solid var(--line); }
.foot-nav .l { display: flex; gap: 22px; }
@media (max-width: 600px) {
  .foot-nav { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }
  .foot-nav .l { flex-wrap: wrap; gap: 10px 18px; }
}
