/**
 * Legal Pages Stylesheet
 * Dark theme matching landing page with optimized readability
 */

/* Use same font imports as landing page */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

.legal-page {
  background: #050505;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  position: relative;
}

/* Grain texture overlay */
.legal-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Header */
.legal-header {
  position: relative;
  z-index: 10;
  padding: 2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legal-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #DC143C 0%, #FFD700 50%, #00FF87 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.legal-back-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-back-link:hover {
  color: #00FF87;
}

/* Content Container */
.legal-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem 8rem 2rem;
}

/* Typography */
.legal-content h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 2rem;
  line-height: 1.2;
  background: linear-gradient(135deg, #DC143C 0%, #FFD700 50%, #00FF87 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: #FFD700;
}

.legal-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #00FF87;
}

.legal-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
}

.legal-content strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.legal-content em {
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

/* Metadata */
.legal-metadata {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Lists */
.legal-content ul,
.legal-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-content li {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}

.legal-content ul li {
  list-style-type: disc;
}

.legal-content ol li {
  list-style-type: decimal;
}

/* Links */
.legal-content a {
  color: #00FF87;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.legal-content a:hover {
  color: #FFD700;
}

/* Horizontal Rules */
.legal-content hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 3rem 0;
}

/* Code/Technical Text */
.legal-content code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

/* Blockquotes */
.legal-content blockquote {
  border-left: 3px solid #FFD700;
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

/* Footer */
footer {
  position: relative;
  z-index: 10;
  padding: 4rem 2rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  flex: 1;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #DC143C 0%, #FFD700 50%, #00FF87 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #00FF87;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-content {
    padding: 3rem 1.5rem 6rem 1.5rem;
  }

  .legal-content h1 {
    font-size: 2.25rem;
  }

  .legal-content h2 {
    font-size: 1.5rem;
  }

  .legal-content h3 {
    font-size: 1.15rem;
  }

  .legal-content p,
  .legal-content li {
    font-size: 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .legal-header {
    padding: 1.5rem 1rem;
  }

  .legal-logo {
    font-size: 1.25rem;
  }

  .legal-content h1 {
    font-size: 1.875rem;
  }
}
