/* ============================================
   PRIVACY POLICY PAGE - Privacy policy page specific styles
   ============================================ */

/* Override background for privacy page */
html {
  background: #ffffff !important;
  scroll-behavior: smooth;
}

body {
  background: #1a1d2e !important;
}

body::before,
body::after {
  background: #1a1d2e !important;
  filter: none !important;
}

/* ==================== HERO SECTION ==================== */
.privacy-hero {
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.15) 0%, 
    rgba(118, 75, 162, 0.15) 50%,
    rgba(102, 126, 234, 0.15) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 0 0 30px 30px;
  padding: 2.5rem 0 3rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 2.7rem;
  box-shadow: 
    0 10px 40px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.privacy-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0 0 30px 30px;
  pointer-events: none;
  z-index: 2;
  background: 
    linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.4) 10%, rgba(125, 211, 252, 0.6) 50%, rgba(56, 189, 248, 0.4) 90%, transparent 100%) bottom / 100% 3px no-repeat,
    linear-gradient(0deg, transparent 0%, rgba(56, 189, 248, 0.4) 10%, rgba(125, 211, 252, 0.6) 50%, rgba(56, 189, 248, 0.4) 90%, transparent 100%) left / 3px 100% no-repeat,
    linear-gradient(0deg, transparent 0%, rgba(56, 189, 248, 0.4) 10%, rgba(125, 211, 252, 0.6) 50%, rgba(56, 189, 248, 0.4) 90%, transparent 100%) right / 3px 100% no-repeat;
  filter: blur(2px);
  animation: drawBorderGradient 5s ease-in-out infinite;
  opacity: 0;
}

@keyframes drawBorderGradient {
  0% {
    background-size: 0% 3px, 3px 0%, 3px 0%;
    opacity: 0;
  }
  15% { opacity: 1; }
  40% {
    background-size: 100% 3px, 3px 0%, 3px 0%;
    opacity: 1;
  }
  70% {
    background-size: 100% 3px, 3px 100%, 3px 100%;
    opacity: 1;
  }
  85% { opacity: 1; }
  100% {
    background-size: 100% 3px, 3px 100%, 3px 100%;
    opacity: 0;
  }
}

.privacy-hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, 
    #ffffff 0%, 
    #e0f2fe 15%,
    #bae6fd 30%,
    #7dd3fc 50%,
    #bae6fd 70%,
    #e0f2fe 85%,
    #ffffff 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: 
    titleEntrance 1s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    icyGradientFlow 6s ease infinite,
    icyShimmer 3s ease-in-out infinite;
  letter-spacing: 3px;
  filter: drop-shadow(0 0 15px rgba(186, 230, 253, 0.5))
          drop-shadow(0 0 25px rgba(224, 242, 254, 0.3))
          drop-shadow(0 5px 10px rgba(125, 211, 252, 0.2));
  text-shadow: 
    0 0 8px rgba(255, 255, 255, 0.4),
    0 0 15px rgba(186, 230, 253, 0.3),
    0 0 20px rgba(125, 211, 252, 0.2);
}

@keyframes titleEntrance {
  0% {
    opacity: 0;
    transform: translateY(-50px) scale(0.8) rotateX(-90deg);
  }
  60% {
    transform: translateY(10px) scale(1.05) rotateX(10deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
  }
}

@keyframes icyGradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes icyShimmer {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(186, 230, 253, 0.5))
            drop-shadow(0 0 25px rgba(224, 242, 254, 0.3))
            drop-shadow(0 5px 10px rgba(125, 211, 252, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6))
            drop-shadow(0 0 35px rgba(186, 230, 253, 0.5))
            drop-shadow(0 5px 12px rgba(125, 211, 252, 0.3));
  }
}

.privacy-hero__subtitle {
  font-size: 1.3rem;
  opacity: 1;
  position: relative;
  z-index: 1;
  color: #e0f2fe;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #e0f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
  text-shadow: 0 0 20px rgba(224, 242, 254, 0.5);
  filter: drop-shadow(0 2px 10px rgba(186, 230, 253, 0.3));
  letter-spacing: 0.5px;
  animation: subtitleEntrance 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both;
}

