:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #1e1e1e;
  --text: #e8e8e8;
  --text-muted: #888888;
  --accent: #4a9eff;
  --max-width: 720px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  opacity: 0.8;
}

/* Layout */

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

/* Header */

.site-header {
  padding: 1.5rem 0;
}

.site-header a {
  color: var(--text);
  font-weight: 600;
  font-size: 1.125rem;
}

/* Hero (landing page) */

.hero-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  text-align: center;
  padding: 2rem 0;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.store-badge img {
  width: 200px;
  transition: opacity 0.2s;
}

.store-badge:hover img {
  opacity: 0.8;
}

/* Footer */

footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

footer nav {
  margin-bottom: 1rem;
}

footer nav a {
  color: var(--text-muted);
  margin: 0 0.75rem;
}

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

.copyright {
  font-size: 0.8125rem;
}

/* Legal pages (privacy, terms) */

.legal-content {
  padding: 3rem 0;
  flex: 1;
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.legal-content .effective-date {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

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

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

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

.legal-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0 1.5rem;
}

/* 404 page */

.error-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-content h1 {
  font-size: 5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

/* Responsive */

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .hero .tagline {
    font-size: 1.0625rem;
  }

  .legal-content h1 {
    font-size: 1.625rem;
  }

  .store-badge img {
    width: 180px;
  }
}
