/* ═══════════════════════════════════════════════
   weBump — Privacy Policy Page
   ═══════════════════════════════════════════════ */

/* ── Scrollable shell ──────────────────────── */
.onboarding-screen.privacy-shell {
  padding:
    calc(var(--viewport-bleed) + max(36px, env(safe-area-inset-top)))
    max(18px, env(safe-area-inset-right))
    calc(var(--viewport-bleed) + max(36px, env(safe-area-inset-bottom)))
    max(18px, env(safe-area-inset-left)) !important;
}

/* ── Privacy card ──────────────────────────── */
.privacy-card {
  position: relative;
  z-index: 10;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 52px) clamp(24px, 5vw, 44px);
  background:
    radial-gradient(circle at 86% 8%, color-mix(in srgb, var(--accent-blue) 12%, transparent), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--section-glass-strong) 92%, #ffffff 8%), var(--section-glass)),
    var(--section-glass-strong);
  border: 1px solid var(--section-border);
  border-radius: 32px;
  box-shadow: 0 28px 82px var(--section-shadow);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  color: var(--section-text);

  /* Fade-in entrance */
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  animation: privacy-card-in 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes privacy-card-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── App icon ──────────────────────────────── */
.privacy-app-icon-wrap {
  display: block;
  margin: 0 auto clamp(18px, 3.5vw, 26px);
  text-align: center;
}

.privacy-app-icon {
  display: block;
  width: clamp(72px, 18vw, 96px);
  height: auto;
  margin: 0 auto;
  border-radius: 26%;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.32) inset;
  transform: rotate(-2deg);
}

/* ── Typography & Structure ────────────────── */
.privacy-kicker {
  color: var(--accent-blue);
  font-size: clamp(0.72rem, 1.7vw, 0.84rem);
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 7px;
  text-align: center;
}

.privacy-title {
  color: var(--section-text);
  font-size: clamp(2.05rem, 6.5vw, 3.15rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: clamp(10px, 2.5vw, 14px);
  text-align: center;
}

.privacy-subtitle {
  color: var(--section-muted);
  font-size: clamp(0.93rem, 2.2vw, 1.04rem);
  font-weight: 740;
  line-height: 1.4;
  margin: 0 auto clamp(24px, 4.5vw, 34px);
  text-align: center;
}

.privacy-content {
  margin-top: 32px;
  text-align: left;
}

.privacy-intro {
  font-size: clamp(1.02rem, 2.2vw, 1.15rem);
  font-weight: 740;
  line-height: 1.55;
  color: var(--section-text);
  margin-bottom: 32px;
  opacity: 0.95;
}

.privacy-divider {
  height: 1px;
  background: var(--section-border);
  border: none;
  margin: 32px 0;
}

.privacy-section {
  margin-bottom: clamp(32px, 6vw, 44px);
}

.privacy-section-title {
  color: var(--section-text);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 950;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.015em;
}

.privacy-subsection-title {
  color: var(--section-text);
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  font-weight: 900;
  margin-top: 24px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.privacy-paragraph {
  color: var(--section-muted);
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  font-weight: 650;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* List Styling */
.privacy-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 18px;
}

.privacy-list-item {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--section-muted);
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  font-weight: 650;
  line-height: 1.48;
}

.privacy-list-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue);
}

.privacy-list-item strong {
  color: var(--section-text);
  font-weight: 850;
}

/* Callout Styling */
.privacy-callout {
  margin: 24px 0;
  padding: 18px 22px;
  background: color-mix(in srgb, var(--accent-blue) 6%, var(--section-glass-strong));
  border-left: 4px solid var(--accent-blue);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
}

.privacy-callout p {
  color: var(--section-text);
  font-size: clamp(0.9rem, 2vw, 1.02rem);
  font-weight: 750;
  line-height: 1.45;
  margin: 0;
}

.privacy-callout--warning {
  background: color-mix(in srgb, var(--accent-orange) 6%, var(--section-glass-strong));
  border-left-color: var(--accent-orange);
}

.privacy-callout--danger {
  background: color-mix(in srgb, var(--accent-pink) 6%, var(--section-glass-strong));
  border-left-color: var(--accent-pink);
}

.privacy-email-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 850;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.privacy-email-link:hover {
  color: color-mix(in srgb, var(--accent-blue) 80%, #ffffff);
  text-decoration: underline;
  text-underline-offset: 3px;
}

code {
  font-family: ui-monospace, SFMono-Regular, SF Pro Text, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--section-text);
}

/* ── Footer note ───────────────────────────── */
.privacy-footer-note {
  max-width: 380px;
  margin: clamp(24px, 4.5vw, 38px) auto 0;
  color: var(--section-muted);
  font-size: clamp(0.78rem, 1.8vw, 0.86rem);
  font-weight: 740;
  line-height: 1.42;
  text-align: center;
}

.privacy-footer-note a {
  color: var(--accent-blue);
  font-weight: 850;
  text-decoration: none;
  transition: color 0.2s ease;
}

.privacy-footer-note a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Dark mode overrides ───────────────────── */
@media (prefers-color-scheme: dark) {
  .privacy-card {
    background:
      radial-gradient(circle at 86% 8%, color-mix(in srgb, var(--accent-pink) 10%, transparent), transparent 34%),
      linear-gradient(145deg, color-mix(in srgb, var(--section-glass-strong) 92%, #000000 8%), var(--section-glass)),
      var(--section-glass-strong);
  }

  .privacy-app-icon {
    box-shadow:
      0 18px 48px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  }

  .privacy-kicker {
    color: var(--accent-pink);
  }

  .privacy-list-item::before {
    background-color: var(--accent-pink);
    box-shadow: 0 0 8px var(--accent-pink);
  }

  .privacy-callout {
    background: color-mix(in srgb, var(--accent-pink) 6%, var(--section-glass-strong));
    border-left-color: var(--accent-pink);
  }

  .privacy-callout--warning {
    background: color-mix(in srgb, var(--accent-orange) 6%, var(--section-glass-strong));
    border-left-color: var(--accent-orange);
  }

  .privacy-email-link {
    color: var(--accent-pink);
  }

  .privacy-email-link:hover {
    color: color-mix(in srgb, var(--accent-pink) 80%, #ffffff);
  }

  .privacy-footer-note a {
    color: var(--accent-pink);
  }

  code {
    background: rgba(255, 255, 255, 0.08);
  }
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 768px) {
  .onboarding-screen.privacy-shell {
    padding:
      calc(var(--viewport-bleed) + max(24px, env(safe-area-inset-top)))
      max(14px, env(safe-area-inset-right))
      calc(var(--viewport-bleed) + max(24px, env(safe-area-inset-bottom)))
      max(14px, env(safe-area-inset-left)) !important;
  }

  .privacy-card {
    padding: clamp(20px, 4vw, 32px) clamp(16px, 3.5vw, 24px);
    border-radius: 24px;
  }
}

/* ── Reduced motion ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .privacy-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
