/* Keep the homepage brand and header; document pages use one reading column. */
* { box-sizing: border-box; }
body.page-legal { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.85; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--mf-foreground); outline-offset: 5px; }
.skip { position: fixed; left: 20px; top: -100px; z-index: 1300; background: var(--mf-foreground); color: white; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 14px; }
.legal-container { width: min(900px, calc(100% - 48px)); margin-inline: auto; }
main { min-width: 0; margin-block: 40px 64px; }
h1, h2, h3 { color: var(--mf-foreground); font-weight: 600; line-height: 1.5; scroll-margin-top: calc(var(--site-nav-height) + 24px); }
h1 { font-size: 30px; text-align: center; margin: 0 0 28px; }
h2 { font-size: 22px; margin: 32px 0 16px; }
h3 { font-size: 18px; margin: 24px 0 12px; }
p { margin: 16px 0; overflow-wrap: anywhere; }
li { margin: 10px 0; padding-left: 3px; overflow-wrap: anywhere; }
ol, ul { padding-left: 24px; }
strong { font-weight: 600; }
main a { text-decoration: underline; text-underline-offset: 3px; }
.document-history { margin-top: 32px; color: #666; font-size: 13px; }
.document-note { margin: 20px 0; font-size: 14px; color: #55585d; }
.table-wrap { overflow-x: auto; max-width: 100%; margin: 20px 0; }
table { border-collapse: collapse; min-width: 640px; width: 100%; font-size: 14px; line-height: 1.8; }
th, td { border: 1px solid var(--mf-border); padding: 12px; text-align: left; vertical-align: top; }
th { background: var(--mf-card); font-weight: 600; }
code { font-family: ui-monospace, monospace; font-size: .9em; }
.document-list { padding-left: 24px; }
@media (max-width: 520px) {
  .legal-container { width: calc(100% - 40px); }
  body.page-legal { font-size: 15px; }
  main { margin-block: 24px 40px; }
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body.page-legal { padding-top: 0; background: white; }
  #nav, .skip, .site-footer, .document-history { display: none !important; }
  .legal-container { width: 100%; max-width: none; }
  main { margin: 0; }
  .table-wrap { overflow: visible; }
  table { min-width: 0; }
  h2, h3 { break-after: avoid; }
}
