/* ==========================================================================
   TERMS OF SERVICE PAGE LAYOUT FRAMEWORK
   ========================================================================== */
.tb-legal-page-wrapper {
  background-color: #f8fafc;
  color: #334155;
}

/* Legal Header Hero */
.tb-legal-hero {
  background-color: #ffffff;
  padding: 60px 0 40px 0;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}

.tb-legal-eyebrow {
  color: #446084;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.tb-legal-hero h2 {
  font-size: 36px;
  color: #1e293b;
  font-weight: 800;
  margin: 0 0 10px 0;
}

.tb-legal-last-updated {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

/* Two-Column Grid Setup */
.tb-legal-body-section {
  padding: 60px 0;
}

.tb-legal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  align-items: start;
}

/* Sticky Sidebar Sub-Nav Styling */
.tb-legal-sidebar {
  position: sticky;
  top: 40px;
}

.sticky-nav-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.sticky-nav-card h4 {
  margin: 0 0 15px 0;
  font-size: 14px;
  text-transform: uppercase;
  color: #1e293b;
  letter-spacing: 0.5px;
  font-weight: 700;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 8px;
}

.legal-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 450px;
  overflow-y: auto;
}

.legal-nav-links li a {
  display: block;
  padding: 8px 12px;
  color: #64748b;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.legal-nav-links li a:hover,
.legal-nav-links li a.active {
  background-color: #f1f5f9;
  color: #446084;
  font-weight: 600;
}

/* Legal Content Blocks */
.tb-legal-content-panel {
  background: #ffffff;
  padding: 50px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.legal-text-block {
  margin-bottom: 40px;
  scroll-margin-top: 40px; /* Aligns correctly on anchor link clicks */
}

.legal-text-block:last-child {
  margin-bottom: 0;
}

.legal-text-block h3 {
  font-size: 20px;
  color: #1e293b;
  margin: 0 0 15px 0;
  font-weight: 700;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
}

.legal-text-block p {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  margin: 0 0 15px 0;
}

.legal-text-block p a {
  color: #446084;
  font-weight: 600;
  text-decoration: none;
}

/* Call To Action Banner Strip */
.tb-missing-parts-banner {
  background-color: #446084;
  color: #ffffff;
  padding: 30px 0;
}

.missing-flex-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.missing-text-zone h3 {
  margin: 0 0 4px 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
}
.missing-text-zone p {
  margin: 0;
  color: #cbd5e1;
  font-size: 15px;
}

.tb-phone-btn {
  background-color: #ffb703;
  color: #0f172a;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Responsive Strategy Rules */
@media (max-width: 991px) {
  .tb-legal-grid {
    grid-template-columns: 1fr;
  }
  .tb-legal-sidebar {
    display: none; /* Hide sidebar list navigation on smaller devices */
  }
  .tb-legal-content-panel {
    padding: 30px;
  }
  .missing-flex-wrapper {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
