.legacy-inner-section {
  position: relative;
}

body.page-servicedel-v5 .legacy-inner-section {
  padding-top: clamp(2.8rem, 4vw, 4.5rem) !important;
  padding-bottom: clamp(2.8rem, 4vw, 4.5rem) !important;
}

body.page-servicedel-v5 .legacy-inner-section + .legacy-inner-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.page-servicedel-v5 .legacy-inner-section .container {
  max-width: 1240px;
}

.legacy-inner-section .card {
  background: rgba(10, 14, 38, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.legacy-inner-section .card:hover {
  border-color: rgba(59, 150, 255, 0.45) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.legacy-inner-panel {
  background: rgba(10, 14, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: clamp(1rem, 2vw, 1.5rem);
}

body.page-servicedel-v5 .legacy-inner-panel {
  background: linear-gradient(180deg, rgba(12, 16, 42, 0.95) 0%, rgba(7, 10, 28, 0.94) 100%);
  border-color: rgba(59, 150, 255, 0.16);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.32);
}

.legacy-inner-title {
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

body.page-servicedel-v5 .legacy-inner-title {
  font-weight: 700;
  color: #ffffff;
}

.legacy-inner-kicker {
  letter-spacing: 0.09em;
  color: #82b8ff !important;
}

.legacy-inner-card-title {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.45;
  color: #ffffff;
}

.legacy-inner-copy {
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.72) !important;
}

.legacy-inner-lead {
  max-width: 1100px;
  color: rgba(255, 255, 255, 0.75) !important;
}

.legacy-inner-accordion .legacy-inner-accordion-item {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0.85rem;
  background: rgba(10, 14, 38, 0.72);
}

.legacy-inner-accordion .legacy-inner-accordion-btn {
  box-shadow: none !important;
  font-weight: 600;
  color: #ffffff;
}

.legacy-inner-accordion .legacy-inner-accordion-btn:not(.collapsed) {
  background: rgba(59, 150, 255, 0.12);
  color: #9fccff;
}

body.page-servicedel-v5 .legacy-inner-intro {
  background: linear-gradient(90deg, rgba(8, 13, 37, 0.9) 0%, rgba(19, 27, 72, 0.55) 100%);
}

body.page-servicedel-v5 .legacy-inner-intro .legacy-inner-lead {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}

body.page-servicedel-v5 .legacy-inner-section .badge.text-bg-dark {
  background-color: rgba(23, 32, 80, 0.9) !important;
  color: #d2e6ff !important;
}

body.page-servicedel-v5 .legacy-inner-section a.text-primary {
  color: #8dc3ff !important;
}

body.page-servicedel-v5 .legacy-inner-section a.text-primary:hover {
  color: #b8dbff !important;
}

@media (max-width: 767px) {
  .legacy-inner-section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* Inner pages only (footer is outside <main>; home uses .page-index-v5): headings at semibold (600) or bold → normal (400) */
body:not(.page-index-v5) main h1:not(.inner-hero-title):not(.hero-title-v5),
body:not(.page-index-v5) main h2,
body:not(.page-index-v5) main h3,
body:not(.page-index-v5) main h4,
body:not(.page-index-v5) main h5,
body:not(.page-index-v5) main h6 {
  font-weight: 400 !important;
}

body:not(.page-index-v5) main .sd-section-title,
body:not(.page-index-v5) main .sd-pane-title,
body:not(.page-index-v5) main .parallax-title {
  font-weight: 400 !important;
}

body:not(.page-index-v5) main .display-1,
body:not(.page-index-v5) main .display-2,
body:not(.page-index-v5) main .display-3,
body:not(.page-index-v5) main .display-4,
body:not(.page-index-v5) main .display-5,
body:not(.page-index-v5) main .display-6 {
  font-weight: 400 !important;
}

body:not(.page-index-v5) main .insights-hero-title,
body:not(.page-index-v5) main .insights-hero-title .gradient-text-cyan,
body:not(.page-index-v5) main .detail-title {
  font-weight: 400 !important;
}
