/*============================
Legal Pages Styles
============================*/
.legal-section {
  padding-top: 120px;
  padding-bottom: 4rem;
}

.legal-section .section-heading {
  margin-bottom: 2rem;
}

.policy-date {
  margin-top: -20px;
  color: #72767D;
  font-style: italic;
  text-align: center;
}

.legal-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.legal-toc {
  flex: 0 0 250px;
  position: sticky;
  top: 100px;
  align-self: flex-start;
  background-color: #F6F6F6;
  border-radius: 1rem;
  padding: 1.5rem;
}

.legal-toc h3 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

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

.legal-toc li {
  margin-bottom: 0.25rem;
}

.legal-toc a {
  color: #2E3137;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.legal-toc a:hover {
  color: #5865F2;
}

.legal-section-content {
  flex: 1;
  min-width: 300px;
}

.legal-section-content h2 {
  font-size: 1.5rem;
  color: #1E1F22;
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid #E3E5E8;
}

.legal-section-content h3 {
  font-size: 1.25rem;
  color: #5865F2;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

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

.legal-section-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.legal-section-content li {
  margin-bottom: 0.25rem;
  line-height: 1.6;
}

.legal-section-content a {
  color: #5865F2;
  text-decoration: underline;
}

.legal-section-content a:hover {
  text-decoration: none;
}

@media (max-width: 991px) {
  .legal-content {
    flex-direction: column;
  }
  
  .legal-toc {
    flex: 0 0 100%;
    position: relative;
    top: 0;
    margin-bottom: 1rem;
  }
}