/* The privacy, terms, support and imprint pages: the home page's nav pill, type and footer around one column of text on
   the dark ground. The tokens are copied from styles.css, which is built for the scrolling home page. */

:root {
  --ground: #141317;
  --ink: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: 56px;
  color-scheme: dark;
}
/* A link reached with Tab while scrolling up stops clear of the sticky nav (38 + 48, plus room). */
html { background: var(--ground); scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--ground); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ── The nav: the home page's glass pill, holding the brand, the section links and Download ────────────── */
/* It rests where the home page's does, 38 from the top (16 on phones, 12 in short windows), so it doesn't move from
   one page to the next, and sticks there as the text scrolls under it. */
.nav {
  position: sticky; z-index: 2; top: 38px; flex: none; width: max-content; margin: 38px auto 0; height: 48px;
  box-sizing: border-box; display: flex; align-items: center; gap: 4px; padding: 0 6px 0 14px; border-radius: 999px;
  background: rgba(22, 20, 28, 0.42); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 12px 32px rgba(10, 10, 50, 0.3);
  white-space: nowrap;
}
.brand { display: flex; align-items: center; gap: 8px; padding-right: 10px; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 20px; font-weight: 700; }
.brand img { display: block; width: 24px; height: 24px; }
/* The home page's section links, each going to its section there. None is current: no section is on this page. */
.links { display: flex; gap: 4px; }
.links a { height: 36px; display: flex; align-items: center; padding: 0 14px; border-radius: 999px; color: rgba(255, 255, 255, 0.78); text-decoration: none; font-size: 14px; line-height: 18px; font-weight: 500; }
.links a:hover { color: var(--ink); }
.get { margin-left: 6px; height: 36px; display: flex; align-items: center; padding: 0 16px; border-radius: 999px; background: #ffffff; color: var(--ground); text-decoration: none; font-size: 14px; line-height: 18px; font-weight: 600; transition: transform 120ms ease; }
.get:hover { transform: translateY(-1px); }
.get:active { transform: scale(0.96); }

/* ── The text: one column, at most 680 wide ───────────────────────────────────────────────────────────── */
main.doc { flex: 1 0 auto; width: min(680px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 72px 0 96px; }
.doc h1 { margin: 0; font-size: 56px; line-height: 60px; font-weight: 700; letter-spacing: -0.032em; text-wrap: balance; }
.doc .date { margin: 16px 0 0; font-size: 15px; line-height: 20px; color: rgba(255, 255, 255, 0.66); }
.doc .lede { margin: 20px 0 0; font-size: 19px; line-height: 28px; color: rgba(255, 255, 255, 0.76); }
.doc .lede + .lede { margin-top: 12px; }
.doc h2 { margin: 48px 0 0; font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
.doc h3 { margin: 28px 0 0; font-size: 17px; line-height: 24px; font-weight: 600; }
.doc p, .doc li, .doc address { font-size: 17px; line-height: 27px; color: rgba(255, 255, 255, 0.78); }
.doc p { margin: 16px 0 0; }
.doc address { margin: 0; font-style: normal; }
.doc h2 + p, .doc h2 + ul { margin-top: 12px; }
.doc h3 + p { margin-top: 6px; }
.doc ul { margin: 16px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: rgba(255, 255, 255, 0.5); }
.doc a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--ink); }
.doc code { font-family: var(--mono); font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); }
.doc a, .doc code { overflow-wrap: anywhere; }

/* Support's contact and the imprint's address: the home page's hot key card fill and rim. */
.card { margin: 32px 0 0; padding: 24px 28px; border-radius: 28px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.card > :first-child { margin-top: 0; }

/* ── The footer: the home page's ─────────────────────────────────────────────────────────────────────── */
.footer { flex: none; height: 140px; box-sizing: border-box; padding: 30px var(--gutter) 0; background: var(--ground); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-row { display: flex; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #f5f4f7; font-size: 15px; line-height: 20px; font-weight: 700; }
.footer-brand img { display: block; width: 24px; height: 24px; }
.legal { display: flex; align-items: center; gap: 28px; font-size: 14px; line-height: 20px; }
.legal a { color: #c9c7d0; text-decoration: none; }
.legal a:hover, .legal a[aria-current] { color: #ffffff; }
.footer-notes { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 13px; line-height: 18px; color: #8f8d95; }

/* ── Medium windows and short ones: the section links hide, as on the home page ────────────────────────── */
@media (max-width: 1100px), (max-height: 500px) {
  .links { display: none; }
}

/* ── Phones ───────────────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .nav { top: 16px; margin-top: 16px; }
  main.doc { padding: 48px 0 72px; }
  .doc h1 { font-size: 38px; line-height: 42px; }
  .card { padding: 20px; }
  .footer { height: auto; padding: 24px var(--gutter) 28px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .legal { flex-wrap: wrap; gap: 8px 24px; }
  .footer-notes { margin-top: 20px; padding-top: 16px; }
}

/* ── Short windows (500 tall and below) ───────────────────────────────────────────────────────────────── */
@media (max-height: 500px) {
  .nav { top: 12px; margin-top: 12px; }
}

/* ── Accessibility and print ──────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .get { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: #232129; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .doc .date, .doc .lede, .doc p, .doc li, .doc address, .links a, .legal a, .footer-notes { color: var(--ink); }
}
@media print {
  :root { color-scheme: light; }
  html, body { background: #ffffff; color: #000000; }
  .nav { display: none; }
  main.doc { width: auto; padding: 0; }
  .doc p, .doc li, .doc address, .doc .date, .doc .lede, .doc a { color: #000000; }
  /* On paper a link can't be followed: it keeps its underline, and a link to another site prints its address. */
  .doc a { text-decoration-color: currentColor; }
  .doc a[href^="https://"]::after { content: " (" attr(href) ")"; }
  .doc code { background: #eeeeee; }
  .card { background: none; box-shadow: inset 0 0 0 1px #cccccc; }
  .footer { height: auto; margin-top: 32px; padding: 16px 0 0; background: none; border-top-color: #cccccc; }
  .footer-brand, .legal a, .footer-notes { color: #000000; }
  .footer-notes { border-top-color: #cccccc; }
}
