:root {
  color-scheme: light;
  --bg: #f4f2ef;
  --bg-accent: #e8e4df;
  --text: #121212;
  --muted: #6b6b6b;
  --card: #ffffff;
  --border: #dedad6;
  --accent: #1e63ff;
  --accent-soft: #dce7ff;
  --shadow: 0 18px 45px rgba(20, 20, 20, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 10%, #ffffff 0%, var(--bg) 52%, var(--bg-accent) 100%);
  min-height: 100vh;
}

body.legal {
  background: #ffffff;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.4;
  filter: blur(0px);
}

body::before {
  top: -140px;
  right: -120px;
  background: radial-gradient(circle, #d8e6ff, transparent 70%);
}

body::after {
  bottom: -160px;
  left: -120px;
  background: radial-gradient(circle, #ffe6c7, transparent 70%);
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}

.hero {
  text-align: center;
  margin-bottom: 64px;
}

.logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
}

.logo svg {
  width: 100%;
  height: 100%;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  margin: 0 0 12px;
}

.hero p {
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #111111;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 12px 25px rgba(10, 10, 10, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(10, 10, 10, 0.22);
}

.store-btn .icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
}

.store-btn .icon svg {
  width: 100%;
  height: 100%;
}

.store-btn .label {
  display: flex;
  flex-direction: column;
  font-size: 0.65rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.store-btn .label strong {
  font-size: 0.95rem;
  text-transform: none;
}

.steps {
  margin: 0 0 80px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  text-align: center;
}

.step-num {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
}

.phone {
  width: 200px;
  height: 360px;
  margin: 18px auto 20px;
  border-radius: 32px;
  background: #0c0c0c;
  padding: 10px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  border-radius: 12px;
  background: #111111;
}

.phone-screen {
  border-radius: 22px;
  background: #f6f7fb;
  height: 100%;
  padding: 32px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.phone-screen.gradient {
  background: linear-gradient(145deg, #f2b7d4, #7d74f8);
  color: #ffffff;
}

.phone-screen.ocean {
  background: linear-gradient(180deg, #9ad9ff, #1b64d1);
  color: #ffffff;
}

.screen-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5c6ea8;
}

.gradient .screen-title,
.ocean .screen-title {
  color: rgba(255, 255, 255, 0.8);
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  background: #ffffff;
  border: 1px solid #d8e0f5;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list-item span {
  font-weight: 400;
  color: #6f7ea8;
  font-size: 0.75rem;
}

.screen-time {
  font-size: 2.4rem;
  font-family: "Space Grotesk", sans-serif;
  margin-top: 6px;
}

.alert {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.alert-badge {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.85);
  color: #1f2b46;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
}

.price-pill {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.95);
  color: #1f2b46;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  align-self: center;
}

.screen-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq {
  text-align: center;
  margin-bottom: 72px;
}

.faq h2 {
  margin-bottom: 8px;
}

.faq .sub {
  color: var(--muted);
  margin-bottom: 28px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.faq-list summary {
  list-style: none;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-list summary::after {
  content: "+";
  font-size: 1.1rem;
  color: var(--muted);
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  color: var(--muted);
  margin: 12px 0 0;
}

.support {
  display: flex;
  justify-content: center;
}

.site-footer {
  margin-top: 80px;
  padding: 32px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

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

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

.footer-social {
  display: flex;
  gap: 16px;
  color: #8b8b8b;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
  color: var(--text);
  border-color: #c7c2bd;
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.support-card {
  background: #ebe8e4;
  border-radius: 22px;
  padding: 32px 28px;
  max-width: 560px;
  text-align: center;
  border: 1px solid #d8d2cc;
  box-shadow: var(--shadow);
}

.avatars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.avatars span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e5e1dc;
}

.support-card h3 {
  margin: 8px 0;
}

.support-card p {
  color: var(--muted);
  margin: 0 0 20px;
}

.support-btn {
  background: #111111;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.header-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.header-nav {
  display: flex;
  gap: 16px;
  font-size: 0.95rem;
}

.header-nav a {
  color: var(--text);
  text-decoration: none;
}

.header-nav a:hover {
  color: #2a2a2a;
}

.download-btn {
  background: #111111;
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.legal-hero {
  text-align: center;
  margin: 40px 0 24px;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.legal-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: var(--shadow);
}

.legal-card h2 {
  margin: 20px 0 10px;
  font-size: 1.2rem;
}

.legal-card h3 {
  margin: 16px 0 8px;
  font-size: 1rem;
}

.legal-card p {
  color: #4f4f4f;
  line-height: 1.6;
}

.legal-card ul {
  margin: 8px 0 16px 18px;
  padding: 0;
  color: #4f4f4f;
}

.legal-card li {
  margin-bottom: 6px;
}

.legal-muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.8s ease forwards;
}

.step-card:nth-child(1) {
  animation-delay: 0.1s;
}

.step-card:nth-child(2) {
  animation-delay: 0.2s;
}

.step-card:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .step-card {
    text-align: center;
  }

  .phone {
    width: 190px;
    height: 340px;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 40px 18px 72px;
  }

  .cta-row {
    flex-direction: column;
  }

  .store-btn {
    width: 100%;
    justify-content: center;
  }

  .phone {
    width: 170px;
    height: 320px;
  }

  .support-card {
    padding: 28px 20px;
  }

  .site-footer {
    margin-top: 56px;
    align-items: flex-start;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-nav {
    flex-wrap: wrap;
  }
}
