:root {
  --bg: #f9fafb;
  --heading: #3c4a5b;
  --muted: #9a9a9a;
  --purple: #3f007a;
  --purple-soft: #a47fc5;
  --outline: #e8e8f0;
  --white: #ffffff;
  --shadow-card: 0 4px 32px rgba(60, 74, 91, 0.09);
  --font-sans: "Nunito", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  font-family: var(--font-sans);
  color: var(--heading);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── Background blobs ── */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.blob-1 {
  width: 700px; height: 700px;
  top: -200px; right: -150px;
  background: radial-gradient(circle at 30% 30%, #f6c3e0 0%, #d9b8f0 45%, transparent 70%);
}
.blob-2 {
  width: 800px; height: 800px;
  bottom: -100px; left: -250px;
  background: radial-gradient(circle at 50% 50%, #d9c2f5 0%, #e9cfe0 45%, transparent 72%);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 20px;
  left: 40px;
  right: 40px;
  height: 68px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 100px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  z-index: 200;
  box-shadow: 0 2px 14px rgba(60, 74, 91, 0.08);
}

.navbar-inner {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 16px;
}

.logo img {
  height: 32px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--heading); }

.nav-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

/* ── Store badges ── */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 10px;
  background: var(--white);
  border: 1.5px solid var(--outline);
  color: var(--heading);
  font-family: var(--font-sans);
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.store-badge:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.store-badge svg { flex-shrink: 0; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-badge-sub { font-size: 8px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.store-badge-name { font-size: 13px; font-weight: 800; color: var(--heading); }

/* ── Page wrap ── */
.page-wrap {
  position: relative;
  z-index: 1;
  padding: 108px 24px 64px;
}

/* ── Container ── */
.container {
  max-width: 860px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 48px 56px;
  box-shadow: var(--shadow-card);
}

/* ── Page header ── */
.page-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--outline);
}

.page-header h1 {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--purple);
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}

.page-header .meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.6;
}

/* ── Typography ── */
h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--purple);
  margin: 2rem 0 0.6rem;
  letter-spacing: -0.1px;
}

h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading);
  margin: 1.4rem 0 0.4rem;
}

p {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0.85rem;
  text-align: left;
}

section { margin-bottom: 0.25rem; }

ul, ol {
  margin: 0.4rem 0 0.85rem 1.4rem;
  text-align: left;
}

li {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0.35rem;
}

.container a:not(.store-badge):not(.contact-button) {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.help-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ── Terms & Conditions tabs ── */
.tc-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  background: #f4f0fa;
  padding: 4px;
  border-radius: 12px;
  width: fit-content;
  border: none;
}

.nav-tab {
  background: none;
  border: none;
  text-decoration: none;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--muted);
  cursor: pointer;
  border-radius: 9px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--purple);
  background: rgba(255, 255, 255, 0.6);
}

.nav-tab.active {
  background: var(--white);
  color: var(--purple);
  box-shadow: 0 1px 6px rgba(63, 0, 122, 0.12);
}

.tc-section { display: none; }
.tc-section.active { display: block; }

/* ── FAQ ── */
.faq-section { margin-top: 4px; }

.faq-item { border-bottom: 1px solid var(--outline); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--heading);
  cursor: pointer;
  gap: 12px;
  user-select: none;
  text-align: left;
}
.faq-question:hover { color: var(--purple); }

.faq-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.22s ease;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--purple); }
.faq-item.open .faq-question { color: var(--purple); }

.faq-answer {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding-bottom 0.3s ease;
  padding-bottom: 0;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding-bottom: 16px;
}

/* ── Contact section ── */
.contact-section {
  margin-top: 40px;
  padding: 28px 32px;
  background: #f8f4ff;
  border-radius: 14px;
  text-align: center;
}

.contact-section p {
  text-align: center;
  margin-bottom: 16px;
}

.contact-button {
  display: inline-block;
  background: var(--purple);
  color: var(--white) !important;
  text-decoration: none !important;
  padding: 11px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-sans);
  transition: opacity 0.15s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.contact-button:hover { opacity: 0.86; transform: translateY(-1px); }

/* ── Site footer ── */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 24px 24px 32px;
  text-align: center;
}

.footer-nav {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 13px;
  font-weight: 700;
  color: var(--purple-soft);
  opacity: 0.85;
  transition: opacity 0.15s, color 0.15s;
}
.footer-nav a:hover { opacity: 1; color: var(--purple); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .navbar { left: 20px; right: 20px; }
  .container { padding: 40px 36px; }
}

/* ── Store badge images ── */
.store-badge-img {
  height: 36px;
  width: auto;
  display: block;
}

.store-badge-img-lg {
  height: 52px;
}

@media (max-width: 960px) {
  .store-badge-img { height: 32px; }
  .store-badge-img-lg { height: 44px; }
}

@media (max-width: 720px) {
  .store-badge-img-lg { height: 38px; }
}

/* ── Hamburger & Sidebar ── */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px;
  color: var(--heading);
  flex-shrink: 0;
  border-radius: 8px;
  transition: background 0.15s;
}
.hamburger:hover { background: rgba(0, 0, 0, 0.05); }

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.sidebar-overlay.open { opacity: 1; pointer-events: all; }

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  max-width: 85vw;
  height: 100%;
  background: #ffffff;
  z-index: 400;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 32px;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 32px rgba(60, 74, 91, 0.14);
}
.sidebar.open { transform: translateX(0); }

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.sidebar-logo { height: 26px; width: auto; }

.sidebar-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--muted);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.sidebar-close:hover { background: #f4f0fa; color: var(--purple); }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.sidebar-nav a {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  padding: 11px 12px;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.sidebar-nav a:hover,
.sidebar-nav a.active { background: #f4f0fa; color: var(--purple); }

.sidebar-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--outline);
}

body.sidebar-open { overflow: hidden; }

@media (max-width: 720px) {
  .hamburger { display: flex; margin-left: auto; }
}

@media (max-width: 720px) {
  .navbar {
    left: 12px; right: 12px;
    height: auto;
    padding: 12px 16px;
    border-radius: 20px;
    top: 12px;
  }
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .page-wrap { padding-top: 88px; padding-left: 12px; padding-right: 12px; }
  .container { padding: 28px 20px; border-radius: 16px; }
  .page-header h1 { font-size: 1.5rem; }
  .tc-nav { width: 100%; }
  .nav-tab { flex: 1; text-align: center; padding: 9px 12px; font-size: 11px; }
  .contact-section { padding: 24px 20px; }
}
