/* Text pages (privacy, terms, support). Loaded after site.css, which gives the header,
   the footer and the palette; this file sets a night masthead and an ivory sheet of text
   at a readable measure. No scripts, no motion. */

body.page { background: var(--ink); }

/* ---------- Masthead ---------- */

.page-head {
  position: relative;
  padding: clamp(132px, 20vh, 196px) var(--gutter) clamp(48px, 8vh, 80px);
  background:
    radial-gradient(70% 90% at 82% 0%, rgba(52, 72, 112, 0.45), transparent 70%),
    var(--ink);
  color: var(--ivory);
}
.page-head-inner,
.doc {
  width: min(100%, 44rem);
  margin-inline: auto;
}
.page-kicker {
  margin: 0 0 18px;
  font: 500 0.75rem/1.4 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 235, 221, 0.56);
}
.page-head h1 {
  margin: 0;
  font: 400 clamp(2.5rem, 6vw, 4.25rem)/1.04 var(--serif);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.page-meta {
  margin: 22px 0 0;
  font-size: 0.9375rem;
  color: rgba(244, 235, 221, 0.66);
}
.page-lede {
  margin: 22px 0 0;
  max-width: 36rem;
  font: 400 clamp(1.125rem, 1.6vw, 1.3125rem)/1.55 var(--serif);
  color: rgba(244, 235, 221, 0.86);
}

/* ---------- The sheet ---------- */

.page-body {
  background: var(--ivory);
  color: var(--ink);
  padding: clamp(56px, 9vh, 104px) var(--gutter) clamp(88px, 14vh, 152px);
}
.doc {
  font: 400 1.0625rem/1.72 var(--sans);
  color: #2B2420;
}
.doc > :first-child { margin-top: 0; }
.doc h2 {
  margin: 2.6em 0 0.6em;
  padding-top: 1.1em;
  border-top: 1px solid var(--hairline);
  font: 400 clamp(1.5rem, 2.4vw, 1.875rem)/1.2 var(--serif);
  letter-spacing: -0.012em;
  color: var(--ink);
}
.doc > h2:first-child { padding-top: 0; border-top: 0; }
.doc h3 {
  margin: 1.9em 0 0.35em;
  font: 600 1.0625rem/1.4 var(--sans);
  color: var(--ink);
}
.doc p,
.doc ul,
.doc ol,
.doc dl { margin: 0 0 1em; }
.doc ul,
.doc ol { padding-left: 1.25em; }
.doc li + li { margin-top: 0.4em; }
.doc li::marker { color: var(--khaki); }
.doc strong { font-weight: 600; color: var(--ink); }
.doc a {
  color: var(--espresso);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(59, 42, 32, 0.4);
}
.doc a:hover { text-decoration-color: currentColor; }
.doc .note {
  font-size: 0.9375rem;
  color: var(--muted);
}
.doc .summary {
  margin-bottom: 1.6em;
  font: 400 1.25rem/1.55 var(--serif);
  color: var(--ink);
}

/* Something the owner still has to fill in or confirm. Visible on purpose. */
[data-todo] {
  background: rgba(242, 104, 60, 0.12);
  box-shadow: 0 0 0 2px rgba(242, 104, 60, 0.12);
  border-radius: 3px;
}

/* Questions and answers. */
.faq { margin: 0; }
.faq dt {
  margin: 1.6em 0 0.3em;
  font: 600 1.0625rem/1.45 var(--sans);
  color: var(--ink);
}
.faq dd { margin: 0; }

/* A short table of facts (requirements). */
.facts-list { margin: 0 0 1.2em; }
.facts-list div {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 4px 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}
.facts-list dt { font-weight: 600; color: var(--ink); }
.facts-list dd { margin: 0; }

/* Chooser on /privacy/ and the app index on /support/. */
.doc .doc-links {
  display: grid;
  gap: 14px;
  margin: 0 0 1.4em;
  padding: 0;
  list-style: none;
}
.doc-links li + li { margin-top: 0; }
.doc-links a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s, border-color 0.2s;
}
.doc-links a:hover { background: rgba(255, 255, 255, 0.85); border-color: rgba(59, 42, 32, 0.3); }
.doc-links img { flex: none; border-radius: 12px; }
.doc-links .t { display: block; font: 400 1.25rem/1.25 var(--serif); }
.doc-links .d { display: block; margin-top: 2px; font-size: 0.9375rem; color: var(--muted); }

/* Each app on the support page starts a new part. */
.doc section + section { margin-top: 3.5em; }
.app-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 0.6em;
}
.app-head img { border-radius: 14px; }
.doc .app-head h2 { margin: 0; padding: 0; border: 0; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.doc section > h3:first-of-type { margin-top: 1.2em; }

/* ---------- Compact footer ---------- */

.site-footer--compact {
  min-height: 0;
  padding-top: clamp(64px, 10vh, 104px);
}
.site-footer--compact .footer-lower {
  min-height: 0;
  padding-top: 0;
}
.site-footer--compact .footer-bar { padding-bottom: clamp(28px, 5vh, 48px); }
.site-footer--compact .footer-wordmark-wrap { opacity: 0.9; }

.site-nav a[aria-current="page"] { opacity: 1; }

@media (max-width: 767px) {
  .page-head { padding-top: 112px; }
  .facts-list div { grid-template-columns: minmax(0, 1fr); }
  .site-footer--compact { padding-top: 64px; }
  .site-footer--compact .footer-lower { padding-bottom: 0; }
}
