/* ==========================================================================
   Sri Chakra Multi Speciality Hospital
   Legal, Policy & Sitemap Pages Stylesheet (Desktop & Responsive)
   ========================================================================== */

:root {
  --legal-primary: #00a8ec;
  --legal-primary-dark: #0084ba;
  --legal-dark: #081626;
  --legal-dark-card: #0c233c;
  --legal-text: #334155;
  --legal-text-muted: #64748b;
  --legal-border: #e2e8f0;
  --legal-bg-light: #f8fafc;
  --legal-card-bg: #ffffff;
  --legal-radius: 16px;
  --legal-shadow: 0 10px 30px rgba(8, 22, 38, 0.06);
  --legal-shadow-hover: 0 16px 40px rgba(0, 168, 236, 0.12);
}

/* Base Wrapper */
.legal-page-wrapper {
  background-color: #ffffff;
  min-height: 100vh;
  padding: 20px 0 80px 0;
  font-family: var(--font-body, 'Poppins', sans-serif);
  color: var(--legal-text);
}

.legal-container {
  max-width: 1350px;
  margin: 0 auto;
}

/* ==========================================================================
   1. HERO BANNER SECTION
   ========================================================================== */
.legal-hero-card {
  position: relative;
  width: 100%;
  min-height: 600px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 40px;
  background: url('../images/common-banner-img.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(8, 22, 38, 0.12);
}

.legal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(0 0 0 / 73%) 0%, rgb(0 0 0 / 26%) 100%);
  z-index: 1;
}

.legal-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: 40px 20px;
}

.legal-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 168, 236, 0.25);
  border: 1px solid rgba(0, 168, 236, 0.5);
  backdrop-filter: blur(8px);
  color: #38bdf8;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.legal-hero-title {
  font-family: var(--font-heading, 'Roboto', sans-serif);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px 0;
  color: #ffffff;
}

.legal-breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.legal-breadcrumbs a {
  color: #38bdf8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-breadcrumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.legal-breadcrumbs .separator {
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   2. MAIN CONTENT LAYOUT
   ========================================================================== */
.legal-layout-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: start;
}

.legal-layout-single {
  display: block;
}

/* Sidebar Navigation (Sticky) */
.legal-sidebar {
  position: sticky;
  top: 100px;
  background: #ffffff;
  border-radius: var(--legal-radius);
  padding: 24px;
  box-shadow: var(--legal-shadow);
  border: 1px solid var(--legal-border);
}

