/* ===================================
   CSS Custom Properties (Variables)
   =================================== */
:root {
  /* Colors - Light Mode */
  --color-primary: #4f46e5;
  --color-primary-hover: #4338ca;
  --color-primary-light: #e0e7ff;
  --color-secondary: #0891b2;
  --color-secondary-hover: #0e7490;
  
  --color-background: #ffffff;
  --color-surface: #f8fafc;
  --color-surface-elevated: #ffffff;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;
  --color-text-inverse: #ffffff;
  
  --color-success: #059669;
  --color-warning: #d97706;
  --color-error: #dc2626;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Typography */
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  --line-height-tight: 1.25;
  --line-height-base: 1.5;
  --line-height-relaxed: 1.625;
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Layout */
  --container-max-width: 800px;
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
  
  /* Header gradient */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(79, 70, 229, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #0f172a;
    --color-surface: #1e293b;
    --color-surface-elevated: #334155;
    --color-border: #475569;
    --color-border-light: #334155;
    
    --color-text-primary: #f8fafc;
    --color-text-secondary: #cbd5e1;
    --color-text-muted: #94a3b8;
    --color-text-inverse: #0f172a;
    
    --color-primary-light: #312e81;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  }
}

/* ===================================
   Reset and Base Styles
   =================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-primary);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--font-size-3xl);
}

h2 {
  font-size: var(--font-size-2xl);
}

h3 {
  font-size: var(--font-size-xl);
}

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

/* ===================================
   Skip Link (Accessibility)
   =================================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-sm) var(--space-md);
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  font-weight: var(--font-weight-medium);
  z-index: 1000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 6px;
}

/* ===================================
   Layout Components
   =================================== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-md);
  }
}

/* ===================================
   Unified Hero Section
   =================================== */
.unified-hero {
  background: 
    radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3), transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(102, 126, 234, 0.4), transparent 50%),
    radial-gradient(circle at 90% 70%, rgba(245, 87, 108, 0.3), transparent 50%),
    linear-gradient(135deg, #0f0c29 0%, #302b63 25%, #24243e 50%, #0f0c29 75%, #302b63 100%);
  position: relative;
  padding: var(--space-3xl) 0 var(--space-2xl);
  overflow: hidden;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.unified-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='m0 40l40-40h-40v40zm40 0v-40h-40l40 40z'/%3E%3C/g%3E%3C/svg%3E");
  animation: move-pattern 30s linear infinite;
  opacity: 0.4;
}

.unified-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  animation: float-orbs 8s ease-in-out infinite alternate;
}

@keyframes move-pattern {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(40px) translateY(40px); }
}

@keyframes float-orbs {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-10px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Header Section */
.hero-header {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
  font-size: clamp(var(--font-size-3xl), 5vw, 4rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 40px rgba(255,255,255,0.3);
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  letter-spacing: 0.01em;
}

/* Description Section */
.hero-description {
  margin-bottom: var(--space-2xl);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  max-width: 600px;
  margin: 0 auto;
  font-weight: var(--font-weight-normal);
}

/* Features Section */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-3xl);
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(15px);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--border-radius-xl);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  border: 1px solid rgba(255,255,255,0.25);
  transition: all var(--transition-base);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.feature-badge:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.feature-icon {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

/* Download Section */
.hero-download {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-xl);
  padding: var(--space-2xl);
  border: 1px solid rgba(255,255,255,0.2);
  margin-top: var(--space-2xl);
}

.download-heading {
  margin-bottom: var(--space-2xl);
}

.download-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 30px rgba(255,255,255,0.3);
}

.download-description {
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Mobile Download Button */
.mobile-download {
  display: block;
  margin-bottom: var(--space-lg);
}

/* Desktop Download Buttons */
.desktop-download {
  display: none;
  gap: var(--space-lg);
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.desktop-download.active {
  display: flex;
}

/* Download Button Styles */
.download-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-2xl);
  border-radius: var(--border-radius-xl);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  min-height: 60px;
  border: 2px solid rgba(255,255,255,0.3);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.download-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.6s;
}

.download-button:hover::before {
  left: 100%;
}

/* Universal Download Button */
.download-button--universal {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24, #fd79a8);
  color: white;
  box-shadow: 0 8px 25px rgba(238, 90, 36, 0.4);
}

