/* Shared by /about, /terms and /privacy: the app's charcoal, a floating pill navbar. Light
   too, when the app's Settings › Appearance says so (the pages set html[data-theme] first). */
:root {
  color-scheme: dark;
  --bg: #202124;
  --surface: #303134;
  --ink: #e8eaed;
  --ink-strong: #fff;
  --muted: rgba(232, 234, 237, 0.72);
  --faint: #9aa0a6;
  --line: #3c4043;
  --o: 255, 255, 255; /* hover and press: rgba(var(--o), alpha) */
  --nav: rgba(48, 49, 52, 0.82);
  --raised: #2a2b2e;
  --shadow: rgba(0, 0, 0, 0.45);
  --link: #8ab4f8;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #fff;
  --surface: #f1f3f4;
  --ink: #202124;
  --ink-strong: #000;
  --muted: rgba(32, 33, 36, 0.72);
  --faint: #5f6368;
  --line: #dadce0;
  --o: 0, 0, 0;
  --nav: rgba(255, 255, 255, 0.82);
  --raised: #fff;
  --shadow: rgba(0, 0, 0, 0.14);
  --link: #1a73e8;
}
* { box-sizing: border-box; }
/* A column the height of the screen at least, so the foot sits at the bottom on short pages. */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 8px 8px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-wrap { position: sticky; top: 0; z-index: 10; padding: 12px 16px 0; }
.logo { font: 300 24px/1 "Outfit", sans-serif; letter-spacing: -0.03em; color: var(--ink-strong); text-decoration: none; margin-right: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); background: rgba(var(--o), 0.06); }
.nav-links a[aria-current] { color: var(--ink); }
.nav-menu {
  display: none;
  place-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.nav-menu span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 200ms ease; }
.nav-menu:active { background: rgba(var(--o), 0.08); }
/* Open: the two lines turn into an ×. */
.nav.open .nav-menu span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.open .nav-menu span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-cta { padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }

main { flex: 1 0 auto; width: 100%; max-width: 680px; margin: 0 auto; padding: 48px 16px 80px; }
h1 { font-size: 34px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -0.02em; }
h2 { font-size: 19px; margin: 32px 0 6px; }
h3 { font-size: 16px; margin: 20px 0 4px; }
p, ul { margin: 0 0 12px; color: var(--muted); }
li { margin-bottom: 4px; }
b { color: var(--ink); }
.date { color: var(--faint); font-size: 15px; margin-bottom: 28px; }
main a { color: var(--link); }

.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-mark { width: 26px; height: 22px; flex: none; }

/* Every page's foot: the three pages again, and the year. */
.foot { width: 100%; max-width: 680px; margin: 0 auto; padding: 24px 16px calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); text-align: center; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.foot-links a { font-size: 14px; color: var(--muted); text-decoration: none; }
.foot-links a[aria-current] { color: var(--ink); }
.foot p { margin: 14px 0 0; font-size: 13px; color: var(--faint); }

/* Phone: one slim bar, the logo, a small Open and a menu button that drops the pages down. */
@media (max-width: 600px) {
  .nav-wrap { padding: calc(8px + env(safe-area-inset-top)) 12px 0; }
  .nav { padding: 6px 6px 6px 16px; }
  .logo { font-size: 21px; gap: 8px; }
  .logo-mark { width: 23px; height: 19px; }
  .nav { position: relative; gap: 6px; }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--raised);
    box-shadow: 0 12px 40px var(--shadow);
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 160ms ease, transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 16px; border-radius: 16px; font-size: 16px; }
  .nav-links a[aria-current] { background: rgba(var(--o), 0.06); }
  .nav-menu { display: grid; }
  .nav-cta { padding: 8px 16px; font-size: 14px; }
  .cta-long { display: none; }
  main { padding-top: 36px; }
  h1 { font-size: 30px; }
}
