/* GET /terms: the terms and conditions in the public site's look (site.css), as readable
   prose, light or dark with the visitor's setting (the landing page itself is light). */
.terms-page .top-gap { flex: 1; }
.terms-page .top .signin { margin-left: 0; }
.terms { padding-block: 56px 72px; background: var(--wash); outline: none; }
.terms-body { max-width: 68ch; background: var(--paper); border: 1px solid var(--line); padding: 40px 48px 32px; }
.terms-body h1 { font-size: var(--fs-h2); }
.terms-body .terms-date { margin: 10px 0 28px; color: var(--ink-3); font-size: var(--fs-small); }
.terms-body h2 { font-size: 21px; margin: 32px 0 8px; }
.terms-body p { margin: 0 0 12px; color: var(--ink); }
.terms-body a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.terms-page a:focus-visible, .terms-page .skip:focus { outline: 3px solid var(--lake); outline-offset: 2px; }
.terms-page .skip { position: absolute; left: -9999px; top: 8px; z-index: 30; padding: 8px 14px; background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); }
.terms-page .skip:focus { left: 16px; }
footer ul a[aria-current="page"] { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .terms { padding-block: 24px 40px; }
  .terms-body { padding: 24px 18px 16px; }
  .terms-page .maker { display: none; }
  /* The landing page moves "Sign in" into its menu on phones; this page has no menu. */
  .terms-page .top .wrap > .signin { display: inline; margin-left: auto; }
}

@media (prefers-color-scheme: dark) {
  html:has(.terms-page) { background: #0E1112; color-scheme: dark; }
  .terms-page {
    color-scheme: dark;
    --paper: #15191A;
    --wash: #0E1112;
    --line: #2C3433;
    --line-strong: #3E4847;
    --ink: #E8EDEA;
    --ink-2: #C3CCC7;
    --ink-3: #9AA6A0;
    --link: #8DBCE6;
    --lake: #8DBCE6;
    --frame: #232A29;
  }
  .terms-page .top { background: rgba(21,25,26,.92); }
  .terms-page footer .madeby .flag { box-shadow: 0 0 0 1px var(--line-strong); }
}
