:root {
  --bg: #0b1220;
  --panel: rgba(12, 18, 31, 0.8);
  --line: rgba(163, 179, 200, 0.14);
  --text: #edf3fb;
  --muted: #a9b8ca;
  --accent: #d38b55;
  --accent-soft: #f1c977;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(211, 139, 85, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(135, 160, 173, 0.12), transparent 20%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.8));
}

.page-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.hero-card,
.legal-card {
  backdrop-filter: blur(18px);
}

.landing,
.store-links,
.legal-grid,
.legal-page,
.legal-links {
  display: grid;
  gap: 24px;
}

.eyebrow,
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
}

.eyebrow,
.section-kicker {
  color: var(--accent-soft);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

p,
a,
button {
  color: var(--muted);
  line-height: 1.7;
}

.button {
  border-radius: 999px;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  font-weight: 600;
}

.store-button {
  flex-direction: column;
  gap: 4px;
  min-height: 76px;
}

.button-note {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.88;
}

.button:hover,
.support-mail:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.96;
}

.button:disabled:hover {
  transform: none;
}

.button-primary {
  color: #10131b;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
}

.button-primary .button-note {
  color: rgba(16, 19, 27, 0.78);
}

.button-secondary {
  color: var(--text);
  border: 1px solid rgba(241, 201, 119, 0.34);
  background: rgba(255, 255, 255, 0.02);
}

.hero-card {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 40px 32px 44px;
  justify-items: center;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(211, 139, 85, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(16, 25, 42, 0.92), rgba(7, 13, 23, 0.78));
  box-shadow: var(--shadow);
}

.language-switcher,
.legal-topbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-logo {
  width: min(280px, 58vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.3));
  margin-top: 4px;
}

.intro {
  max-width: 38ch;
  margin: 0;
  font-size: 1.05rem;
}

.store-links {
  grid-template-columns: repeat(2, minmax(0, 220px));
  margin-top: 12px;
  margin-bottom: 10px;
  gap: 18px;
}

.support-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  margin-top: 2px;
}

.language-button,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(241, 201, 119, 0.34);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  text-decoration: none;
}

.legal-links {
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  margin-top: 8px;
  gap: 18px;
}

.text-link {
  color: var(--text);
  text-decoration: none;
}

.text-link {
  font-weight: 600;
}

.text-link:hover,
.back-link:hover,
.language-button:hover {
  color: var(--accent-soft);
  transform: translateY(-2px);
}

.legal-grid {
  grid-template-columns: repeat(2, 1fr);
}

.legal-card {
  min-height: 100%;
  padding: 30px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.legal-page {
  justify-items: center;
}

.legal-card-page {
  width: min(760px, 100%);
  padding: 26px 30px 30px;
}

.legal-card-page > .section-kicker {
  margin: 2px 0 10px;
}

.legal-card-page > h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--text);
}

.privacy-title {
  max-width: 10ch;
  line-height: 1.08;
  text-wrap: balance;
}

.legal-copy,
.legal-lede {
  max-width: 62ch;
}

.legal-copy {
  display: grid;
  gap: 18px;
}

.legal-meta,
.legal-footer-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-sections {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.legal-section {
  display: grid;
  gap: 12px;
  padding: 22px 22px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.legal-section h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.2;
  color: var(--text);
}

.legal-section p,
.legal-section li {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-section ul {
  margin: 0;
  padding-left: 22px;
}

.legal-card a {
  color: var(--text);
}

.legal-footer-note {
  margin-top: 20px;
  padding-top: 2px;
}

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

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 14px;
    padding-bottom: 40px;
  }

  .hero-card,
  .legal-card {
    border-radius: 24px;
    padding: 22px;
  }

  .store-links {
    grid-template-columns: 1fr;
  }

  .legal-links {
    grid-template-columns: 1fr;
  }

  .button,
  .support-mail,
  .language-button,
  .back-link {
    width: 100%;
  }

  .language-switcher,
  .legal-topbar {
    justify-content: stretch;
    flex-direction: column;
  }

  .legal-card-page > h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .legal-card-page,
  .hero-card {
    padding-left: 22px;
    padding-right: 22px;
  }
}
