:root {
  color-scheme: dark;
  --bg: #000;
  --text: #f2f2f2;
  --muted: #a3a3a3;
  --faint: #6b6b6b;
  --line: rgba(255, 255, 255, 0.14);
  --button: rgba(255, 255, 255, 0.06);
  --button-hover: rgba(255, 255, 255, 0.12);
  --glow: rgba(255, 255, 255, 0.45);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

.lang-switch {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  padding: 16px;
  font-size: 13px;
}

.lang-switch a {
  color: var(--faint);
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 4px;
}

.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { color: var(--text); }

/* Landing page */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 48px;
  text-align: center;
}

.logo {
  width: min(680px, 100%);
  height: auto;
  aspect-ratio: 3 / 1;
  filter: drop-shadow(0 0 6px var(--glow)) drop-shadow(0 0 24px rgba(255, 255, 255, 0.18));
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { filter: drop-shadow(0 0 6px var(--glow)) drop-shadow(0 0 24px rgba(255, 255, 255, 0.18)); }
  50% { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.28)); }
}

@media (prefers-reduced-motion: reduce) {
  .logo { animation: none; }
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.store {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 210px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--button);
  text-decoration: none;
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
}

a.store:hover, a.store:focus-visible {
  background: var(--button-hover);
  border-color: rgba(255, 255, 255, 0.4);
}

.store-icon {
  flex: none;
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.store-text {
  display: flex;
  flex-direction: column;
}

.store small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.store strong {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
}

.store[aria-disabled="true"] {
  opacity: 0.45;
  cursor: default;
}

footer {
  padding: 24px 16px;
  color: var(--faint);
  font-size: 12px;
  text-align: center;
}

footer a { color: var(--muted); }
footer span { display: inline-block; white-space: nowrap; }
footer span + span::before { content: "·"; margin: 0 8px; }

/* Phones */

@media (max-width: 720px) {
  .stores { flex-direction: column; align-items: center; margin-top: 32px; }
  .store { width: 240px; }
  footer span { display: block; }
  footer span + span::before { content: none; }
}

/* Privacy policy */

.doc {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px 48px;
}

.doc .back { color: var(--muted); font-size: 14px; text-decoration: none; }
.doc .back:hover { color: var(--text); }
.doc h1 { font-size: 28px; margin: 24px 0 4px; }
.doc h2 { font-size: 18px; margin: 32px 0 8px; }
.doc p, .doc li { color: #d4d4d4; font-size: 15px; }
.doc .date { color: var(--muted); font-size: 14px; margin-top: 0; }
.doc section[lang] { display: none; }
.doc section[lang].active { display: block; }
