:root {
  --bg: #eef3f8;
  --surface: #ffffff;
  --text: #111827;
  --muted: #647083;
  --faint: #8b96a8;
  --line: #d8e0ea;
  --primary: #1264d8;
  --primary-soft: #e7f0ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 24px;
}

.hero {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  max-width: 1180px;
  padding: 28px;
  width: 100%;
}

.hero-copy {
  flex: 1 1 520px;
  min-width: 0;
}

.badge {
  background: var(--primary-soft);
  border-radius: 999px;
  color: var(--primary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  margin: 0 0 14px;
  padding: 7px 12px;
}

.logo {
  border-radius: 24px;
  display: block;
  height: 92px;
  margin-bottom: 18px;
  object-fit: cover;
  width: 92px;
}

h1 {
  color: var(--text);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0;
  max-width: 660px;
}

.lead {
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.75;
  margin: 14px 0 0;
  max-width: 720px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.store-button {
  background: var(--primary);
  border-radius: 16px;
  color: #ffffff;
  display: inline-flex;
  flex-direction: column;
  min-width: 190px;
  padding: 14px 18px;
  text-decoration: none;
}

.store-button.disabled {
  background: #d9e3ee;
  color: var(--muted);
  cursor: default;
}

.store-button strong {
  font-size: 15px;
  font-weight: 900;
}

.store-button small {
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  margin-top: 4px;
}

.admin-link {
  color: var(--primary);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  margin-top: 16px;
  text-decoration: underline;
}

.phone-preview {
  background: var(--primary);
  border-radius: 30px;
  flex: 1 1 300px;
  max-width: 380px;
  min-width: 280px;
  padding: 18px;
}

.phone-top {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  height: 5px;
  margin: 0 auto 18px;
  width: 76px;
}

.phone-card {
  background: #ffffff;
  border-radius: 18px;
  margin-bottom: 12px;
  padding: 16px;
}

.phone-card.compact {
  margin-bottom: 0;
}

.phone-card p {
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  margin: 0 0 8px;
}

.phone-card strong {
  color: var(--text);
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.phone-card span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  margin-top: 8px;
}

.features {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  max-width: 1180px;
  width: 100%;
}

.features article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}

.features h2 {
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  margin: 0;
}

.features p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  margin: 8px 0 0;
}

@media (max-width: 860px) {
  .page {
    padding: 16px;
  }

  .hero {
    border-radius: 22px;
    padding: 22px;
  }

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

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

  .store-button {
    width: 100%;
  }

  .phone-preview {
    max-width: none;
    width: 100%;
  }
}

.legal-page {
  min-height: 100vh;
  padding: 32px 20px;
}

.legal-hero,
.legal-doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  margin: 0 auto;
  max-width: 980px;
  padding: 28px;
}

.legal-logo {
  border-radius: 18px;
  height: 72px;
  margin-bottom: 16px;
  width: 72px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.legal-links a,
.back-link {
  background: var(--primary-soft);
  border-radius: 12px;
  color: var(--primary);
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  padding: 10px 12px;
  text-decoration: none;
}

.legal-doc h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 8px;
}

.updated {
  color: var(--faint);
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 22px;
}

.legal-doc h2 {
  border-top: 1px solid var(--line);
  font-size: 20px;
  margin: 28px 0 10px;
  padding-top: 22px;
}

.legal-doc p,
.legal-doc li {
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.8;
}

.legal-doc table {
  border-collapse: collapse;
  margin-top: 18px;
  width: 100%;
}

.legal-doc th,
.legal-doc td {
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.legal-doc th {
  background: var(--primary-soft);
  color: var(--text);
  width: 28%;
}

@media (max-width: 560px) {
  .legal-hero,
  .legal-doc {
    border-radius: 16px;
    padding: 20px;
  }

  .legal-doc th,
  .legal-doc td {
    display: block;
    width: 100%;
  }
}
