/**
 * Redesign Dental Clinics — Legal Pages Design System
 * Clean, modern, accessible styling for Privacy, Terms, Cookies & Licenses
 */

/* Hero Section */
.legal-hero-section {
  position: relative;
  padding: 140px 0 50px;
  background: radial-gradient(ellipse at 50% 0%, rgba(13, 148, 136, 0.25) 0%, rgba(2, 20, 23, 1) 75%);
  border-bottom: 1px solid rgba(13, 148, 136, 0.2);
  text-align: center;
}

.legal-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.legal-breadcrumbs a {
  color: #2dd4bf;
  text-decoration: none;
  transition: color 0.2s;
}

.legal-breadcrumbs a:hover {
  color: #5eead4;
}

.legal-hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #ffffff;
  margin: 12px 0 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.legal-hero-sub {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.legal-meta-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.legal-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(13, 148, 136, 0.12);
  border: 1px solid rgba(13, 148, 136, 0.28);
  color: #2dd4bf;
  font-size: 13px;
  font-weight: 500;
}

/* Quick Navigation Tabs */
.legal-tabs-bar {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  margin-top: 10px;
  max-width: 100%;
  overflow-x: auto;
}

.legal-tab-item {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.legal-tab-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.legal-tab-item.is-active {
  background: #0d9488;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
}

/* Main Layout Grid */
.legal-main-section {
  padding: 60px 0 100px;
  background: #021417;
}

.legal-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 991px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .legal-sidebar {
    position: static !important;
  }
}

.legal-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-toc-card {
  background: rgba(5, 38, 42, 0.6);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(12px);
}

.legal-toc-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2dd4bf;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #cbd5e1;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.legal-toc-link:hover {
  color: #2dd4bf;
  background: rgba(13, 148, 136, 0.12);
  transform: translateX(4px);
}

.legal-toc-num {
  font-size: 11px;
  font-weight: 700;
  color: #2dd4bf;
  background: rgba(13, 148, 136, 0.2);
  border-radius: 4px;
  padding: 2px 6px;
  min-width: 22px;
  text-align: center;
}

.legal-help-card {
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.15) 0%, rgba(5, 38, 42, 0.7) 100%);
  border: 1px solid rgba(13, 148, 136, 0.3);
  border-radius: 16px;
  padding: 24px;
}

.legal-help-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.legal-help-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 16px;
}

.legal-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #e2e8f0;
  margin-bottom: 10px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-contact-item:hover {
  color: #2dd4bf;
}

/* Main Content Card */
.legal-content-card {
  background: rgba(5, 38, 42, 0.55);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: 20px;
  padding: 44px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

@media (max-width: 767px) {
  .legal-content-card {
    padding: 28px 20px;
  }
}

.legal-section {
  margin-bottom: 44px;
  scroll-margin-top: 110px;
}

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

.legal-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(13, 148, 136, 0.2);
}

.legal-section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(13, 148, 136, 0.2);
  border: 1px solid rgba(13, 148, 136, 0.4);
  color: #2dd4bf;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.legal-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.legal-body-text {
  font-size: 15.5px;
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-body-text a {
  color: #2dd4bf;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body-text a:hover {
  color: #5eead4;
}

.legal-highlight-box {
  background: rgba(13, 148, 136, 0.1);
  border-left: 4px solid #0d9488;
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 20px 0;
  color: #e2e8f0;
  font-size: 14.5px;
  line-height: 1.7;
}

.legal-bullet-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.6;
}

.legal-bullet-icon {
  width: 18px;
  height: 18px;
  color: #2dd4bf;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Cookie Table */
.legal-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: 12px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.legal-table th {
  background: rgba(13, 148, 136, 0.2);
  color: #2dd4bf;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(13, 148, 136, 0.3);
}

.legal-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

/* Bottom Help Banner */
.legal-bottom-cta {
  background: linear-gradient(180deg, #021417 0%, #031c21 100%);
  border-top: 1px solid rgba(13, 148, 136, 0.2);
  padding: 70px 0;
  text-align: center;
}
