/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0f1117;
  --bg-card: #1a1d27;
  --text: #e4e6ed;
  --text-muted: #9ca0ad;
  --accent: #4f7df5;
  --accent-hover: #6b93ff;
  --border: #2a2d3a;
  --radius: 12px;
  --max-w: 720px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8f9fb;
    --bg-card: #ffffff;
    --text: #1a1d27;
    --text-muted: #6b7080;
    --accent: #3b6ce7;
    --accent-hover: #2a5ad4;
    --border: #e2e4ea;
  }
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

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

a:hover {
  color: var(--accent-hover);
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header ===== */
header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-left: 1.5rem;
}

nav a:hover {
  color: var(--text);
}

/* ===== Main ===== */
main {
  flex: 1;
  padding: 3rem 0;
}

/* ===== Hero (index) ===== */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.links a {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}

.links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Page Content (privacy, terms) ===== */
.page-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.page-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}

.content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.content h2:first-child {
  margin-top: 0;
}

.content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.content ul {
  color: var(--text-muted);
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.content li {
  margin-bottom: 0.375rem;
}

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

/* ===== Contact Card ===== */
.contact {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact p {
  margin-bottom: 0;
}

/* ===== Footer ===== */
footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  nav a {
    margin-left: 1rem;
    font-size: 0.8125rem;
  }
}
