.legal-content {
  line-height: 1.8;
  color: #344767;
}

.legal-content h2 {
  color: #344767;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.legal-content h2:first-of-type {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.legal-content h3 {
  color: #344767;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.legal-content ul, 
.legal-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

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

.legal-content p {
  margin-bottom: 1.25rem;
  text-align: justify;
}

.legal-content strong {
  font-weight: 600;
  color: #252f40;
}

.legal-content a {
  color: #17c1e8;
  text-decoration: none;
}

.legal-content a:hover {
  color: #0d8aa8;
  text-decoration: underline;
}

.legal-content .table-responsive {
  margin: 1.5rem 0;
}

.legal-content table {
  font-size: 0.9rem;
}

.legal-content table th {
  background-color: #f8f9fa;
  border-color: #e9ecef;
  font-weight: 600;
  color: #344767;
}

.legal-content table td {
  border-color: #e9ecef;
}

.legal-content code {
  background-color: #f8f9fa;
  color: #e91e63;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
}

.table-of-contents a {
  text-decoration: none;
  color: #344767;
  font-size: 0.9rem;
  line-height: 1.5;
}

.table-of-contents a:hover {
  color: #17c1e8;
  text-decoration: underline;
}

.table-of-contents ol {
  padding-left: 1.2rem;
}

.table-of-contents li {
  margin-bottom: 0.5rem;
}

/* Cookie banner specific styles */
.cookie-banner .card {
  border: none;
  box-shadow: 0 20px 27px 0 rgba(0, 0, 0, 0.05);
}

.cookie-categories .card {
  border: 1px solid #e9ecef;
  box-shadow: none;
  background-color: rgba(255, 255, 255, 0.8);
}

@media print {
  .page-header, 
  .btn, 
  .table-of-contents,
  .cookie-banner,
  .cookie-overlay {
    display: none !important;
  }
  
  .legal-content {
    padding: 0;
  }
  
  .legal-content h2 {
    page-break-after: avoid;
  }
}