/* Legal Pages - Shared modern design */

.legal-page {
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(17,24,39,1) 0%, rgba(31,41,55,1) 100%);
  position: relative;
  overflow-x: hidden;
}

.legal-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 20%, hsla(250, 90%, 50%, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, hsla(280, 85%, 45%, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, hsla(220, 95%, 55%, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, hsla(240, 80%, 60%, 0.08) 0%, transparent 50%);
  z-index: 1;
  filter: blur(60px);
}

.legal-hero {
  padding-top: 120px;
  padding-bottom: 80px;
  position: relative;
  z-index: 10;
}

.legal-hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 30%, #c7d2fe 60%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
  line-height: 1.1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.legal-content-wrapper {
  position: relative;
  z-index: 10;
  max-width: 4xl;
  margin: 0 auto;
  padding: 0 1rem;
}

.legal-content-card {
  background: rgba(31, 41, 55, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .legal-content-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }
}

.legal-section {
  margin-bottom: 2.5rem;
}

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

.legal-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1rem;
}

.legal-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.legal-section-content {
  color: #cbd5e1;
  line-height: 1.7;
  font-size: 1rem;
}

.legal-section-content p {
  margin-bottom: 1rem;
}

.legal-section-content p:last-child {
  margin-bottom: 0;
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.legal-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.legal-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #8b5cf6;
  font-weight: bold;
  font-size: 1.1rem;
  text-shadow: 0 0 4px rgba(139, 92, 246, 0.4);
}

.legal-list li strong {
  color: #f1f5f9;
  font-weight: 600;
}

.legal-highlight {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

.legal-highlight p {
  color: #f1f5f9;
  font-weight: 500;
  margin: 0;
}

/* Animation effects */
.legal-content-card {
  animation: slideUp 0.8s ease-out;
}

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

.legal-hero-title {
  animation: titleSlide 1s ease-out;
}

@keyframes titleSlide {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive improvements */
@media (max-width: 640px) {
  .legal-hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }
  
  .legal-section-title {
    font-size: 1.25rem;
  }
  
  .legal-section-content {
    font-size: 0.95rem;
  }
}

/* Link styles within content */
.legal-section-content a {
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  text-shadow: 0 0 4px rgba(165, 180, 252, 0.3);
}

.legal-section-content a:hover {
  color: #c7d2fe;
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(199, 210, 254, 0.5);
}

/* Table of contents style for long documents */
.legal-toc {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.legal-toc h3 {
  color: #f1f5f9;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.legal-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-toc li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.legal-toc li:last-child {
  border-bottom: none;
}

.legal-toc a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.legal-toc a:hover {
  color: #a5b4fc;
  text-shadow: 0 0 4px rgba(165, 180, 252, 0.3);
}