/**
 * Privacy Policy Page - Optimized Styles (Conflict-Free)
 * ErosVault - Clean, minimal, and performance-optimized
 * Version: 3.0 - Removes all CSS variable conflicts
 */

/* ===================== Privacy-Specific Variables ===================== */
/* Using prefixed names to avoid conflicts with global CSS */
.privacy-page {
  --priv-primary: #00ffff;
  --priv-primary-rgb: 0, 255, 255;
  --priv-secondary: #ff00ff;
  --priv-accent: #ffe066;
  --priv-text: #ffffff;
  --priv-text-dim: #e0e0e0;
  --priv-text-muted: #aaaaaa;
  --priv-bg: rgba(0, 0, 0, 0.4);
  --priv-bg-card: rgba(0, 255, 255, 0.03);
  --priv-border: rgba(0, 255, 255, 0.15);
  --priv-border-mid: rgba(0, 255, 255, 0.25);
  --priv-border-strong: rgba(0, 255, 255, 0.4);
  --priv-shadow: 0 4px 16px rgba(0, 255, 255, 0.15);
  --priv-glow: 0 0 20px rgba(0, 255, 255, 0.3);
}

/* ===================== Privacy Page Container ===================== */
.privacy-page {
  max-width: 1200px;
  margin: 90px auto 40px;
  padding: 40px;
  background: var(--priv-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: 20px;
  border: 1px solid var(--priv-border-mid);
  box-shadow: var(--priv-shadow), var(--priv-glow);
  animation: fadeInUp 0.6s ease;
  min-height: calc(100vh - 200px);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================== Introduction Section ===================== */
.privacy-intro {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  border-bottom: 2px solid var(--priv-border);
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.privacy-intro h1 {
  background: linear-gradient(135deg, var(--priv-primary), #33ffff, var(--priv-primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 15px rgba(var(--priv-primary-rgb), 0.8));
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.privacy-lead {
  color: var(--priv-text-dim);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  font-weight: 500;
}

.privacy-lead strong {
  color: var(--priv-primary);
  font-weight: 700;
}

.privacy-update {
  color: var(--priv-text-muted);
  font-size: 0.95rem;
  font-style: italic;
  margin-top: 1rem;
}

.privacy-update strong {
  color: var(--priv-accent);
  font-weight: 600;
}

/* ===================== Section Styling ===================== */
.privacy-section {
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--priv-bg-card);
  border: 1px solid var(--priv-border);
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.privacy-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--priv-primary-rgb), 0.05), transparent);
  transition: left 0.6s ease;
}

.privacy-section:hover::before {
  left: 100%;
}

.privacy-section:hover {
  border-color: var(--priv-border-mid);
  box-shadow: var(--priv-shadow);
  transform: translateY(-2px);
}

/* Section Icon */
.section-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  filter: drop-shadow(0 0 10px rgba(var(--priv-primary-rgb), 0.6));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Section Titles */
.privacy-section h2 {
  color: var(--priv-primary);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 4px solid var(--priv-primary);
  filter: drop-shadow(0 0 8px rgba(var(--priv-primary-rgb), 0.4));
}

.privacy-section h2::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(180deg, var(--priv-primary), transparent);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Section Content */
.section-content {
  position: relative;
  z-index: 1;
}

.section-content h3 {
  color: #33ffff;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  margin: 1.5rem 0 1rem;
  padding-left: 0.8rem;
  border-left: 3px solid rgba(var(--priv-primary-rgb), 0.5);
}

.section-content p {
  color: var(--priv-text-dim);
  line-height: 1.9;
  margin-bottom: 1.2rem;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

.section-content ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.section-content ul li {
  color: var(--priv-text-dim);
  line-height: 2;
  padding: 0.6rem 0 0.6rem 2rem;
  position: relative;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  transition: all 0.2s ease;
}

.section-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.6rem;
  color: var(--priv-primary);
  font-weight: 900;
  font-size: 1.3rem;
  animation: checkFade 0.5s ease;
}

@keyframes checkFade {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

.section-content ul li:hover {
  padding-left: 2.5rem;
  color: var(--priv-text);
}

.section-content ul li strong {
  color: var(--priv-primary);
  font-weight: 700;
}

/* ===================== Alert Box ===================== */
.alert-box {
  background: rgba(255, 179, 0, 0.08);
  border: 2px solid rgba(255, 179, 0, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
}

.alert-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #ffb300, transparent);
  animation: pulseGlow 2s ease infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 179, 0, 0.6); }
  50% { box-shadow: 0 0 20px rgba(255, 179, 0, 0.8); }
}

