/* Privacy and support pages. Loaded after styles.css. */
:root { scroll-padding-bottom: 20px; --canvas: var(--paper); }

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #0e1012;
    --surface: #171a1d;
    --sunken: #202428;
    --ink: #f1f3f4;
    --ink-hover: #ffffff;
    --muted-ink: #a3aab0;
    --subtle-ink: #6f777d;
    --rule: #2a2f34;
    --accent: #ef7d8c;
    --accent-soft: #2d1519;
  }
}

body { overflow-wrap: break-word; }

.doc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}

.doc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.doc-brand img { width: 28px; height: 28px; object-fit: contain; }

.doc-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }

.doc-nav a, .doc-foot a, .doc a.text-link {
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.25em;
}

.doc-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; }
.doc-nav a[aria-current="page"] { text-decoration-color: var(--accent); }
.doc-nav a:hover, .doc-foot a:hover, .doc a.text-link:hover { text-decoration-color: var(--accent); }

.doc {
  border-block: 1px solid var(--rule);
  background: var(--surface);
  padding-block: clamp(32px, 6vw, 72px) clamp(40px, 7vw, 88px);
}

.doc-body { width: min(100%, 720px); margin-inline: auto; }

.doc h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-wrap: balance;
}

.doc h2 {
  margin: clamp(36px, 6vw, 52px) 0 0;
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--rule);
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.doc p, .doc ul { margin: 14px 0 0; }
.doc p, .doc li { line-height: 1.65; }
.doc li + li { margin-top: 8px; }
.doc ul { padding-left: 1.3em; }
.doc li::marker { color: var(--muted-ink); }
.doc strong { font-weight: 700; }
.doc a { color: var(--accent); text-underline-offset: 0.25em; }

.doc-meta { margin-top: 14px; color: var(--muted-ink); font-size: 15px; }
.doc-lede { margin-top: 20px; font-size: clamp(17px, 2vw, 19px); }

.doc-note {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--canvas);
}

.doc-note p { margin: 0; }
.doc-note p + p, .doc-note ul { margin-top: 10px; }

.doc-faq details { border-top: 1px solid var(--rule); padding-block: 4px; }
.doc-faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.doc-faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding-block: 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.doc-faq summary::-webkit-details-marker { display: none; }
.doc-faq summary::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
  transition: transform 160ms var(--ease-out);
}
.doc-faq details[open] > summary::before { transform: rotate(45deg); }
.doc-faq details > :not(summary) { margin-left: 20px; }
.doc-faq details > :last-child { margin-bottom: 14px; }

.doc-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding-block: 22px calc(28px + env(safe-area-inset-bottom, 0px));
  color: var(--muted-ink);
  font-size: 14px;
}

.doc-foot a { display: inline-flex; align-items: center; min-height: 36px; }
