/* Legal Information Page Styles */

/* Hero Section */
.legal-hero {
  background-image: url("../images/legal-bg.png");
  background-color: #fff;
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  min-height: calc(100vh - 80px);
  position: relative;
}

.legal-layout {
  display: flex;
  gap: 0;
  padding: 50px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Left Sidebar */
.legal-sidebar {
  flex: 0 0 330px;
  padding: 0;
  border-right: 1.008px solid #e0e0e0;
}

.legal-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-menu li {
  position: relative;
  &::after {
    content: "";
    display: block;
    height: 1.008px;
    background-color: #ededed;
    width: calc(100% - 20px);
    position: absolute;
    left: 0;
    bottom: 0;
  }
}

.legal-menu-item {
  display: block;
  padding: 25.008px 20px 25.008px 35.008px;
  color: #333;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
  border-radius: 0;
  position: relative;
  height: 74px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  border-radius: 36px;
  position: relative;
}

.legal-menu-item::before {
  content: "";
  position: absolute;
  left: 15.008px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: #ccc;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.legal-menu-item.active,
.legal-menu-item:hover {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(14, 106, 205, 0.2) 100%
  );
  color: #0e6acd;
  font-weight: 500;
}

.legal-menu-item.active::before {
  background-color: #0e6acd;
}
.legal-menu-item.active::after {
  content: "";
  display: block;
  background-color: #0e6acd;
  height: 20px;
  width: 5.008px;
  border-radius: 3.008px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* Right Content Area */
.legal-main {
  flex: 1;
  background: white;
  padding: 0 40px;
  min-height: 600px;
}

.legal-main ul li {
  color: #333333;
  opacity: 70%;
  position: relative;
}

.legal-main ul {
  padding-left: 20px;
}

.legal-section {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
  padding-top: 25.008px;
}

.legal-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-title {
  font-weight: 600;
  font-size: 34px;
  color: #333333;
  line-height: 48px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin-bottom: 1.25rem;
}
.paragraph, .paragraph-title {
  margin-bottom: 12px;
  line-height: 24px;
  color: #333333;
  opacity: 70%;
}
.legal-main .text-sub-title {
  font-family: Poppins, Poppins;
  font-weight: 600;
  font-size: 1.5rem;
  color: #333333;
  line-height: 1.76rem;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin-bottom: 1rem;
}
.paragraph-title {
  margin-bottom: 1.875rem;
  line-height: 2.125rem;
}

/* Loading animation */
.legal-section.loading {
  opacity: 0.7;
  pointer-events: none;
}

.mobile-layout {
  display: none;
}

/* Highlight effect for active content */
.legal-section.active {
  position: relative;
}

.legal-section.active::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(25, 118, 210, 0.05),
    transparent
  );
  border-radius: 15.008px;
  z-index: -1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* 1200px */
@media (max-width: 1200px) {
  .legal-layout {
    flex-direction: column;
    padding: 0 1rem;
    width: 100%;
  }
  .legal-main {
    padding: 0;
  }
}

/* 768px */
@media (max-width: 768px) {
  .legal-layout {
    display: none;
  }
  .mobile-layout {
    display: block;
  }
  .accordion .accordion-header {
    padding: 1.25rem;
    color: #333;
    font-size: 1.75rem;
    background-color: #fff;
    box-shadow: 0px 0px 50px 0px rgba(79,79,79,0.1);
    border-radius: 0.5rem;
    margin: 1.25rem 0;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .accordion .accordion-header img {
    width: 1.75rem;
  }

  .text-title {
    font-size: 2rem;
  }
  
  .accordion .accordion-content {
    padding: 1.875rem 1.5rem;
    background-color: #FFF;
    box-shadow: 0px 0px 3.125rem 0px rgba(79,79,79,0.1);
    border-radius: .625rem;
    font-size: 1.625rem;
  }

  .legal-hero {
    background-image: url("../images/legal-m-bg.png");
  }
}