.download-button--universal:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(238, 90, 36, 0.6);
  background: linear-gradient(135deg, #ff5252, #e53e3e, #f56565);
}

/* iOS Download Button */
.download-button--ios {
  background: linear-gradient(135deg, #007aff, #0051d5, #003db3);
  color: white;
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
}

.download-button--ios:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 122, 255, 0.6);
  background: linear-gradient(135deg, #0056b3, #004094, #003075);
}

/* Android Download Button */
.download-button--android {
  background: linear-gradient(135deg, #34a853, #137333, #0f5132);
  color: white;
  box-shadow: 0 8px 25px rgba(52, 168, 83, 0.4);
}

.download-button--android:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(52, 168, 83, 0.6);
  background: linear-gradient(135deg, #2d8f47, #0f5132, #0a3d26);
}

.download-button:active {
  transform: translateY(-1px) scale(1.02);
}

/* Icons */
.download-icon {
  width: 24px;
  height: 24px;
  animation: bounce-download 2s ease-in-out infinite;
}

.store-icon {
  width: 20px;
  height: 20px;
}

@keyframes bounce-download {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
  60% { transform: translateY(-2px); }
}

.platform-note {
  font-size: var(--font-size-sm);
  opacity: 0.8;
  margin-bottom: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .unified-hero {
    min-height: 90vh;
    padding: var(--space-2xl) 0;
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .hero-tagline {
    font-size: var(--font-size-lg);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
  }
  
  .feature-badge {
    font-size: var(--font-size-xs);
    padding: var(--space-sm) var(--space-md);
  }
  
  .hero-download {
    padding: var(--space-xl);
  }
  
  .download-button {
    font-size: var(--font-size-base);
    padding: var(--space-md) var(--space-xl);
    width: 100%;
    justify-content: center;
  }
  
  .desktop-download {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .unified-hero {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 30%, #4a5568 70%, #553c9a 100%);
  }
  
  .feature-badge {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
  }
  
  .hero-download {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .unified-hero::before,
  .unified-hero::after {
    animation: none;
  }
  
  .title-glow {
    animation: none;
  }
  
  .download-icon {
    animation: none;
  }
  
  .download-button:hover,
  .feature-badge:hover {
    transform: none;
  }
}

/* ===================================
   Main Content
   =================================== */
.main {
  padding: var(--space-3xl) 0;
  min-height: 60vh;
}

@media (max-width: 640px) {
  .main {
    padding: var(--space-2xl) 0;
  }
}

/* ===================================
   Card Component
   =================================== */
.card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card:last-child {
  margin-bottom: 0;
}

.card__title {
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  font-weight: var(--font-weight-semibold);
}

.card__text {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

.card__note {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-md);
  margin-bottom: 0;
}

.card__subtitle {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.card__subtitle:first-of-type {
  margin-top: var(--space-lg);
}

@media (max-width: 640px) {
  .card {
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
  }
}

/* ===================================
   Buttons
   =================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 44px; /* Accessibility: minimum tap target */
  min-width: 44px;
}

.button--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.button--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===================================
   Links
   =================================== */
.link {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: all var(--transition-fast);
}

.link:hover {
  color: var(--color-primary-hover);
  text-decoration-thickness: 2px;
}

.link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

/* ===================================
   Lists
   =================================== */
.checklist {
  list-style: none;
  margin: var(--space-lg) 0;
}

.checklist__item {
  position: relative;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

.checklist__item::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-success);
  font-weight: var(--font-weight-bold);
}

.privacy-list {
  margin: var(--space-lg) 0;
  padding-left: var(--space-xl);
}

.privacy-list li {
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .unified-hero::before,
  .unified-hero::after {
    animation: none;
  }
  
  .title-glow {
    animation: none;
  }
  
  .download-icon {
    animation: none;
  }
  
  .download-button:hover,
  .feature-badge:hover {
    transform: none;
  }
}

/* ===================================
   Privacy Page Header
   =================================== */
.privacy-page-header {
  background: 
    radial-gradient(circle at 25% 25%, rgba(79, 70, 229, 0.3), transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(8, 145, 178, 0.3), transparent 50%),
    linear-gradient(135deg, #4f46e5 0%, #0891b2 100%);
  color: var(--color-text-inverse);
  padding: var(--space-3xl) 0;
  position: relative;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.privacy-page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.06' fill-rule='evenodd'%3E%3Cpath d='m0 30l30-30h-30v30zm30 0v-30h-30l30 30z'/%3E%3C/g%3E%3C/svg%3E");
  animation: move-privacy-pattern 20s linear infinite;
  opacity: 0.5;
}

.privacy-page-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: privacy-shimmer 4s ease-in-out infinite;
}

@keyframes move-privacy-pattern {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(30px) translateY(30px); }
}

@keyframes privacy-shimmer {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.privacy-page-header__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
  text-align: center;
  text-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 0 20px rgba(255,255,255,0.2);
  animation: title-pulse 3s ease-in-out infinite alternate;
}

@keyframes title-pulse {
  0% { text-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 0 20px rgba(255,255,255,0.2); }
  100% { text-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 0 25px rgba(255,255,255,0.4); }
}

.privacy-page-header__tagline {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  text-align: center;
  opacity: 0.95;
  margin-bottom: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

@media (max-width: 640px) {
  .privacy-page-header {
    padding: var(--space-2xl) 0;
  }
  
  .privacy-page-header__title {
    font-size: var(--font-size-2xl);
  }
  
  .privacy-page-header__tagline {
    font-size: var(--font-size-base);
  }
}

/* Ensure privacy page header works in reduced motion */
@media (prefers-reduced-motion: reduce) {
  .privacy-page-header::before,
  .privacy-page-header::after {
    animation: none;
  }
  
  .privacy-page-header__title {
    animation: none;
  }
}

/* ===================================
   Help Grid
   =================================== */
.help-grid {
  display: grid;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

@media (min-width: 768px) {
  .help-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.help-item {
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-base);
}

.help-item:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.help-item__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.help-item__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: 0;
}

/* ===================================
   Privacy Page Specific
   =================================== */
.privacy-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.privacy-header h1 {
  font-size: var(--font-size-4xl);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.last-updated {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.compliance-grid {
  display: grid;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

@media (min-width: 768px) {
  .compliance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.compliance-section {
  background: var(--color-surface);
  padding: var(--space-lg);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border-light);
}

.compliance-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
}

.compliance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.compliance-table th,
.compliance-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}

.compliance-table th {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  background: var(--color-primary-light);
}

.compliance-table td {
  color: var(--color-text-secondary);
}

.compliance-table tbody tr:last-child th,
.compliance-table tbody tr:last-child td {
  border-bottom: none;
}

.back-link {
  margin-top: var(--space-3xl);
  text-align: center;
}

@media (max-width: 640px) {
  .privacy-header h1 {
    font-size: var(--font-size-3xl);
  }
  
  .compliance-table {
    font-size: var(--font-size-xs);
  }
  
  .compliance-table th,
  .compliance-table td {
    padding: var(--space-xs) var(--space-sm);
  }
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) 0;
  margin-top: var(--space-3xl);
}

.footer__text {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: 0;
}

/* ===================================
   Print Styles
   =================================== */
@media print {
  :root {
    --color-background: #ffffff;
    --color-surface: #ffffff;
    --color-surface-elevated: #ffffff;
    --color-text-primary: #000000;
    --color-text-secondary: #333333;
    --color-text-muted: #666666;
    --color-primary: #000000;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-xl: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .header {
    background: none !important;
    color: var(--color-text-primary) !important;
    padding: var(--space-lg) 0;
  }
  
  .header::before {
    display: none;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #cccccc;
    margin-bottom: var(--space-lg);
    break-inside: avoid;
  }
  
  .button {
    border: 1px solid #000000;
    background: none !important;
    color: #000000 !important;
  }
  
  .link::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666666;
  }
  
  .skip-link {
    display: none;
  }
  
  .help-grid,
  .compliance-grid {
    grid-template-columns: 1fr;
  }
  
  .footer {
    border-top: 1px solid #cccccc;
    margin-top: var(--space-lg);
  }
}

/* ===================================
   Reduced Motion
   =================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .card:hover {
    transform: none;
  }
  
  .button--primary:hover {
    transform: none;
  }
}

/* ===================================
   High Contrast Mode Support
   =================================== */
@media (prefers-contrast: high) {
  :root {
    --color-border: #000000;
    --color-border-light: #333333;
  }
  
  .card {
    border-width: 2px;
  }
  
  .button {
    border: 2px solid currentColor;
  }
  
  .link {
    text-decoration-thickness: 2px;
  }
}
