/* ══════════════════════════════════════════════════════════════════
   Red Galaxy — Privacy Policy Page Styles
   ══════════════════════════════════════════════════════════════════ */

/* ── Privacy Page Layout ───────────────────────────────────────── */
.privacy-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ── Hero Section ──────────────────────────────────────────────── */
.privacy-hero {
  position: relative;
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 60px;
  overflow: hidden;
}

.privacy-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(200, 48, 32, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(200, 48, 32, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.privacy-hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.privacy-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-accent);
  background: rgba(224, 80, 48, 0.1);
  border: 1px solid rgba(224, 80, 48, 0.25);
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(224, 80, 48, 0.1);
  }
  50% {
    box-shadow: 0 0 20px rgba(224, 80, 48, 0.25);
  }
}

.privacy-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 12px;
  text-shadow: 0 0 40px rgba(220, 60, 30, 0.3);
}

.privacy-effective {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.privacy-hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg-deep));
  pointer-events: none;
}

/* ── Content Container ─────────────────────────────────────────── */
.privacy-content {
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 80px;
}

/* ── Policy Section ────────────────────────────────────────────── */
.policy-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px 40px;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.policy-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(200, 48, 32, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.policy-section:hover {
  border-color: var(--border-glow);
  box-shadow: 0 4px 30px rgba(200, 48, 32, 0.08);
}

.policy-section:hover::before {
  opacity: 1;
}

/* ── Section Header ────────────────────────────────────────────── */
.policy-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.policy-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.policy-section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 700;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
}

/* ── Text Content ──────────────────────────────────────────────── */
.policy-section p,
.policy-intro {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.88;
  margin-bottom: 16px;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-intro {
  font-size: 1.05rem;
  line-height: 1.85;
}

.policy-intro strong {
  color: var(--text-glow);
  font-weight: 600;
}

/* ── Lists ─────────────────────────────────────────────────────── */
.policy-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
}

.policy-subheading {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 22px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(200, 48, 32, 0.18);
  letter-spacing: 0.01em;
}

.policy-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  color: var(--text-primary);
  font-size: 0.93rem;
  line-height: 1.7;
  opacity: 0.88;
  border-bottom: 1px solid rgba(160, 40, 20, 0.08);
  transition: background 0.2s ease;
}

.policy-list li:last-child {
  border-bottom: none;
}

.policy-list li:hover {
  background: rgba(200, 48, 32, 0.04);
}

.list-marker {
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--text-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(220, 60, 30, 0.4);
}

/* ── Notice Boxes ──────────────────────────────────────────────── */
.policy-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(14, 6, 4, 0.5);
  border: 1px solid rgba(160, 40, 20, 0.15);
  border-left: 3px solid var(--text-accent);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 16px 0;
}

.notice-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.policy-notice p {
  margin: 0 !important;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ── Links ─────────────────────────────────────────────────────── */
.policy-link {
  color: var(--text-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 80, 48, 0.3);
  transition: all 0.3s ease;
}

.policy-link:hover {
  color: var(--text-glow);
  border-bottom-color: var(--text-glow);
  text-shadow: 0 0 10px rgba(255, 144, 112, 0.3);
}

/* ── Third Party Card ──────────────────────────────────────────── */
.third-party-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 6, 4, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 20px;
  margin: 12px 0 20px;
  transition: all 0.35s ease;
}

.third-party-card:hover {
  border-color: var(--border-glow);
  background: rgba(35, 12, 8, 0.7);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(200, 48, 32, 0.1);
}

.third-party-card svg {
  color: var(--text-secondary);
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.third-party-card:hover svg {
  color: var(--text-glow);
}

.third-party-card a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.third-party-card:hover a {
  color: var(--text-glow);
}

.external-link-icon {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.third-party-card:hover .external-link-icon {
  color: var(--text-accent);
  transform: translate(2px, -2px);
}

/* ── Highlight Text ────────────────────────────────────────────── */
.policy-highlight {
  background: rgba(224, 80, 48, 0.08);
  border: 1px solid rgba(224, 80, 48, 0.15);
  border-radius: 8px;
  padding: 12px 18px;
  margin-top: 12px;
}

.policy-highlight strong {
  color: var(--text-accent);
}

/* ── Contact Section ───────────────────────────────────────────── */
.policy-section-contact {
  text-align: center;
  border-color: rgba(200, 48, 32, 0.35);
  background:
    linear-gradient(135deg, rgba(200, 48, 32, 0.06) 0%, transparent 50%),
    var(--bg-card);
}

.policy-section-contact .policy-section-header {
  justify-content: center;
}

.contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 32px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--text-white);
  text-decoration: none;
  background: linear-gradient(135deg, #c83020, #a01810);
  border: 1px solid rgba(200, 48, 32, 0.6);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(200, 48, 32, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.contact-email-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-email-btn:hover {
  background: linear-gradient(135deg, #e04030, #c83020);
  box-shadow: 0 6px 36px rgba(220, 60, 30, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.contact-email-btn:hover::before {
  opacity: 1;
}

.email-icon {
  font-size: 1.1rem;
}

/* ── Generator Credit ──────────────────────────────────────────── */
.policy-credit {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-ui);
  padding: 24px 0 0;
  border-top: 1px solid rgba(160, 40, 20, 0.1);
  margin-top: 16px;
  opacity: 0.6;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — PRIVACY PAGE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .privacy-hero {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 40px;
  }

  .privacy-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    letter-spacing: 2px;
  }

  .policy-section {
    padding: 24px 20px;
    border-radius: 12px;
    margin-bottom: 16px;
  }

  .policy-section-header h2 {
    font-size: 0.85rem;
  }

  .policy-list li {
    padding-left: 22px;
    font-size: 0.88rem;
  }

  .list-marker {
    width: 6px;
    height: 6px;
    top: 15px;
  }

  .third-party-card {
    padding: 10px 14px;
  }

  .contact-email-btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .privacy-badge {
    font-size: 0.6rem;
    letter-spacing: 2px;
    padding: 5px 14px;
  }

  .policy-section {
    padding: 20px 16px;
  }

  .policy-section-header {
    gap: 10px;
  }

  .policy-icon {
    font-size: 1.2rem;
  }

  .policy-notice {
    flex-direction: column;
    gap: 8px;
  }
}