.alert-box strong {
  color: #ffb300;
  font-weight: 800;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 6px rgba(255, 179, 0, 0.5));
}

.alert-box p {
  color: var(--priv-text-dim);
  margin: 0;
}

/* ===================== Contact Section ===================== */
.privacy-contact {
  margin: 3rem 0 2rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(var(--priv-primary-rgb), 0.05), rgba(255, 0, 255, 0.05));
  border: 2px solid var(--priv-border-mid);
  border-radius: 16px;
  text-align: center;
}

.privacy-contact h2 {
  color: var(--priv-primary);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 12px rgba(var(--priv-primary-rgb), 0.6));
}

.contact-content p {
  color: var(--priv-text-dim);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

.contact-methods {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(135deg, rgba(var(--priv-primary-rgb), 0.1), rgba(var(--priv-primary-rgb), 0.2));
  border: 2px solid var(--priv-border-strong);
  border-radius: 12px;
  color: var(--priv-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.contact-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(var(--priv-primary-rgb), 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
  z-index: -1;
}

.contact-btn:hover::before {
  width: 400px;
  height: 400px;
}

.contact-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(var(--priv-primary-rgb), 0.5);
  border-color: var(--priv-primary);
  color: var(--priv-text);
}

.contact-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 8px rgba(var(--priv-primary-rgb), 0.6));
}

.contact-response {
  color: var(--priv-text-muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 1.5rem;
}

/* ===================== Footer Section ===================== */
.privacy-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--priv-border);
}

.disclaimer-box {
  background: rgba(255, 179, 0, 0.08);
  border: 2px solid rgba(255, 179, 0, 0.3);
  border-left: 6px solid #ffb300;
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.disclaimer-box h3 {
  color: #ffb300;
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 8px rgba(255, 179, 0, 0.5));
}

.disclaimer-box p {
  color: var(--priv-text-dim);
  line-height: 1.8;
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

/* ===================== Inline Links ===================== */
.inline-link {
  color: var(--priv-primary);
  text-decoration: underline;
  text-decoration-color: rgba(var(--priv-primary-rgb), 0.4);
  text-underline-offset: 3px;
  transition: all 0.2s ease;
  font-weight: 600;
}

.inline-link:hover {
  color: #33ffff;
  text-decoration-color: var(--priv-primary);
  text-shadow: 0 0 8px rgba(var(--priv-primary-rgb), 0.6);
}

/* ===================== Accessibility ===================== */
.privacy-page :focus-visible {
  outline: 3px solid var(--priv-primary);
  outline-offset: 2px;
  border-radius: 8px;
}

.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--priv-primary);
  color: #000;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 700;
  z-index: 100;
}

.skip-to-content:focus {
  top: 0;
}

/* ===================== Responsive Design ===================== */
@media (max-width: 1024px) {
  .privacy-page {
    margin: 80px auto 30px;
    padding: 35px 30px;
  }
  
  .privacy-section {
    padding: 1.5rem;
  }
  
  .contact-methods {
    flex-direction: column;
    align-items: stretch;
  }
  
  .contact-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .privacy-page {
    margin: 75px auto 25px;
    padding: 30px 20px;
  }
  
  .privacy-intro {
    padding: 1.5rem 0;
    margin-bottom: 2rem;
  }
  
  .privacy-section {
    margin: 2rem 0;
    padding: 1.5rem 1rem;
  }
  
  .privacy-section h2 {
    padding-left: 1rem;
    border-left-width: 3px;
  }
  
  .section-content ul li {
    padding-left: 1.8rem;
  }
  
  .contact-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .privacy-page {
    margin: 70px auto 20px;
    padding: 25px 15px;
  }
  
  .privacy-intro {
    padding: 1rem 0;
    margin-bottom: 1.5rem;
  }
  
  .privacy-section {
    margin: 1.5rem 0;
    padding: 1.2rem 0.8rem;
  }
  
  .section-icon {
    font-size: 2rem;
  }
  
  .privacy-contact {
    padding: 1.5rem;
  }
  
  .contact-btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .alert-box,
  .disclaimer-box {
    padding: 1.2rem;
  }
}

/* ===================== Print Styles ===================== */
@media print {
  .privacy-page {
    background: white;
    color: black;
    box-shadow: none;
    border: none;
  }
  
  .privacy-section {
    page-break-inside: avoid;
    background: transparent;
    border: 1px solid #ccc;
  }
  
  .contact-btn {
    display: none;
  }
}

/* ===================== Reduced Motion ===================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
