/*
 * ITA Events Privacy Policy Page - Premium Glassmorphism
 * Design Philosophy: "Luxury Tech Document" - Cohesive with Login & Landing
 * Matches the established design system with refined readability
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700;9..40,800&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================================
   DESIGN TOKENS - MATCHING EXISTING SYSTEM
   ============================================================================ */

:root {
  /* Premium Blue Spectrum - Matching Landing & Login */
  --primary-50: #e6f4ff;
  --primary-100: #bae0ff;
  --primary-200: #91caff;
  --primary-300: #69b1ff;
  --primary-400: #4096ff;
  --primary-500: #1677ff;
  --primary-600: #0958d9;
  --primary-700: #003eb3;
  --primary-800: #002c8c;
  --primary-900: #001d66;

  /* Accent Colors */
  --accent-cyan: #2d7ff9;
  --accent-electric: #4c8dff;
  --accent-sapphire: #0050b3;
  --accent-deep-navy: #0a1929;
  --accent-royal: #2563eb;
  --accent-sky: #3b82f6;

  /* Neutral Palette */
  --neutral-50: #fafbfc;
  --neutral-100: #f5f7fa;
  --neutral-200: #edf0f5;
  --neutral-300: #e2e8f0;
  --neutral-400: #cbd5e1;
  --neutral-500: #94a3b8;
  --neutral-600: #64748b;
  --neutral-700: #475569;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;

  /* Spacing System */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-10: 5rem;
  --space-12: 6rem;
  --space-16: 8rem;

  /* Typography */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.563rem;
  --text-3xl: 1.953rem;
  --text-4xl: 2.441rem;
  --text-5xl: 3.052rem;
  --text-6xl: 3.815rem;

  /* Font Families */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   BASE SETUP - FULL SCREEN GRADIENT BACKGROUND
   ============================================================================ */

/* CRITICAL FIX: Override landing-page.css constraints */
html.landing-page-no-nav {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
}

body.landing-page-no-nav.privacy-page {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100vh;
}

body.privacy-page {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: linear-gradient(140deg,
    var(--accent-deep-navy) 0%,
    var(--primary-800) 25%,
    var(--primary-700) 50%,
    var(--primary-600) 75%,
    var(--accent-sapphire) 100%
  );
  background-attachment: fixed;
  overflow-x: hidden;
}

body.privacy-page main {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  height: auto !important;
}

/* ============================================================================
   WRAPPER & BACKGROUND EFFECTS
   ============================================================================ */

.privacy-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: var(--space-8);
  overflow-x: hidden;
}

/* Subtle grain texture overlay */
.privacy-wrapper::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: soft-light;
}

/* Floating Orbs - NO ANIMATION */
.privacy-bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

.privacy-orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-royal), transparent);
  top: -20%;
  right: -15%;
}

.privacy-orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-sky), transparent);
  bottom: -25%;
  left: -20%;
}

.privacy-orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-electric), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ============================================================================
   LOGO - CLICKABLE BACK BUTTON
   ============================================================================ */

.privacy-logo {
  position: absolute;
  top: 12px;
  left: var(--space-6);
  z-index: 1000;
}

.privacy-logo a {
  display: block;
  cursor: pointer;
}

.privacy-logo img {
  max-width: 180px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* ============================================================================
   MAIN CONTENT AREA
   ============================================================================ */

.privacy-content {
  position: relative;
  z-index: 10;
  padding: calc(var(--space-16) + 40px) var(--space-4) var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
}

.privacy-container {
  /* No background - sections have individual glassmorphic cards */
}

/* ============================================================================
   PRIVACY HEADER
   ============================================================================ */

.privacy-header {
  text-align: center;
  margin-bottom: var(--space-6);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-2xl);
  padding: var(--space-5) var(--space-6);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.privacy-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-royal), var(--accent-sky));
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.5);
}

.privacy-icon svg {
  width: 40px;
  height: 40px;
  stroke: white;
  stroke-width: 2.5;
}

.privacy-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.03em;
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(59, 130, 246, 0.3);
}

