/* Shared shell for the EchoChamber policy pages:
   privacy, terms, refund, delete-account, updates.
   Matches the dark theme of index.html. */

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --border: #2a2a38;
  --text: #e4e4ed;
  --text-muted: #8888a0;
  --accent: #5b8def;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

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

/* ── Top bar ─────────────────────────────────────────────── */

.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand:hover { text-decoration: none; }

.topbar nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.topbar nav a:hover { color: var(--text); text-decoration: none; }

/* ── Content ─────────────────────────────────────────────── */

.container {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 24px 64px;
  flex: 1;
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
}

p { margin-bottom: 16px; color: var(--text); }

ul, ol {
  margin: 12px 0 20px 24px;
  color: var(--text);
}

li { margin-bottom: 8px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { color: var(--text); }

.highlight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
}

.highlight strong { color: var(--accent); }

.table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.95rem;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td { border-bottom: none; }

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s;
  margin: 8px 0 16px;
}

.button:hover { background: #7ba3f5; text-decoration: none; }

.meta {
  color: var(--text-muted);
  font-size: 0.88rem;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px 36px;
  text-align: center;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.site-footer nav a {
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.site-footer nav a:hover { color: var(--text); text-decoration: none; }

.site-footer p {
  color: var(--text-faint, #55556a);
  font-size: 0.82rem;
  margin: 0;
}

.site-footer p a { color: var(--text-muted); }

@media (max-width: 640px) {
  .container { padding: 40px 20px 48px; }
  h1 { font-size: 1.8rem; }
}
