:root {
  --bg: #ffffff;
  --fg: #0f1419;
  --muted: #5f6b7c;
  --accent: #1e88e5;
  --border: #e5e7eb;
  --code-bg: #f6f8fa;
  --max-w: 760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* Header */
header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
header.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 18px;
  color: var(--fg);
}
header.site-header .brand img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
header.site-header nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}
header.site-header nav a { color: var(--muted); }
header.site-header nav a.active { color: var(--fg); font-weight: 600; }

/* Landing hero */
.hero {
  text-align: center;
  padding: 64px 24px 32px;
}
.hero img.logo-big {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 40px;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.hero p.tagline {
  font-size: 18px;
  color: var(--muted);
  margin: 0 auto 32px;
  max-width: 520px;
}
.hero .stores {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .stores a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
}
.hero .stores small {
  display: block;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

/* Legal doc */
article.legal h1 {
  font-size: 32px;
  margin: 0 0 8px;
}
article.legal p.updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 32px;
}
article.legal h2 {
  font-size: 20px;
  margin: 40px 0 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
article.legal h3 {
  font-size: 16px;
  margin: 24px 0 8px;
}
article.legal ul { padding-left: 24px; }
article.legal li { margin: 6px 0; }
article.legal code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}
article.legal .placeholder {
  background: #fff7ed;
  color: #9a3412;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
footer.site-footer .links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
footer.site-footer .links a { color: var(--muted); }

/* Responsive */
@media (max-width: 480px) {
  .hero { padding: 40px 20px 24px; }
  .hero h1 { font-size: 32px; }
  .hero p.tagline { font-size: 16px; }
  article.legal h1 { font-size: 26px; }
  article.legal h2 { font-size: 18px; }
}
