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

:root {
  --bg: #ffffff;
  --bg-secondary: #f8f9fa;
  --text: #1a1a2e;
  --text-secondary: #555;
  --accent: #4361ee;
  --accent-hover: #3a56d4;
  --border: #e0e0e0;
  --radius: 8px;
  --max-width: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f23;
    --bg-secondary: #1a1a2e;
    --text: #e0e0e0;
    --text-secondary: #a0a0b0;
    --accent: #6c83f7;
    --accent-hover: #8b9dff;
    --border: #2a2a3e;
  }
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, 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);
  text-decoration: underline;
}

/* Header */
.header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Main content */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  flex: 1;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 0;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
}

.feature {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.feature h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.feature p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (min-width: 480px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

/* Legal pages */
.legal h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal .last-updated {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.legal p {
  margin-bottom: 1rem;
}

.legal ul,
.legal ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal strong {
  font-weight: 600;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  background: var(--bg-secondary);
}

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

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