/* Legal Pages Styles (Terms, Privacy) */
.legal-main {
  min-height: 100vh;
  padding: 6rem 1.5rem 4rem;
  position: relative;
}

/* Grid background */
.legal-main::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Colored glows */
.legal-main::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 600px 600px at 20% 10%, rgba(139, 92, 246, 0.1), transparent 50%),
    radial-gradient(ellipse 400px 400px at 80% 90%, rgba(59, 130, 246, 0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.legal-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.legal-subtitle {
  font-size: 1.125rem;
  color: var(--primary);
  margin: 0 0 0.75rem;
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.legal-content {
  background: rgba(26, 31, 46, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
}

.legal-intro {
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.legal-content > p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-content > p strong {
  color: var(--text-primary);
}

.legal-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-section:first-of-type {
  margin-top: 2rem;
}

.legal-section h2 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem;
}

.legal-section h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 0.75rem;
}

.legal-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-section p strong {
  color: var(--text-primary);
}

.legal-section ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.legal-section li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.legal-section a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.legal-section a:hover {
  opacity: 0.8;
}

/* Footer for legal pages */
.legal-main + .footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  max-width: 800px;
  margin: 0 auto;
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

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

.copyright {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-main {
    padding: 5rem 1rem 3rem;
  }

  .legal-title {
    font-size: 2rem;
  }

  .legal-content {
    padding: 1.5rem;
  }

  .legal-section h2 {
    font-size: 1.25rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
