:root {
  --bg: #0d0618;
  --bg-secondary: #160824;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-hover: rgba(255, 255, 255, 0.085);
  --border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.66);
  --purple: #9b4dff;
  --pink: #f04bc8;
  --magenta: #d946ef;
  --max-width: 820px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(155, 77, 255, 0.26), transparent 38%),
    radial-gradient(circle at 90% 35%, rgba(240, 75, 200, 0.1), transparent 30%),
    linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg) 65%);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(217, 70, 239, 0.07), transparent 24%),
    radial-gradient(circle at 80% 80%, rgba(155, 77, 255, 0.06), transparent 25%);
}

a {
  color: inherit;
}

.container {
  position: relative;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 90px 0 40px;
}

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

/* Real App Store icon */

.app-icon {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 26px;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 50px rgba(155, 77, 255, 0.28),
    0 0 28px rgba(240, 75, 200, 0.12);
}

.eyebrow {
  margin: 0 0 14px;
  color: #d49aff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  background: linear-gradient(
    100deg,
    #ffffff 20%,
    #e6c8ff 55%,
    #ff9be7
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 18px 0 0;
  font-size: 19px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.description {
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}

.legal-grid {
  display: grid;
  gap: 16px;
}

.legal-card {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 24px;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.legal-card:hover {
  transform: translateY(-2px);
  background: var(--surface-hover);
  border-color: rgba(202, 116, 255, 0.3);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  font-size: 23px;
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(155, 77, 255, 0.22),
    rgba(240, 75, 200, 0.15)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-card h2 {
  margin: 0 0 7px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.legal-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.arrow {
  color: #d58aff;
  font-size: 24px;
  transition: transform 0.2s ease;
}

.legal-card:hover .arrow {
  transform: translateX(3px);
}

.privacy-highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid rgba(155, 77, 255, 0.18);
  border-radius: 18px;
  background: rgba(155, 77, 255, 0.07);
}

.status-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: #cf65ff;
  box-shadow: 0 0 14px rgba(207, 101, 255, 0.8);
}

.privacy-highlight strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.privacy-highlight p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

footer {
  margin-top: 64px;
  padding-top: 26px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
}

footer p {
  margin: 0 0 9px;
}

footer a {
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
}

footer a:hover {
  color: #d999ff;
}

/* Legal document pages */

.legal-page {
  max-width: 760px;
}

.legal-header {
  margin-bottom: 42px;
}

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: #cf8cff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  color: #efa6ff;
}

.legal-header h1 {
  font-size: clamp(36px, 6vw, 52px);
}

.updated {
  margin-top: 15px;
  color: var(--text-secondary);
  font-size: 14px;
}

.legal-content {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.legal-content h2 {
  margin: 38px 0 12px;
  color: #ffffff;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.75;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content strong {
  color: rgba(255, 255, 255, 0.9);
}

.legal-content a {
  color: #d58aff;
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* Mobile */

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
    padding-top: 58px;
  }

  .hero {
    margin-bottom: 40px;
  }

  .app-icon {
    width: 92px;
    height: 92px;
    margin-bottom: 22px;
    border-radius: 22px;
  }

  .legal-card {
    grid-template-columns: 48px 1fr auto;
    gap: 14px;
    padding: 19px;
    border-radius: 19px;
  }

  .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .legal-card h2 {
    font-size: 17px;
  }

  .legal-card p {
    font-size: 13px;
  }

  .legal-content {
    padding: 22px 19px;
    border-radius: 20px;
  }

  footer {
    margin-top: 48px;
  }
}
