/* Shared styles for privacy.html and terms.html */

:root {
  --bg:      #0d1421;
  --bg2:     #0f1829;
  --surface: #111827;
  --border:  rgba(99, 179, 237, 0.1);
  --border2: rgba(255, 255, 255, 0.06);
  --text:    #e2e8f0;
  --text2:   #94a3b8;
  --text3:   #64748b;
  --green:   #10b981;
  --blue:    #3b82f6;
  --teal:    #06b6d4;
  --grad:    linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #10b981 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 20, 33, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border2);
}
.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.logo-icon { width: 28px; height: 28px; border-radius: 7px; overflow: hidden; flex-shrink: 0; }
.back-link { font-size: 0.875rem; color: var(--text2); }
.back-link:hover { color: var(--text); text-decoration: none; }

/* ── Page ── */
.page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border2);
}
.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.page-header .meta {
  font-size: 0.875rem;
  color: var(--text3);
}

/* ── Content typography ── */
.content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 2.5rem 0 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border2);
  letter-spacing: -0.01em;
}
.content h2:first-child { border-top: none; padding-top: 0; }

.content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 1.5rem 0 0.5rem;
}

.content p {
  color: var(--text2);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.content ul, .content ol {
  color: var(--text2);
  font-size: 0.9375rem;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.content ul { list-style: disc; }
.content ol { list-style: decimal; }

.content li { line-height: 1.65; }

.content strong { color: #f1f5f9; font-weight: 600; }

.content .callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  color: var(--text2);
}

.content .callout strong { color: var(--teal); }

/* ── Footer ── */
.footer {
  background: #080e1a;
  border-top: 1px solid var(--border2);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text3);
}
.footer a { color: var(--text3); }
.footer a:hover { color: var(--text2); text-decoration: none; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-top: 0.4rem; }

/* ── Guide index cards ── */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.guide-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.15s;
  text-decoration: none;
  color: inherit;
}
.guide-card:hover { border-color: var(--teal); text-decoration: none; }
.guide-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
}
.guide-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.4;
  margin: 0;
}
.guide-card p {
  font-size: 0.875rem;
  color: var(--text2);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.guide-card-meta {
  font-size: 0.8rem;
  color: var(--text3);
}

/* ── Data tables (NI rates etc.) ── */
.tbl-wrap { overflow-x: auto; margin: 1.25rem 0; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table th {
  text-align: left;
  padding: 0.6rem 0.9rem;
  background: var(--surface);
  color: #f1f5f9;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 0.6rem 0.9rem;
  color: var(--text2);
  border-bottom: 1px solid var(--border2);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.data-table .hl { color: #f1f5f9; font-weight: 600; }
