/* Legal Pages Styles - Privacy Policy and Terms of Service */

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Main container layout for legal pages */
.legal-page {
  padding: 20px 0;
  background-color: var(--bg-light);
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header section */
.legal-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.legal-header h1 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.last-updated {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.privacy-notice {
  background-color: rgba(229, 57, 53, 0.1);
  border-left: 4px solid var(--accent-color);
  padding: 15px;
  border-radius: 0 4px 4px 0;
  margin: 20px 0;
}

.privacy-notice p {
  margin: 0;
  line-height: 1.6;
}

/* Table of Contents */
.toc-container {
  background-color: var(--bg-white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 30px 0;
  border: 1px solid var(--border-color);
}

.toc-container h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-align: center;
  border-bottom: none;
}

.toc-container p {
  margin: 8px 0;
  padding: 5px 0;
}

.toc-container a {
  color: var(--secondary-color);
  font-weight: 600;
  display: block;
  padding: 5px 0;
  transition: var(--transition);
  text-decoration: none;
}

.toc-container a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

/* Content sections */
.title {
  margin: 40px 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.title:first-of-type {
  margin-top: 0;
}

.title h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  padding-left: 10px;
}

.title h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  height: 24px;
  width: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.anchor-link {
  position: absolute;
  left: -30px;
  opacity: 0;
  transition: var(--transition);
  color: var(--secondary-color);
  font-weight: bold;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 2px 5px;
  border-radius: 3px;
}

.title:hover .anchor-link {
  opacity: 0.4;
}

.anchor-link:hover {
  opacity: 1 !important;
  background-color: rgba(57, 73, 171, 0.1);
}

.title a {
  color: inherit;
  text-decoration: none;
}

/* Paragraph styles */
.legal-content p {
  margin-bottom: 15px;
  line-height: 1.7;
  color: var(--text-dark);
}

.legal-content strong {
  font-weight: 600;
  color: var(--primary-color);
}

.highlight {
  background-color: rgba(57, 73, 171, 0.1);
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 600;
}

/* Lists in legal content */
.legal-content ul {
  margin: 15px 0 15px 20px;
  list-style: disc;
}

.legal-content ol {
  margin: 15px 0 15px 20px;
  list-style: decimal;
}

.legal-content li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Enhanced legal content styling */
.legal-content {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.7;
  text-align: justify;
}

.legal-content b, .legal-content strong {
  color: var(--primary-color);
  font-weight: 600;
}

.legal-content em {
  font-style: italic;
}

.legal-content hr {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 30px 0;
}

/* Numbered list styling for legal sections */
.numbered-list {
  counter-reset: item;
}

.numbered-list > li {
  counter-increment: item;
  display: block;
  margin-bottom: 10px;
}

.numbered-list > li:before {
  content: counters(item, ".") ". ";
  margin-right: 5px;
  font-weight: 600;
}

/* Definition lists for legal terms */
dt {
  font-weight: 600;
  margin-top: 15px;
  color: var(--primary-color);
}

dd {
  margin-left: 20px;
  margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .legal-container {
    max-width: 800px;
    padding: 0 15px;
  }
  
  .legal-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .legal-header h1 {
    font-size: 1.8rem;
  }
  
  .toc-container {
    padding: 15px;
  }
  
  .title h3 {
    font-size: 1.2rem;
  }
  
  .legal-container {
    padding: 0 15px;
  }
}

@media (max-width: 576px) {
  .legal-header h1 {
    font-size: 1.5rem;
  }
  
  .title {
    padding: 15px 0;
  }
  
  .title h3 {
    font-size: 1.1rem;
  }
  
  .toc-container h3 {
    font-size: 1.1rem;
  }
}

/* Print styles */
@media print {
  .toc-container {
    box-shadow: none;
    border: 1px solid var(--border-color);
  }
  
  .anchor-link {
    display: none;
  }
}