/*
 * The privacy policy page (public/privacy/index.html), served by nginx at
 * /privacy and /privacy-policy. A plain static page, not the SPA: it must read
 * without JavaScript (Google Play links here). The site's CSP allows no inline
 * style, so the look lives in this file: the explorer's dark surface, inks,
 * green accent and self-hosted fonts (src/styles/tokens.css), nothing else.
 */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-latin-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0a0c0f;
  --panel: #0f1216;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #e8eaed;
  --text-hi: #f2f4f6;
  --muted: #8b9199;
  --green: #3ddc84;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

.policy {
  max-width: 44rem;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.policy__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.policy__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-hi);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.policy__brand img {
  display: block;
  width: 22px;
  height: 22px;
}

.policy__back {
  font-size: 14px;
}

h1,
h2 {
  font-family: var(--font-head);
  color: var(--text-hi);
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
  margin: 0 0 6px;
}

h2 {
  font-size: 1.25rem;
  margin: 40px 0 10px;
  scroll-margin-top: 16px;
}

.policy__meta {
  color: var(--muted);
  margin: 0 0 24px;
}

p,
ul {
  margin: 0 0 14px;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 6px;
}

strong {
  color: var(--text-hi);
  font-weight: 600;
}

code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

a {
  color: var(--green);
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 2px;
}

.policy__summary {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 16px 20px 4px;
  margin: 0 0 8px;
}

.policy__summary h2 {
  margin-top: 0;
}

.policy__foot {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
