/* ==========================================================================
   Ultra-Premium Law & Policy Details Stylesheet
   ========================================================================== */

/* Hero Section Refinements */
.legal-details-hero {
  background: linear-gradient(135deg, #fff0f5 0%, #f7f3ff 50%, #ffffff 100%);
  position: relative;
  padding: 50px 0 40px;
  border-bottom: 1px solid #f3e8ee;
}

.legal-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e01e5a;
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(224, 30, 90, 0.25);
}

.legal-details-hero-title {
  font-size: 38px;
  font-weight: 600;
  color: #1f1435;
  letter-spacing: -0.5px;
  margin-top: 12px;
  margin-bottom: 10px;
}

.legal-details-hero-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #64748b;
  max-width: 720px;
}

.legal-hero-widget {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 28px;
  border: 1.5px solid #f1e2e9;
  box-shadow: 0 15px 35px rgba(31, 20, 53, 0.07);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.legal-hero-widget:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(224, 30, 90, 0.12);
  border-color: #fce4ec;
}

.legal-hero-widget-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff0f4 0%, #ffe4ec 100%);
  color: #e01e5a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

/* Main Article Document Card */
.legal-document-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  border: 1.5px solid #f1e2e8;
  box-shadow: 0 20px 45px rgba(31, 20, 53, 0.05);
  position: relative;
}

.legal-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1.5px solid #f1f5f9;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-doc-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-weight: 600;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
}

.legal-doc-date {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 600;
}

/* Rich Content Formatting inside Article */
.policy-details-rich-content {
  color: #334155;
  font-size: 16px;
  line-height: 1.8;
}

.policy-details-rich-content h2 {
  font-size: 28px;
  font-weight: 600;
  color: #1f1435;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.policy-details-rich-content .lead {
  font-size: 17px;
  font-weight: 500;
  color: #475569;
  line-height: 1.7;
}

.policy-details-rich-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f1435;
  margin-top: 28px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-details-rich-content h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background: #e01e5a;
  border-radius: 4px;
}

.policy-details-rich-content p {
  margin-bottom: 18px;
}

.policy-details-rich-content ul {
  padding-left: 20px;
  margin-bottom: 24px;
}

.policy-details-rich-content li {
  margin-bottom: 8px;
}

/* Callout Highlight Box */
.legal-callout-box {
  background: linear-gradient(135deg, #fff5f8 0%, #fff0f4 100%);
  border-left: 4px solid #e01e5a;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
}

.legal-callout-box h4 {
  font-size: 16px;
  font-weight: 600;
  color: #e01e5a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-callout-box p {
  font-size: 15px;
  color: #475569;
  margin-bottom: 0;
}

/* Sidebar Navigation Styling */
.legal-sidebar-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  border: 1.5px solid #f1e2e9;
  box-shadow: 0 15px 35px rgba(31, 20, 53, 0.05);
  margin-bottom: 24px;
}

.legal-sidebar-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f1435;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #f8fafc;
}

.legal-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 14px;
  color: #475569;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  margin-bottom: 6px;
  border: 1px solid transparent;
}

.legal-nav-link:hover {
  background: #fff5f8;
  color: #e01e5a;
  transform: translateX(4px);
  border-color: #fce4ec;
}

.legal-nav-link.active {
  background: linear-gradient(135deg, #e01e5a 0%, #c2174d 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(224, 30, 90, 0.3);
}

.legal-nav-link .badge-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.legal-nav-link.active .badge-num {
  background: #ffffff;
  color: #e01e5a;
}

/* Sidebar Dark CTA Card */
.legal-cta-card {
  background: linear-gradient(135deg, #1f1435 0%, #341a52 100%);
  border-radius: 20px;
  padding: 32px 28px;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(31, 20, 53, 0.2);
}

.legal-cta-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(224, 30, 90, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.legal-cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #ff528f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 18px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-legal-call {
  background: #ffffff;
  color: #1f1435;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-legal-call:hover {
  background: #e01e5a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(224, 30, 90, 0.4);
}

/* Responsive */
@media (max-width: 991.98px) {
  .legal-details-hero {
    padding: 24px 0 35px 0 !important;
    background: linear-gradient(to bottom, #fde8ef 0%, #fff2f6 30%, #ffffff 65%, #f1e4fc 100%) !important;
  }
  .legal-details-hero-title {
    font-size: 28px;
  }
  .legal-hero-widget {
    margin-top: 20px;
  }
}
