/* LEGAL HUB PAGE STYLES */

.legal-page {
  min-height: 100vh;
  padding-top: 70px;
}

/* HERO SECTION */
.legal-hero {
  padding: 4rem 2rem 3rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(180, 22, 22, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.legal-logo {
  width: 60px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px rgba(180, 22, 22, 0.3));
}

.legal-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.legal-subtitle {
  font-size: 1.2rem;
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

/* HUB SECTION */
.legal-hub-section {
  padding: 5rem 2rem;
}

.legal-container {
  max-width: 1200px;
  margin: 0 auto;
}

.legal-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.section-heading {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.section-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #aaa;
  max-width: 800px;
  margin: 0 auto;
}

/* LEGAL GRID */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

.legal-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.legal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(180, 22, 22, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.legal-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(180, 22, 22, 0.3);
  transform: translateY(-5px);
}

.legal-card:hover::before {
  opacity: 1;
}

.legal-card-icon {
  width: 60px;
  height: 60px;
  background: rgba(180, 22, 22, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #b41616;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.legal-card:hover .legal-card-icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(180, 22, 22, 0.3);
}

.legal-card-content {
  position: relative;
  z-index: 1;
}

.legal-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}

.legal-card-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #aaa;
  margin-bottom: 1.5rem;
}

.legal-card-link {
  font-size: 0.9rem;
  color: #b41616;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.legal-card-link svg {
  transition: transform 0.3s ease;
}

.legal-card:hover .legal-card-link {
  gap: 0.75rem;
}

.legal-card:hover .legal-card-link svg {
  transform: translateX(4px);
}

/* FOOTER INFO */
.legal-footer-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.info-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(180, 22, 22, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b41616;
  margin-bottom: 1.5rem;
}

.info-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.info-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #aaa;
  margin-bottom: 1.5rem;
}

.info-text:last-of-type {
  margin-bottom: 1.5rem;
}

.info-text strong {
  color: #b41616;
  font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .legal-hero {
    padding: 3rem 1.5rem 2rem;
  }

  .legal-logo {
    width: 50px;
  }

  .legal-title {
    font-size: 2rem;
  }

  .legal-subtitle {
    font-size: 1rem;
  }

  .legal-hub-section {
    padding: 4rem 1.5rem;
  }

  .section-heading {
    font-size: 2rem;
  }

  .section-description {
    font-size: 1rem;
  }

  .legal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .legal-card {
    padding: 1.5rem;
  }

  .legal-card-icon {
    width: 50px;
    height: 50px;
  }

  .legal-card-icon svg {
    width: 24px;
    height: 24px;
  }

  .legal-card-title {
    font-size: 1.2rem;
  }

  .legal-footer-info {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .info-box {
    padding: 1.5rem;
  }
}

/* PERFORMANCE OPTIMIZATIONS */
.legal-card,
.info-box {
  will-change: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
}