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

:root {
  --bg-dark: #0d0825;
  --text-white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --header-height: 70px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-white);
  overflow-x: hidden;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo a {
  display: block;
}

.header-logo img {
  height: 50px;
  width: auto;
  display: block;
}

/* ===== MAIN CONTENT ===== */
main {
  padding-top: var(--header-height);
}

/* ===== SECTIONS ===== */
.page-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.section-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.section-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 10vw 4vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ===== GOOGLE PLAY BADGE ===== */
.google-play-badge {
  display: flex;
  justify-content: center;
  align-items: center;
}

.google-play-badge a {
  display: inline-block;
}

.google-play-badge img {
  height: 80px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}

.google-play-badge a:hover img {
  opacity: 0.85;
}

/* ===== FOOTER ===== */
footer {
  background-color: #0d0825;
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-badge {
  margin-bottom: 20px;
}

.footer-badge img {
  height: 64px;
  width: auto;
  display: block;
  margin: 0 auto;
  transition: opacity 0.2s;
}

.footer-badge a:hover img {
  opacity: 0.85;
}

.footer-company {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-white);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.footer-email {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-email a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-email a:hover {
  color: var(--text-white);
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-white);
}

/* ===== INNER PAGES (Terms / Privacy) ===== */
.inner-page {
  min-height: 100vh;
  padding: calc(var(--header-height) + 60px) 24px 80px;
  background-color: var(--bg-dark);
}

.inner-page-content {
  max-width: 800px;
  margin: 0 auto;
}

.inner-page h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-white);
}

.inner-page h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--text-white);
}

.inner-page p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.inner-page ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.inner-page ul li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.inner-page a {
  color: #a78bfa;
  text-decoration: none;
}

.inner-page a:hover {
  text-decoration: underline;
}

.inner-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.inner-page table th,
.inner-page table td {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 14px;
  vertical-align: top;
  text-align: left;
  line-height: 1.7;
  color: var(--text-muted);
}

.inner-page table th {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-white);
  font-weight: 600;
}

.inner-page table td strong {
  color: var(--text-white);
}

.inner-page table ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.inner-page table ul li {
  margin-bottom: 4px;
}

.inner-page .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
}

.inner-page .table-scroll table {
  margin: 0;
  min-width: 720px;
}

.inner-page-image {
  margin: 32px 0;
}

.inner-page-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Compact section — auto height for badge-only rows */
.page-section--compact {
  min-height: auto;
}

.page-section--compact .section-content {
  padding: 40px 4vw;
  justify-content: center;
}

/* Badge pushed to bottom of section (kept for reference, replaced by compact) */
.section-content--badge-bottom {
  justify-content: center;
  padding-bottom: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  :root {
    --header-height: 56px;
  }

  .header-logo img {
    height: 30px;
  }

  .google-play-badge img {
    height: 64px;
  }

  .inner-page h1 {
    font-size: 26px;
  }

  .inner-page h2 {
    font-size: 18px;
  }
}
