/* ==========================================================================
   LEGAL / PRIVACY POLICY PAGE STYLES (ASI 2026)
   ========================================================================== */

.legal-hero-section {
  background: linear-gradient(135deg, #071222 0%, #0d1f3c 60%, #152b4f 100%);
  color: #ffffff;
  padding: clamp(36px, 4.5vw, 56px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 3px solid #e11d2a;
}

.legal-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  box-sizing: border-box;
}

.legal-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.legal-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}

.legal-breadcrumb a:hover {
  color: #ffffff;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(225, 29, 42, 0.18);
  border: 1px solid rgba(225, 29, 42, 0.45);
  color: #fda4af;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.legal-hero-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: #ffffff;
}

.legal-hero-subtitle {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 780px;
}

.legal-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 7px 14px;
  border-radius: 8px;
}

/* Content Layout */
.legal-content-section {
  background-color: #f8fafc;
  padding: clamp(32px, 4vw, 56px) 0 clamp(48px, 6vw, 76px);
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

/* Sticky Table of Contents */
.legal-toc-card {
  position: sticky;
  top: 96px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.legal-toc-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b;
}

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

.legal-toc-list a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.legal-toc-list a:hover {
  background-color: #fef2f2;
  color: #e11d2a;
}

/* Main Legal Document Card */
.legal-doc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: clamp(24px, 3.5vw, 44px);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.legal-section {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
  scroll-margin-top: 96px;
}

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

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  color: #0b1728;
  letter-spacing: -0.2px;
}

.legal-section h3 {
  margin: 16px 0 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: #1e293b;
}

.legal-section p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #334155;
}

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

.legal-section ul {
  margin: 8px 0 14px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-section li {
  font-size: 14.5px;
  line-height: 1.65;
  color: #334155;
}

.legal-section a {
  color: #e11d2a;
  font-weight: 600;
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

.legal-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 14px 0;
}

.legal-contact-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
}

.legal-contact-box p {
  margin: 0 0 6px;
  font-size: 14px;
}

.legal-contact-box p:last-child {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .legal-contact-grid {
    grid-template-columns: 1fr;
  }
}
