/* ============================================
   EVO - Privacy Policy
   Midnight Ocean Theme
   Inspired by Evo Logo Colors
   ============================================ */

/* ===== CSS Variables ===== */
:root {
  /* Background - Deep Midnight Ocean */
  --bg-base: #0b1437;
  --bg-deep: #070f2b;
  --bg-elevated: #131c45;
  --bg-subtle: #182253;
  
  /* Borders - Soft Blue Tinted */
  --border: rgba(147, 197, 253, 0.1);
  --border-strong: rgba(147, 197, 253, 0.18);
  --border-glow: rgba(139, 92, 246, 0.25);
  
  /* Text - Warm White Hierarchy */
  --text-primary: #ffffff;
  --text-secondary: rgba(219, 234, 254, 0.78);
  --text-tertiary: rgba(191, 219, 254, 0.55);
  --text-muted: rgba(147, 197, 253, 0.4);
  
  /* Accent Palette - From Logo */
  --cyan: #22d3ee;
  --light-blue: #60a5fa;
  --blue: #3b82f6;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --purple: #a78bfa;
  
  /* Gradients - Logo Inspired */
  --gradient-primary: linear-gradient(135deg, #22d3ee 0%, #6366f1 50%, #8b5cf6 100%);
  --gradient-soft: linear-gradient(135deg, rgba(34, 211, 238, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
  --gradient-text: linear-gradient(135deg, #93c5fd 0%, #c4b5fd 100%);
  --gradient-bg: radial-gradient(ellipse at top, #131c45 0%, #0b1437 50%, #070f2b 100%);
  --gradient-glow-1: radial-gradient(circle at 20% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
  --gradient-glow-2: radial-gradient(circle at 80% 100%, rgba(139, 92, 246, 0.12) 0%, transparent 50%);
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Menlo", "Monaco", "Consolas", monospace;
  
  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  
  /* Layout */
  --max-width: 720px;
  --max-width-wide: 1080px;
  
  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 200ms var(--ease);
  --transition-slow: 400ms var(--ease);
}

/* ===== Reset ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--bg-deep);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  background-image: var(--gradient-bg);
  background-attachment: fixed;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Atmospheric Glow Layers */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glow-1), var(--gradient-glow-2);
  pointer-events: none;
  z-index: 0;
}

/* ===== Selection ===== */
::selection {
  background: var(--violet);
  color: var(--text-primary);
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(11, 20, 55, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.nav-container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: opacity var(--transition);
}

.nav-logo:hover {
  opacity: 0.7;
}

.nav-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.005em;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* ===== Hero ===== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 32px 80px;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: var(--max-width);
  text-align: center;
  width: 100%;
  position: relative;
}

.hero-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 40px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 32px rgba(7, 15, 43, 0.5);
  position: relative;
}

.hero-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.55;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* ===== Section Base ===== */
section {
  padding: 96px 32px;
  position: relative;
  z-index: 1;
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-container-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--light-blue);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-description {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.55;
  letter-spacing: -0.01em;
  max-width: 520px;
}

/* ===== Principles Grid ===== */
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: rgba(19, 28, 69, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
}

.principle {
  padding: 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  position: relative;
}

.principle:hover {
  background: rgba(99, 102, 241, 0.06);
}

.principle-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 24px;
  color: var(--light-blue);
  transition: color var(--transition), transform var(--transition);
}

.principle:hover .principle-icon {
  color: var(--purple);
  transform: scale(1.05);
}

.principle h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.principle p {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* ===== Policy Content ===== */
.policy-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.policy-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

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

.policy-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.policy-section h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.policy-section h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 32px 0 12px;
  color: var(--text-primary);
}

.policy-section p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}

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

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

.policy-section a {
  color: var(--light-blue);
  text-decoration: underline;
  text-decoration-color: rgba(96, 165, 250, 0.4);
  text-underline-offset: 3px;
  transition: all var(--transition);
}

.policy-section a:hover {
  color: var(--purple);
  text-decoration-color: var(--purple);
}

/* ===== Policy Lists ===== */
.policy-list {
  list-style: none;
  margin: 20px 0;
}

.policy-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  letter-spacing: -0.005em;
}

.policy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--light-blue);
}

/* ===== Callout ===== */
.callout {
  padding: 24px 28px;
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid var(--border-strong);
  border-left: 2px solid var(--light-blue);
  border-radius: 8px;
  margin: 24px 0;
  position: relative;
  overflow: hidden;
}

.callout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 0% 50%, rgba(139, 92, 246, 0.08), transparent 70%);
  pointer-events: none;
}

.callout p {
  margin: 0;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
}

/* ===== Permissions Table ===== */
.permissions-table {
  margin: 24px 0;
  border-top: 1px solid var(--border);
}

.permission-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  transition: padding-left var(--transition);
}

.permission-row:hover {
  padding-left: 8px;
}

.permission-row svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--light-blue);
  transition: color var(--transition);
}

.permission-row:hover svg {
  color: var(--purple);
}

.permission-info strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.permission-info span {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* ===== Contact Section ===== */
.contact {
  padding: 96px 32px 128px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.contact h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.contact p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(147, 197, 253, 0.35);
  transform: translateY(-2px);
}

.contact-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.contact-link:hover svg {
  transform: translateX(4px);
}

.contact-link-secondary {
  background: var(--blue);
  border-color: var(--blue);
}

.contact-link-secondary:hover {
  background: var(--indigo);
  border-color: var(--indigo);
}

/* ===== Footer ===== */
.footer {
  padding: 48px 32px;
  border-top: 1px solid var(--border);
  background: rgba(7, 15, 43, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-left img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.footer-left span {
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: -0.005em;
}

.footer-right {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: -0.005em;
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-container {
    padding: 0 20px;
  }
  
  .hero {
    padding: 120px 20px 60px;
    min-height: 80vh;
  }
  
  .hero-meta {
    flex-direction: column;
    gap: 6px;
    margin-top: 40px;
  }
  
  .hero-meta-dot {
    display: none;
  }
  
  section {
    padding: 64px 20px;
  }
  
  .principles {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }
  
  .principle {
    padding: 32px 24px;
  }
  
  .policy-section {
    padding: 40px 0;
  }
  
  .policy-section h2 {
    font-size: 24px;
  }
  
  .contact {
    padding: 64px 20px 80px;
  }
  
  .contact::before {
    width: 300px;
    height: 300px;
  }
  
  .footer {
    padding: 32px 20px;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 36px;
  }
  
  .section-title {
    font-size: 28px;
  }
}