:root {
  --bg: #ffffff;
  --fg: #1a1a1f;
  --muted: #55565f;
  --accent: #6d3fc4;
  --accent-contrast: #ffffff;
  --border: #e4e2ea;
  --card-bg: #f7f6fb;
  --code-bg: #efedf6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16151c;
    --fg: #ecebf1;
    --muted: #b3b1bd;
    --accent: #b795f0;
    --accent-contrast: #16151c;
    --border: #322f3d;
    --card-bg: #1e1c26;
    --code-bg: #26232f;
  }
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  font-size: 17px;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header.site {
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

header.site .brand {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--fg);
}

header.site nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

header.site nav a {
  color: var(--muted);
  text-decoration: none;
}

header.site nav a:hover,
header.site nav a:focus {
  color: var(--accent);
}

.lang-switch {
  font-size: 0.95rem;
}

.lang-switch a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.lang-switch a:hover,
.lang-switch a:focus {
  text-decoration: underline;
}

main {
  padding: 2.5rem 0 3rem;
}

main.legal h1 {
  margin-bottom: 0.25rem;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0;
  margin-bottom: 2rem;
}

h1 {
  font-size: 1.7rem;
  line-height: 1.25;
}

h2 {
  font-size: 1.25rem;
  margin-top: 2.25rem;
}

h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
}

p, li {
  color: var(--fg);
}

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

.muted {
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
}

code, .placeholder {
  background: var(--code-bg);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.placeholder {
  color: var(--accent);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}

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

.hero h1 {
  font-size: 2.1rem;
  margin-bottom: 0.5rem;
}

.hero p.tagline {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 34rem;
  margin: 0 auto 1.75rem;
}

.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

@media (max-width: 520px) {
  .modes {
    grid-template-columns: 1fr;
  }
}

.modes .card h3 {
  margin-top: 0;
}

.store-badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.75rem 0;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 1.1rem;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  font-size: 0.95rem;
}

.store-badge:hover,
.store-badge:focus {
  border-color: var(--accent);
  color: var(--accent);
}

.store-badge .sub {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted);
}

.legal-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2rem 0 0.5rem;
  font-size: 0.95rem;
}

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

footer.site .wrap {
  padding: 1.5rem 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

footer.site a {
  color: var(--muted);
}

footer.site nav {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.notice {
  border-left: 3px solid var(--accent);
  padding: 0.1rem 1rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}
