/* Terms & Conditions Page Styles */

/* Header Styles */
.terms-header {
  background-color: var(--bs-light);
  padding-top: 80px;
}

.terms-header h1 {
  color: var(--bs-primary);
}

/* Content Styles */
.terms-content {
  background-color: #fff;
}

.terms-container {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 2.5rem;
}

/* Table of Contents */
.terms-toc {
  background-color: rgba(var(--bs-primary-rgb), 0.05);
  border-radius: 8px;
  padding: 1.5rem 2rem;
}

.toc-list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.toc-list li {
  margin-bottom: 10px;
  flex-basis: calc(33.333% - 20px);
}

.toc-list a {
  color: var(--bs-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-block;
  padding: 5px 0;
}

.toc-list a:hover {
  color: var(--bs-primary-dark);
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .toc-list li {
    flex-basis: calc(50% - 20px);
  }
}

@media (max-width: 576px) {
  .toc-list li {
    flex-basis: 100%;
  }
}

/* Section Styles */
.terms-section {
  padding-top: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 2rem;
}

.terms-section:last-child {
  border-bottom: none;
}

.terms-section h2 {
  color: var(--bs-primary);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.terms-section h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.terms-subsection {
  margin-left: 1rem;
}

/* List Styles */
.terms-list {
  padding-left: 1.5rem;
}

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

.terms-list ul {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Acceptance Box */
.acceptance-box {
  background-color: rgba(var(--bs-primary-rgb), 0.05);
  border-left: 4px solid var(--bs-primary);
  border-radius: 6px;
  font-weight: 500;
  text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .terms-container {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .terms-container {
    padding: 1rem;
  }
  
  .terms-toc {
    padding: 1rem;
  }
}

/* Scroll to section smoothly */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Adjust based on your navbar height */
}

/* Active section highlighting */
.terms-section:target {
  animation: highlight 2s ease-out;
}

@keyframes highlight {
  0% {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
  }
  100% {
    background-color: transparent;
  }
}
