/* ============================================
   PDF Snap – Policy & Legal Pages
   Premium Dark Theme with Glassmorphism
   ============================================ */

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

:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #111128;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glass-hover: rgba(255, 255, 255, 0.2);

  --text-primary: #f0f0f8;
  --text-secondary: #a0a0c0;
  --text-muted: #6b6b8d;

  --accent-primary: #6c5ce7;
  --accent-secondary: #a29bfe;
  --accent-glow: rgba(108, 92, 231, 0.3);
  --accent-gradient: linear-gradient(135deg, #6c5ce7, #a29bfe, #74b9ff);

  --success: #00b894;
  --warning: #fdcb6e;
  --danger: #e17055;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.15);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-primary);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.95);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.nav-link-cta {
  background: var(--accent-primary);
  color: white !important;
}

.nav-link-cta:hover {
  background: var(--accent-secondary) !important;
  color: var(--bg-primary) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-link {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.mobile-link:hover, .mobile-link.active {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* ============================================
   Hero Section (Landing Page)
   ============================================ */
.hero {
  position: relative;
  padding: 160px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-primary);
  top: -200px;
  right: -100px;
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: #74b9ff;
  bottom: -150px;
  left: -100px;
  opacity: 0.1;
  animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: var(--accent-secondary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.08;
  animation: pulse 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.08; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.12; }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.6s ease-out;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 56px;
  line-height: 1.8;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-card {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-smooth);
  overflow: hidden;
  text-align: left;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.hero-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  color: var(--text-primary);
}

.hero-card:hover::before {
  opacity: 1;
}

.hero-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.hero-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-arrow {
  position: absolute;
  bottom: 20px;
  right: 24px;
  font-size: 1.2rem;
  color: var(--accent-secondary);
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition-smooth);
}

.hero-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Features Strip
   ============================================ */
.features-strip {
  padding: 60px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.feature-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================
   Page Header (Legal Pages)
   ============================================ */
.page-header {
  position: relative;
  padding: 140px 0 60px;
  text-align: center;
  overflow: hidden;
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: fadeInUp 0.5s ease-out;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  animation: fadeInUp 0.5s ease-out 0.1s both;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
  animation: fadeInUp 0.5s ease-out 0.15s both;
}

.effective-date {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text-muted);
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

/* ============================================
   Legal Content Layout
   ============================================ */
.legal-content {
  padding: 60px 0 100px;
}

.content-wrapper {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

/* Table of Contents */
.toc {
  position: sticky;
  top: 100px;
  width: 240px;
  flex-shrink: 0;
  padding: 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.toc h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.toc ul {
  list-style: none;
}

.toc li {
  margin-bottom: 2px;
}

.toc-link {
  display: block;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
  border-left: 2px solid transparent;
}

.toc-link:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.toc-link.active {
  color: var(--accent-secondary);
  border-left-color: var(--accent-primary);
  background: rgba(108, 92, 231, 0.08);
}

/* Main Content */
.legal-main {
  flex: 1;
  min-width: 0;
}

.legal-main section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-glass);
  animation: fadeInUp 0.4s ease-out both;
}

.legal-main section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.legal-main h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.legal-main h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--text-primary);
}

.legal-main p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.8;
}

.legal-main ul {
  margin: 12px 0 16px 0;
  padding-left: 24px;
}

.legal-main li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.7;
  position: relative;
}

.legal-main li::marker {
  color: var(--accent-secondary);
}

/* Highlight Box */
.highlight-box {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}

.highlight-box.warning {
  background: rgba(253, 203, 110, 0.08);
  border-color: rgba(253, 203, 110, 0.2);
}

.highlight-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.highlight-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.highlight-box p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.92rem;
}

/* Info Callout */
.info-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin: 16px 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.info-callout.success {
  background: rgba(0, 184, 148, 0.08);
  border-color: rgba(0, 184, 148, 0.2);
  color: var(--success);
}

.info-callout.warning {
  background: rgba(225, 112, 85, 0.08);
  border-color: rgba(225, 112, 85, 0.2);
  color: var(--danger);
}

/* Contact Card */
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-top: 16px;
  transition: all var(--transition-smooth);
}

.contact-card:hover {
  border-color: var(--border-glass-hover);
  background: var(--bg-card-hover);
}

.contact-icon {
  font-size: 1.8rem;
}

.contact-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-card a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-secondary);
}

/* ============================================
   Support Page Styles
   ============================================ */
.support-content {
  padding: 60px 0 100px;
}

.support-hero-card {
  text-align: center;
  padding: 60px 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.support-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.support-hero-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.support-hero-card h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.support-hero-card > p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.support-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--accent-gradient);
  color: white !important;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.support-email-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
  color: white !important;
}

.response-time {
  margin-top: 16px !important;
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
}

/* Section Title */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

/* FAQ Section */
.faq-section {
  margin-bottom: 80px;
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.faq-card:hover {
  border-color: var(--border-glass-hover);
}

.faq-card.active {
  background: var(--bg-card-hover);
  border-color: rgba(108, 92, 231, 0.3);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-primary);
  transition: color var(--transition-fast);
  user-select: none;
}

.faq-q:hover {
  color: var(--accent-secondary);
}

.faq-toggle {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card-hover);
  font-size: 1.2rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--transition-smooth);
}

.faq-card.active .faq-toggle {
  background: var(--accent-primary);
  color: white;
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-card.active .faq-a {
  max-height: 300px;
}

.faq-a p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.92rem;
}

/* Help Cards */
.help-cards-section {
  margin-bottom: 40px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.help-card {
  padding: 36px 28px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.help-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.help-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

.help-card:hover::before {
  opacity: 1;
}

.help-card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.help-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.help-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.help-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.help-link:hover {
  color: var(--accent-primary);
  gap: 8px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 60px 0 32px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  padding: 4px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
  text-decoration: none;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .toc {
    display: none;
  }

  .hero-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .help-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 130px 0 60px;
  }

  .page-header {
    padding: 120px 0 40px;
  }

  .hero-cards {
    gap: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .support-hero-card {
    padding: 40px 24px;
    margin-bottom: 48px;
  }

  .faq-section {
    margin-bottom: 48px;
  }

  .legal-main h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.4rem;
  }
}
