/* Legal pages modern layout */
/* Uses existing theme variables from style.css */

.legal-page { padding: 2rem 0 3rem; }

.legal-wrapper { display: flex; }

.legal-sidebar { position: -webkit-sticky; position: sticky; top: 100px; align-self: flex-start; }
.legal-sidebar .legal-toc { 
  background: #fff; 
  border: 1px solid rgba(0,0,0,.06);
  border-radius: .75rem; 
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  padding: 1rem; 
}
.legal-toc .toc-title { 
  font-size: .85rem; 
  letter-spacing: .06em; 
  text-transform: uppercase; 
  color: #6b7580; 
  margin-bottom: .5rem; 
}
.legal-toc .nav { flex-direction: column; }
.legal-toc .nav-link { 
  padding: .35rem .25rem; 
  color: #36424f;
}
.legal-toc .nav-link:hover { color: var(--main-green); text-decoration: none; }

.legal-content { }
.legal-content h2 { font-size: 1.25rem; padding-left: .5rem; border-left: 4px solid var(--main-green); margin: 1rem 0 .5rem; }

.legal-card { 
  background: #fff; 
  border: 1px solid rgba(0,0,0,.06); 
  border-radius: .75rem; 
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
  padding: 1.25rem 1.25rem; 
  margin-bottom: 1rem; 
}

.legal-card + .legal-card { margin-top: 1rem; }

.legal-section { scroll-margin-top: 100px; }
.legal-section + .legal-section { margin-top: 1rem; }

.legal-title { display: flex; align-items: center; margin-bottom: .75rem; }
.legal-title .icon { 
  display: inline-flex; align-items: center; justify-content: center; 
  width: 34px; height: 34px; border-radius: .5rem; 
  background: var(--main-green); color: #111; margin-right: .5rem;
}
.legal-title h2 { font-size: 1.25rem; margin: 0; }

.legal-meta { color: #6b7580; font-size: .95rem; }

.legal-content p { line-height: 1.75; margin-bottom: .75rem; }
.legal-content ul { margin: .5rem 0 .75rem 1.2rem; }
.legal-content li { margin-bottom: .25rem; }
.legal-content a { font-weight: 600; }

/* Tables */
.legal-table { overflow-x: auto; }
.legal-table table { background: #fff; }
.legal-table thead th { background: #f7f9fb; font-weight: 700; }
.legal-table td, .legal-table th { vertical-align: top; }

/* Overrides legacy #legals block when present */
#legals { font-weight: normal; line-height: 1.75; }
#legals i, #legals .bold { font-size: inherit; }

@media (max-width: 991.98px) {
  .legal-sidebar { position: static; margin-bottom: 1rem; }
}