@keyframes subtitleEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    filter: blur(10px);
  }
  60% {
    transform: translateY(-5px) scale(1.02);
  }
  100% {
    opacity: 0.95;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Snowflakes */
.snowflakes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.snowflake {
  position: absolute;
  top: -10%;
  color: #fff;
  font-size: 1.5rem;
  text-shadow: 
    0 0 5px rgba(186, 230, 253, 0.4),
    0 0 10px rgba(224, 242, 254, 0.3),
    0 0 15px rgba(125, 211, 252, 0.2);
  animation: snowfall linear infinite;
  opacity: 0;
}

@keyframes snowfall {
  0% { top: -10%; opacity: 0; }
  10% { opacity: 0.25; }
  90% { opacity: 0.25; }
  100% { top: 110%; opacity: 0; }
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; font-size: 1.2rem; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 10s; animation-delay: 1s; font-size: 1.8rem; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 7s; animation-delay: 2s; font-size: 1.4rem; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 9s; animation-delay: 0.5s; font-size: 1.6rem; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 11s; animation-delay: 1.5s; font-size: 1.3rem; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 8.5s; animation-delay: 2.5s; font-size: 1.7rem; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 9.5s; animation-delay: 0.8s; font-size: 1.5rem; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 10.5s; animation-delay: 1.8s; font-size: 1.4rem; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 7.5s; animation-delay: 2.2s; font-size: 1.6rem; }
.snowflake:nth-child(10) { left: 15%; animation-duration: 9.8s; animation-delay: 3s; font-size: 1.3rem; }

/* ==================== CONTENT ==================== */
.privacy-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.privacy-section {
  margin-bottom: 3rem;
  background: rgba(15, 26, 58, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInSection 0.6s ease forwards;
}

@keyframes fadeInSection {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.privacy-section:nth-child(1) { animation-delay: 0.1s; }
.privacy-section:nth-child(2) { animation-delay: 0.2s; }
.privacy-section:nth-child(3) { animation-delay: 0.3s; }
.privacy-section:nth-child(4) { animation-delay: 0.4s; }
.privacy-section:nth-child(5) { animation-delay: 0.5s; }
.privacy-section:nth-child(6) { animation-delay: 0.6s; }
.privacy-section:nth-child(7) { animation-delay: 0.7s; }
.privacy-section:nth-child(8) { animation-delay: 0.8s; }
.privacy-section:nth-child(9) { animation-delay: 0.9s; }
.privacy-section:nth-child(10) { animation-delay: 1s; }
.privacy-section:nth-child(11) { animation-delay: 1.1s; }
.privacy-section:nth-child(12) { animation-delay: 1.2s; }

.privacy-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.3);
}

.privacy-section__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.privacy-section__icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.privacy-section__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.privacy-section:hover .privacy-section__icon {
  transform: scale(1.15);
}

.privacy-section__content {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.privacy-section__content p {
  margin-bottom: 1rem;
}

.privacy-section__content ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.privacy-section__content li {
  margin-bottom: 0.5rem;
  position: relative;
}

.privacy-section__content li::marker {
  color: var(--primary);
}

.privacy-section__content strong {
  color: var(--text);
  font-weight: 600;
}

/* ==================== LAST UPDATED ==================== */
.last-updated {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 2rem;
  padding: 1.2rem;
  background: rgba(15, 26, 58, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInSection 0.6s ease both;
}

.last-updated i {
  color: var(--primary);
  margin-right: 0.5rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ==================== CONTACT BOX ==================== */
.contact-box {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
  backdrop-filter: blur(10px);
  color: white;
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  margin-top: 3rem;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  animation: fadeInSection 0.6s ease 1.3s both;
}

.contact-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.contact-box h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.contact-box p {
  margin-bottom: 1rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.contact-box a {
  color: white;
  text-decoration: underline;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.contact-box a:hover {
  text-decoration: none;
  transform: scale(1.05);
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.contact-icon {
  animation: bounceIcon 2s ease-in-out infinite;
  display: inline-block;
}

.contact-icon img {
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

@keyframes bounceIcon {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
  }
}

/* ==================== SCROLL TO TOP ==================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.6);
}

.scroll-to-top i {
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .privacy-hero {
    padding: 2rem 0 2rem;
    border-radius: 0 0 20px 20px;
  }

  .privacy-hero__title {
    font-size: 2.5rem;
    letter-spacing: 1px;
  }

  .privacy-hero__subtitle {
    font-size: 1.1rem;
  }

  .snowflake {
    font-size: 1rem;
  }

  .privacy-content {
    padding: 2rem 1rem;
  }

  .privacy-section {
    padding: 1.5rem;
  }

  .privacy-section__title {
    font-size: 1.3rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .privacy-section__icon {
    width: 60px;
    height: 60px;
  }

  .privacy-section__content {
    font-size: 0.95rem;
  }

  .contact-box {
    padding: 2rem 1.5rem;
  }

  .contact-box h3 {
    font-size: 1.5rem;
  }
}