.privacy-subtitle {
  font-family: var(--font-body);
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  margin-bottom: var(--space-4);
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.privacy-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.privacy-divider {
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================================
   PRIVACY POLICY CONTENT - SINGLE CONTAINER
   ============================================================================ */

.privacy-policy-content {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-6);
}

.privacy-policy-content p {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  line-height: 1.9;
  color: #ffffff;
  margin: 0 0 var(--space-4);
}

.privacy-policy-content p:last-child {
  margin-bottom: 0;
}


/* ============================================================================
   FOOTER BUTTONS
   ============================================================================ */

.privacy-footer {
  margin-top: var(--space-10);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-royal), var(--accent-sky));
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow:
    0 8px 24px rgba(37, 99, 235, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Back to Login Footer Container - Matching Forgot Password Style */
.privacy-login-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
}

/* Back to Login Link - Text Link with Underline Animation */
.back-to-login {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  padding-bottom: 2px;
}

.back-to-login svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.back-to-login::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-royal), var(--accent-sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
  border-radius: 2px;
}

.back-to-login:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
  text-decoration: none;
}

.back-to-login:hover::after {
  transform: scaleX(1);
}

.back-to-login:hover svg {
  transform: translateX(-4px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 2.5;
}

.back-to-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 32px rgba(37, 99, 235, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.back-to-top:hover::before {
  left: 100%;
}

.back-to-top:active {
  transform: translateY(0);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* Desktop - Wider Content */
@media (min-width: 1024px) {
  .privacy-content {
    padding: calc(var(--space-16) + 60px) var(--space-6) var(--space-10);
  }

  .privacy-header {
    padding: var(--space-6) var(--space-8);
  }
}

/* Tablet */
@media (max-width: 767px) {
  .privacy-logo {
    top: 12px;
    left: var(--space-3);
  }

  .privacy-logo img {
    max-width: 120px;
  }

  .privacy-content {
    padding: calc(var(--space-12) + 40px) var(--space-3) var(--space-6);
  }

  .privacy-header {
    padding: var(--space-4) var(--space-4);
    margin-bottom: var(--space-5);
  }

  .privacy-icon {
    width: 64px;
    height: 64px;
  }

  .privacy-icon svg {
    width: 32px;
    height: 32px;
  }

  .privacy-policy-content {
    padding: var(--space-6);
  }

  .privacy-orb-1,
  .privacy-orb-2,
  .privacy-orb-3 {
    width: 400px;
    height: 400px;
    filter: blur(60px);
  }

  .privacy-footer {
    flex-direction: column;
  }
}

/* Mobile */
@media (max-width: 639px) {
  .privacy-logo {
    top: 8px;
    left: var(--space-2);
  }

  .privacy-logo img {
    max-width: 100px;
  }

  .privacy-content {
    padding: calc(var(--space-10) + 40px) var(--space-2) var(--space-6);
  }

  .privacy-header {
    padding: var(--space-3) var(--space-3);
    margin-bottom: var(--space-4);
  }

  .privacy-icon {
    width: 56px;
    height: 56px;
  }

  .privacy-icon svg {
    width: 28px;
    height: 28px;
  }

  .privacy-title {
    font-size: var(--text-3xl);
  }

  .privacy-subtitle {
    font-size: var(--text-lg);
  }

  .privacy-policy-content {
    padding: var(--space-4);
  }

  .privacy-policy-content p {
    font-size: var(--text-lg);
  }

  .back-to-top {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
  }

  .privacy-orb-1,
  .privacy-orb-2,
  .privacy-orb-3 {
    width: 300px;
    height: 300px;
    filter: blur(50px);
  }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.6);
  outline-offset: 4px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .privacy-section {
    border-width: 2px;
  }

  .back-to-top,
  .back-to-home {
    border-width: 2px;
  }
}

/* Print Styles */
@media print {
  .privacy-logo,
  .privacy-bg-orb,
  .back-to-top,
  .back-to-home {
    display: none !important;
  }

  .privacy-wrapper {
    background: white !important;
  }

  .privacy-section,
  .privacy-header {
    background: white !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    color: #000 !important;
    page-break-inside: avoid;
  }

  .section-title,
  .privacy-title,
  .section-body,
  .privacy-subtitle,
  .privacy-list li {
    color: #000 !important;
    text-shadow: none !important;
  }
}
