/* Styling for the Terms and Privacy pages.
   Updated to match the clean white/light-gray theme with professional blue accents. */

:root {
  --bg: #ffffff;
  --bg-surface: #f8fafc;
  --bg-card: #ffffff;
  --accent: #0284c7;
  --accent-glow: rgba(2, 132, 199, 0.08);
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(2, 132, 199, 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(14, 165, 233, 0.02) 0px, transparent 50%);
  color: var(--text);
  line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #0369a1; text-decoration: underline; }

header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-brand img {
  height: 32px;
  width: auto;
}

.nav-brand span {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-links { display: flex; gap: 0.25rem; font-size: 0.85rem; flex-wrap: wrap; align-items: center; }

.nav-links a {
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--muted);
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

main { max-width: 800px; margin: 0 auto; padding: 3rem 2rem 5rem; }

h1 {
  font-size: 2.25rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  color: var(--text);
}

h2 {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 3rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text);
}

h3 { font-size: 1.1rem; font-weight: 600; margin: 2rem 0 0.5rem; color: var(--accent); }

p { margin: 0 0 1.1rem; color: var(--muted); }

ul, ol { margin: 0 0 1.1rem; padding-left: 1.3rem; color: var(--muted); }
li { margin-bottom: 0.5rem; }

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

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  background: rgba(2, 132, 199, 0.08);
  color: var(--accent);
  border: 1px solid rgba(2, 132, 199, 0.15);
  border-radius: 0.3rem;
  padding: 0.15rem 0.4rem;
}

hr { border: 0; border-top: 1px solid var(--border); margin: 3rem 0; }

.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; }

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

th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: rgba(0, 0, 0, 0.02); font-weight: 600; color: var(--text); white-space: nowrap; }
td { color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  background: var(--bg);
}

footer p { max-width: 800px; margin: 0 auto; padding: 2rem; }

@media (max-width: 600px) {
  h1 { font-size: 1.75rem; }
  main { padding: 2rem 1.25rem 3rem; }
  th { white-space: normal; }
}
