:root {
  --bg: #0a0a0c;
  --surface: rgba(255, 255, 255, 0.03);
  --text: #f4f4f6;
  --muted: #8b8b96;
  --soft: #b6b6c0;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #22c1ee;
  --cool: linear-gradient(135deg, #34e89e 0%, #22c1ee 45%, #3b82f6 100%);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { position: relative; width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* Header (inner pages) */
.site-header { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }

/* Footer (all pages) */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-top: 24px; padding-bottom: 28px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.85rem;
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer nav a { text-decoration: none; transition: color .2s; }
.site-footer nav a:hover, .site-footer nav a[aria-current="page"] { color: var(--text); }

/* Document pages: privacy, terms, contact */
.doc { flex: 1; max-width: 760px; padding-top: 32px; padding-bottom: 80px; }
.doc > div:first-child { margin-bottom: 40px; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.25rem); font-weight: 740; letter-spacing: -0.035em; line-height: 1.05; }
.doc > div:first-child p { margin-top: 12px; color: var(--muted); line-height: 1.55; }
.card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 24px 26px; margin-top: 16px; }
.card-highlight { border-color: rgba(34, 193, 238, 0.35); background: rgba(34, 193, 238, 0.05); }
.card h2 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 14px; }
.card h3 { font-size: 1rem; font-weight: 620; margin-top: 18px; margin-bottom: 6px; }
.card-body { color: var(--soft); line-height: 1.7; font-size: 0.97rem; }
.card-body p + p, .card-body ul + p, .card-body p + ul { margin-top: 12px; }
.card-body ul { padding-left: 1.2em; }
.card-body li { margin-top: 6px; }
.card-body strong { color: var(--text); font-weight: 600; }

/* Contact */
.contact-card { margin-top: 8px; }
.contact-card .email {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 20px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  text-decoration: none; font-size: 0.95rem; color: var(--text); transition: border-color .2s, background .2s;
}
.contact-card .email:hover { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cool); }

@media (max-width: 520px) {
  .site-footer { flex-direction: column; align-items: flex-start; }
  .card { padding: 20px; }
}