.legal-sidebar-title {
  font-family: var(--font-heading, 'Roboto', sans-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--legal-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--legal-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.legal-toc-link {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--legal-text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.legal-toc-link:hover,
.legal-toc-link.active {
  background: rgba(0, 168, 236, 0.08);
  color: var(--legal-primary-dark);
  font-weight: 600;
  padding-left: 18px;
}

.legal-sidebar-contact {
  margin-top: 24px;
  padding: 16px;
  background: var(--legal-bg-light);
  border-radius: 12px;
  border-left: 3px solid var(--legal-primary);
  font-size: 13px;
  line-height: 1.5;
}

.legal-sidebar-contact h4 {
  font-size: 14px;
  margin: 0 0 6px 0;
  color: var(--legal-dark);
}

.legal-sidebar-contact p {
  margin: 0 0 8px 0;
  color: var(--legal-text-muted);
}

.legal-sidebar-contact a {
  color: var(--legal-primary-dark);
  font-weight: 600;
  text-decoration: none;
}

/* Main Body Card */
.legal-content-card {
  background: #ffffff;
  border-radius: var(--legal-radius);
  padding: 44px;
  box-shadow: var(--legal-shadow);
  border: 1px solid var(--legal-border);
}

/* Header Metadata */
.legal-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--legal-border);
  font-size: 13.5px;
  color: var(--legal-text-muted);
}

.legal-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legal-meta-item strong {
  color: var(--legal-dark);
}

/* Section Blocks */
.legal-section {
  margin-bottom: 40px;
  scroll-margin-top: 120px;
}

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

.legal-section-title {
  font-family: var(--font-heading, 'Roboto', sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--legal-dark);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(0, 168, 236, 0.12);
  color: var(--legal-primary);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.legal-paragraph {
  font-size: 15px;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 16px;
}

.legal-list {
  margin: 0 0 20px 0;
  padding-left: 20px;
  color: #475569;
  font-size: 15px;
  line-height: 1.8;
}

.legal-list li {
  margin-bottom: 8px;
}

.legal-list li strong {
  color: var(--legal-dark);
}

/* Highlights & Callout Boxes */
.legal-callout-box {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: #166534;
}

.legal-callout-box.info {
  background: #f0f9ff;
  border-left-color: #0284c7;
  color: #0369a1;
}

.legal-callout-box.warning {
  background: #fffbeb;
  border-left-color: #d97706;
  color: #92400e;
}

.legal-callout-box.danger {
  background: #fef2f2;
  border-left-color: #dc2626;
  color: #991b1b;
}

.legal-callout-box h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Summary Cards / Key Points */
.legal-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.legal-mini-card {
  background: var(--legal-bg-light);
  border: 1px solid var(--legal-border);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.legal-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.legal-mini-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--legal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.legal-mini-card h4 {
  font-size: 16px;
  color: var(--legal-dark);
  margin: 0 0 6px 0;
  font-weight: 600;
}

.legal-mini-card p {
  font-size: 13.5px;
  color: var(--legal-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   3. SITEMAP STYLING
   ========================================================================== */
.sitemap-intro {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 40px auto;
}

.sitemap-intro h2 {
  font-family: var(--font-heading, 'Roboto', sans-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--legal-dark);
  margin-bottom: 12px;
}

.sitemap-intro p {
  font-size: 15px;
  color: var(--legal-text-muted);
  line-height: 1.7;
}

.sitemap-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.sitemap-category-card {
  background: #ffffff;
  border-radius: var(--legal-radius);
  border: 1px solid var(--legal-border);
  padding: 28px;
  box-shadow: var(--legal-shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sitemap-category-card:hover {
  border-color: rgba(0, 168, 236, 0.4);
  box-shadow: var(--legal-shadow-hover);
  transform: translateY(-3px);
}

.sitemap-category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--legal-border);
}

.sitemap-category-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 168, 236, 0.12) 0%, rgba(56, 189, 248, 0.18) 100%);
  color: var(--legal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sitemap-category-title {
  font-family: var(--font-heading, 'Roboto', sans-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--legal-dark);
  margin: 0;
}

.sitemap-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.sitemap-link-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sitemap-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--legal-dark);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sitemap-link svg {
  color: var(--legal-primary);
  transition: transform 0.2s ease;
}

.sitemap-link:hover {
  color: var(--legal-primary);
}

.sitemap-link:hover svg {
  transform: translateX(3px);
}

.sitemap-link-desc {
  font-size: 12.5px;
  color: var(--legal-text-muted);
  line-height: 1.5;
  padding-left: 20px;
}

/* ==========================================================================
   4. COOKIES TABLE & CONTROLS
   ========================================================================== */
.legal-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 12px;
  border: 1px solid var(--legal-border);
}

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

.legal-table th {
  background: var(--legal-bg-light);
  color: var(--legal-dark);
  padding: 14px 18px;
  font-weight: 600;
  border-bottom: 1px solid var(--legal-border);
}

.legal-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--legal-border);
  color: #475569;
  line-height: 1.6;
}

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

.legal-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.legal-badge.essential {
  background: #e0f2fe;
  color: #0284c7;
}

.legal-badge.functional {
  background: #f0fdf4;
  color: #16a34a;
}

.legal-badge.analytics {
  background: #fef3c7;
  color: #d97706;
}

/* ==========================================================================
   5. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .legal-layout-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .legal-sidebar {
    position: static;
  }

  .legal-hero-title {
    font-size: 34px;
  }

  .legal-content-card {
    padding: 30px 24px;
  }
}

@media (max-width: 600px) {
  .legal-hero-card {
    min-height: 200px;
    border-radius: 18px;
  }

  .legal-hero-title {
    font-size: 28px;
  }

  .legal-content-card {
    padding: 24px 16px;
    border-radius: 14px;
  }

  .legal-section-title {
    font-size: 19px;
  }

  .sitemap-category-card {
    padding: 20px;
  }
}
