/* Privacy Page Styles with Theme Support */

/* Color Themes */
:root {
  /* Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #6c757d;
  --text-muted: #adb5bd;
  --border-color: #e9ecef;
  --accent-primary: #667eea;
  --accent-secondary: #764ba2;
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --warning-bg: #fff3cd;
  --warning-border: #ffc107;
  --warning-text: #856404;
}

[data-theme="dark"] {
  /* Dark Theme */
  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a2e;
  --bg-card: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --border-color: rgba(255, 255, 255, 0.1);
  --accent-primary: #667eea;
  --accent-secondary: #764ba2;
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --warning-bg: rgba(255, 193, 7, 0.1);
  --warning-border: #ffc107;
  --warning-text: #ffd93d;
}

/* Base Styles */
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  padding: 10px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* Container */
.policy-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px 40px;
}

/* Hero Section */
.policy-hero {
  text-align: center;
  margin-bottom: 48px;
}

.policy-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.policy-hero .last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 32px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.back-link:hover {
  background: var(--bg-secondary);
  transform: translateX(-4px);
}

.back-link svg {
  width: 18px;
  height: 18px;
}

/* Intro Box */
.policy-intro {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.policy-intro p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

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

/* Section Cards */
.policy-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.policy-section:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
}

.section-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-icon svg {
  width: 22px;
  height: 22px;
  color: white;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* Section Content */
.section-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 12px;
}

.section-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.section-content ul {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
}

.section-content ul li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
  padding-left: 24px;
  position: relative;
}

.section-content ul li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--accent-primary);
  font-weight: 700;
}

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

.section-content a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
}

.section-content a:hover {
  text-decoration: underline;
}

/* Warning/Highlight Box */
.highlight-box {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning-border);
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
}

.highlight-box h3 {
  color: var(--warning-text);
  margin-top: 0 !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.highlight-box p,
.highlight-box ul li {
  color: var(--warning-text);
}

/* Footer Note */
.footer-note {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-note p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-note strong {
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .policy-container {
    padding: 70px 16px 32px;
  }

  .policy-hero h1 {
    font-size: 2rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header h2 {
    font-size: 1.3rem;
  }

  .policy-section {
    padding: 20px;
  }

  .theme-toggle {
    top: 10px;
    right: 10px;
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}
