/* Self-hosted (SIL Open Font License) so no visitor's IP address goes to Google. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/fredoka-600-latin.woff2') format('woff2');
}

:root {
  --bg: #0f0f13;
  --text: #f2f1ed;
  --text-dim: #b0afab;
  --text-faint: #8a8986;
  --border: rgba(255, 252, 248, 0.14);
  --surface: rgba(255, 252, 248, 0.06);
  --brand: #8b7cf6;
  --brand-bright: #a99df9;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 8px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: Fredoka, Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}
.wordmark img {
  width: 0.72em;
  height: 0.72em;
  margin: 0 0.04em 0 0.02em;
  transform: translateY(0.03em);
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}
.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
}
.site-nav a:hover { color: var(--text); }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: auto;
  padding-top: 32px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 13px;
  color: var(--text-faint);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.site-footer a {
  color: var(--text-dim);
  text-decoration: none;
}
.site-footer a:hover { color: var(--text); }

/* ── Legal pages ─────────────────────────────────────────────────────────── */

.legal-main {
  width: 100%;
  /* ~70 characters at this size: the range where long prose stays readable. */
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.legal-title {
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.legal-updated {
  color: var(--text-faint);
  font-size: 0.875rem;
  margin: 0 0 40px;
}

.legal-main h2 {
  font-size: 1.25rem;
  margin: 40px 0 12px;
  padding-top: 8px;
}

.legal-main h3 {
  font-size: 1rem;
  margin: 24px 0 8px;
}

.legal-main p,
.legal-main li {
  color: var(--text-dim);
  line-height: 1.7;
}

.legal-main p { margin: 0 0 16px; }

.legal-main ul,
.legal-main ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-main li { margin-bottom: 8px; }

.legal-main [id] { scroll-margin-top: 24px; }

.legal-main a {
  color: var(--brand-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.legal-main strong { color: var(--text); }

.legal-card {
  margin: 0 0 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.legal-card p:last-child,
.legal-card ol:last-child { margin-bottom: 0; }
.legal-card address {
  font-style: normal;
  color: var(--text-dim);
  line-height: 1.7;
}

.legal-processors {
  list-style: none;
  padding: 0 !important;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.legal-processors li {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.legal-processor-name {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 4px;
}
.legal-processor-detail {
  display: block;
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .site-nav { gap: 14px; font-size: 14px; }
  .wordmark { font-size: 26px; }
  .legal-main { padding: 32px 20px 72px; }
  .legal-title { font-size: 1.75rem; }
}
