/* ===== Algemene Voorwaarden / Legal Pages ===== */
.legal-page {
  padding: 40px 0 60px;
  color: #343a40;
  background-color: #f8f9fa;
}

.legal-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.legal-header h1 {
  margin-bottom: 10px;
  color: #28283d;
  font-size: 2.2rem;
}

.legal-updated {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0;
  font-style: italic;
}

.legal-content {
  margin-bottom: 60px;
}

.legal-toc {
  position: sticky;
  top: 100px;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.legal-toc-header {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
}

.legal-toc-header h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
  color: #28283d;
}

.legal-toc-list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 0;
}

.legal-toc-list li {
  margin-bottom: 10px;
}

.legal-toc-list a {
  color: #495057;
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.legal-toc-list a:hover {
  background-color: #e9ecef;
  color: #fe5416;
}

.legal-toc-list a.active {
  background-color: #fe5416;
  color: #ffffff;
  font-weight: 500;
}

.legal-sections {
  padding: 0 15px;
}

.legal-section {
  margin-bottom: 40px;
  padding-bottom: 20px;
}

.legal-section:not(:last-child) {
  border-bottom: 1px solid #e9ecef;
}

.legal-section h2 {
  color: #28283d;
  margin-bottom: 20px;
  font-size: 1.6rem;
  position: relative;
  padding-bottom: 10px;
}

.legal-section h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: #fe5416;
}

.legal-section h3 {
  color: #28283d;
  margin: 25px 0 15px;
  font-size: 1.3rem;
}

.legal-section p,
.legal-section li {
  color: #495057;
  line-height: 1.7;
  margin-bottom: 15px;
}

.legal-section ul,
.legal-section ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.legal-section table {
  margin-bottom: 30px;
}

.legal-section table th {
  background-color: #f8f9fa;
  color: #28283d;
  font-weight: 600;
}

.legal-section a {
  color: #fe5416;
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

/* Responsive aanpassingen */
@media (max-width: 991.98px) {
  .legal-header h1 {
    font-size: 1.8rem;
  }
  
  .legal-section h2 {
    font-size: 1.5rem;
  }
  
  .legal-section h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 767.98px) {
  .legal-page {
    padding: 30px 0 40px;
  }
  
  .legal-header {
    margin-bottom: 30px;
  }
  
  .legal-header h1 {
    font-size: 1.5rem;
  }
  
  .legal-section {
    margin-bottom: 30px;
  }
  
  .legal-section h2 {
    font-size: 1.3rem;
  }
  
  .legal-section h3 {
    font-size: 1.1rem;
  }
}

/* Dark mode aanpassingen */
body.dark-mode .legal-page {
  color: #dee2e6;
}

body.dark-mode .legal-header {
  border-bottom-color: #3a3a4c;
}

body.dark-mode .legal-header h1 {
  color: #f8f9fa;
}

body.dark-mode .legal-updated {
  color: #adb5bd;
}

body.dark-mode .legal-toc {
  background-color: #2c2c3a;
}

body.dark-mode .legal-toc-header {
  border-bottom-color: #3a3a4c;
}

body.dark-mode .legal-toc-list a {
  color: #e9ecef;
}

body.dark-mode .legal-toc-list a:hover {
  background-color: #3a3a4c;
}

body.dark-mode .legal-section:not(:last-child) {
  border-bottom-color: #3a3a4c;
}

body.dark-mode .legal-section h2,
body.dark-mode .legal-section h3 {
  color: #f8f9fa;
}

body.dark-mode .legal-section p,
body.dark-mode .legal-section li {
  color: #e9ecef;
}

body.dark-mode .legal-section table th {
  background-color: #3a3a4c;
  color: #f8f9fa;
}

body.dark-mode .legal-section table {
  color: #e9ecef;
}

body.dark-mode .legal-section table td,
body.dark-mode .legal-section table th {
  border-color: #3a3a4c;
}

body.dark-mode .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.05);
} 