/* Legal / policy pages (privacy, terms).

   These pages deliberately do NOT load Bootstrap or the main site stylesheet.
   They are long-form documents that need to stay readable, printable and
   stable for years, so they carry their own small, self-contained type scale
   rather than inheriting a marketing theme that will keep changing.

   Extracted from the inline <style> of the original GlowCompare policy so
   every policy page shares one source. */

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

:root {
  --bg: #0c0c10;
  --surface: #16161c;
  --surface-hover: #1e1e26;
  --border: #2a2a35;
  --text-primary: #e8e8ed;
  --text-secondary: #9b9bab;
  --text-muted: #6b6b7b;
  --accent: #a78bfa;
  --accent-dim: rgba(167, 139, 250, 0.1);
  --radius: 12px;
  --max-width: 720px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

/* Header */
.header {
  margin-bottom: 56px;
}

.header a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.header a:hover {
  color: var(--text-secondary);
}

.header h1 {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.header .subtitle {
  color: var(--text-secondary);
  font-size: 15px;
}

.effective-date {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Table of Contents */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 48px;
}

.toc-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  counter-reset: toc-counter;
}

.toc li {
  counter-increment: toc-counter;
}

.toc li a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.toc li a:hover {
  color: var(--text-primary);
}

.toc li a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 20px;
}

/* Sections */
.section {
  margin-bottom: 40px;
}

.section h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.section p {
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.section ul,
.section ol {
  color: var(--text-secondary);
  margin-bottom: 14px;
  padding-left: 20px;
}

.section li {
  margin-bottom: 6px;
}

.section li::marker {
  color: var(--text-muted);
}

.section strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Callout boxes */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
}

.callout.highlight {
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
}

.callout p {
  margin-bottom: 0;
  font-size: 14px;
}

.callout p + p {
  margin-top: 10px;
}

/* Data table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

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

.data-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--surface);
}

.data-table td {
  color: var(--text-secondary);
}

.data-table td:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

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

.data-table-wrapper {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Tag */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tag.local {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.tag.transient {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

/* Data that leaves the device for a named third party. Deliberately the
   loudest of the three - it is the row a reader most needs to notice. */
.tag.external {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

/* Footer */
.footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--text-primary);
}

.footer p + p {
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 520px) {
  .page {
    padding: 32px 16px 64px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .toc {
    padding: 20px;
  }
}
