/* Hero Section - Using About page hero structure */
.about-hero-section {
  position: relative;
  max-height: 70vh;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: -100px;
}

.about-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.about-hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-color-rgb), 0.75) 0%,
    rgba(var(--primary-color-rgb), 0.55) 50%,
    rgba(var(--primary-color-rgb), 0.65) 100%
  );
  z-index: 2;
}

.about-hero-section .container {
  position: relative;
  z-index: 2;
}

.about-breadcrumb {
  margin-bottom: 2rem;
}

.about-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.about-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.about-breadcrumb .breadcrumb-item a:hover {
  color: white;
}

.about-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.8);
}

.about-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.about-hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.about-hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-stat-item {
  text-align: center;
  color: white;
}

.about-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.about-stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Content Section */
.legal-content {
  padding: 80px 0;
  background: var(--bg-color);
}

/* Simple Content Section for Plain Text */
.legal-content-simple {
  padding: 80px 0;
  background: var(--bg-color);
}

.legal-text-content {
  background: var(--bg-color);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.legal-text-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 2.5rem 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-dark);
  position: relative;
}

.legal-text-content h2:first-child {
  margin-top: 0;
}

.legal-text-content h2::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--primary-color);
}

.legal-text-content p {
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  text-align: justify;
  a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
  }
}

.legal-text-content p a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  &:hover {
    color: var(--primary-dark);
    text-decoration: underline;
  }
}

/* Sidebar */
.legal-sidebar {
  position: sticky;
  top: 120px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.legal-sidebar-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
}

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

.legal-nav-list li {
  margin-bottom: 0.75rem;
}

.legal-nav-link {
  display: block;
  color: var(--text-color);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  border-left: 3px solid transparent;
}

.legal-nav-link:hover,
.legal-nav-link.active {
  background: var(--primary-dark);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  transform: translateX(5px);
}

/* Document Content */
.legal-document {
  background: var(--bg-color);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.legal-section {
  margin-bottom: 3rem;
  scroll-margin-top: 120px;
}

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

.legal-section-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-dark);
  position: relative;
}

.legal-section-title::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--primary-color);
}

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

.legal-section h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 2rem 0 1rem;
}

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

.legal-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
  line-height: 1.6;
}

.legal-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.legal-link {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.legal-link:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.legal-contact {
  background: var(--primary-dark);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  margin-top: 1.5rem;
}

.legal-contact p {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

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

/* Dark Mode Adjustments */
[data-theme="dark"] .legal-hero {
  background: linear-gradient(
    135deg,
    var(--dark-bg) 0%,
    var(--dark-surface) 100%
  );
}

[data-theme="dark"] .legal-sidebar,
[data-theme="dark"] .legal-document {
  background: var(--dark-surface);
  border-color: var(--dark-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .legal-contact {
  background: var(--dark-bg);
}

[data-theme="dark"] .about-hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.2) 0%,
    rgba(var(--primary-rgb), 0.4) 100%
  );
}

[data-theme="dark"] .legal-text-content {
  background: var(--dark-surface);
  border-color: var(--dark-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .legal-hero-title {
    font-size: 2.5rem;
  }

  .legal-sidebar {
    position: static;
    margin-bottom: 2rem;
  }

  .legal-document {
    padding: 2rem;
  }

  .legal-hero {
    padding: 100px 0 60px;
  }

  .legal-content {
    padding: 60px 0;
  }

  .about-hero-title {
    font-size: 2.5rem;
  }

  .about-hero-stats {
    gap: 2rem;
  }

  .about-stat-number {
    font-size: 2rem;
  }

  .legal-text-content {
    padding: 2rem;
  }
}

@media (max-width: 767.98px) {
  .legal-hero-title {
    font-size: 2rem;
  }

  .legal-hero-subtitle {
    font-size: 1.1rem;
  }

  .legal-document {
    padding: 1.5rem;
  }

  .legal-section-title {
    font-size: 1.5rem;
  }

  .legal-hero-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .about-hero-title {
    font-size: 2rem;
  }

  .about-hero-subtitle {
    font-size: 1.1rem;
  }

  .about-hero-stats {
    gap: 1.5rem;
  }

  .about-stat-number {
    font-size: 1.75rem;
  }

  .legal-text-content {
    padding: 1.5rem;
  }

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

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Print Styles */
@media print {
  .legal-sidebar,
  .navbar,
  .footer {
    display: none !important;
  }

  .legal-document {
    box-shadow: none;
    border: none;
    padding: 0;
  }

  .legal-section {
    break-inside: avoid;
  }
}
