/* ============================================================================
   LEGAL PAGES STYLES - Applied to all legal and info pages
   ============================================================================ */

:root {
  --primary: #39FF14;
  --secondary: #FFD700;
  --bg-dark: #0a0e27;
  --bg-medium: #1a1d2e;
  --bg-light: #0f1419;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Respect user's motion preferences */
@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;
  }
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-medium) 50%, var(--bg-light) 100%);
  color: #e0e0e0;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Global Footer Styling */
.global-footer {
  background: rgba(10, 14, 39, 0.9);
  border-top: 1px solid rgba(57, 255, 20, 0.3);
  margin-top: auto;
  padding: 25px 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.footer-content {
  text-align: center;
}

.footer-copyright {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 12px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--primary);
  text-decoration: underline;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 3px;
}

.footer-link:hover {
  color: var(--secondary);
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
  text-decoration-thickness: 2px;
}

.footer-separator {
  color: #555;
  font-size: 1rem;
}

/* Main Content Container */
main.legal-page-content {
  flex: 1;
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Legal Page Header */
.legal-page-header {
  text-align: center;
  padding: 30px 20px;
  background: rgba(26, 29, 46, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(57, 255, 20, 0.3);
  margin-bottom: 30px;
}

.legal-page-header h1 {
  font-size: 2.25rem;
  color: var(--primary);
  margin: 10px 0;
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.legal-page-header p {
  font-size: 1rem;
  color: #d0d0d0;
  margin-top: 10px;
}

/* Legal Page Container */
.legal-page-container {
  background: rgba(26, 29, 46, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Headings */
.legal-page-container h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 30px;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

.legal-page-container h3 {
  font-size: 1.125rem;
  color: var(--secondary);
  margin-top: 20px;
  margin-bottom: 12px;
}

.legal-page-container h2:first-child {
  margin-top: 0;
}

/* Paragraphs and text */
.legal-page-container p {
  margin-bottom: 15px;
  color: #e0e0e0;
  line-height: 1.8;
}

.legal-page-container strong {
  color: var(--primary);
  font-weight: 600;
}

.legal-page-container em {
  color: #a0a0a0;
  font-style: italic;
}

/* Lists */
.legal-page-container ul,
.legal-page-container ol {
  margin: 15px 0 15px 30px;
  color: #e0e0e0;
}

.legal-page-container li {
  margin-bottom: 10px;
  line-height: 1.8;
}

.legal-page-container ul li::marker {
  color: var(--primary);
}

/* Highlight boxes */
.legal-highlight-box {
  background: rgba(57, 255, 20, 0.08);
  border-left: 4px solid var(--primary);
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  color: #e0e0e0;
}

.legal-highlight-box strong {
  color: var(--primary);
}

/* Contact information */
.contact-info-box {
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.3);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
}

.contact-info-box p {
  margin: 8px 0;
}

.contact-info-box a {
  color: var(--primary);
  text-decoration: underline !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-info-box a:hover {
  color: var(--secondary);
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
  text-decoration-thickness: 2px !important;
}

/* Ensure all inline links in legal pages have underlines */
.legal-page-container a {
  text-decoration: underline !important;
  color: var(--primary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.legal-page-container a:hover {
  color: var(--secondary);
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
  text-decoration-thickness: 2px !important;
}

main.legal-page-content a {
  text-decoration: underline !important;
}

/* Home link */
.legal-page-home-link {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(57, 255, 20, 0.2);
}

.legal-page-home-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(57, 255, 20, 0.3);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .legal-page-header h1 {
    font-size: 1.75rem;
  }

  .legal-page-header {
    padding: 20px 15px;
    margin-bottom: 20px;
  }

  .legal-page-container {
    padding: 25px;
  }

  .legal-page-container h2 {
    font-size: 1.25rem;
    margin-top: 25px;
  }

  .legal-page-container h3 {
    font-size: 1rem;
  }

  main.legal-page-content {
    margin: 20px auto;
  }

  .footer-nav {
    gap: 6px;
  }

  .footer-link,
  .footer-separator {
    font-size: 0.875rem;
  }

  .footer-copyright {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .legal-page-header h1 {
    font-size: 1.5rem;
  }

  .legal-page-container {
    padding: 20px 15px;
  }

  .legal-page-container h2 {
    font-size: 1.125rem;
  }

  .legal-page-container h3 {
    font-size: 0.9375rem;
  }

  .legal-page-container ul,
  .legal-page-container ol {
    margin-left: 20px;
  }

  .footer-nav {
    gap: 4px;
  }

  .footer-link {
    padding: 3px 6px;
    font-size: 0.875rem;
  }

  .footer-separator {
    font-size: 0.875rem;
  }
}

/* 🔄 FALLBACK: For browsers that don't support backdrop-filter (iPhone/iPad ≤ 17) */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  /* Global footer - fallback to solid background */
  .global-footer {
    background: rgba(10, 14, 39, 0.98) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* Legal page header - fallback to solid background */
  .legal-page-header {
    background: rgba(26, 29, 46, 0.88) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* Legal page container - fallback to solid background */
  .legal-page-container {
    background: rgba(26, 29, 46, 0.88) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}
