/*
 * Shatter Law Firm — legacy page skin (loads after global.css)
 * Matches the Astro shell: navy / blue / sky / light gray
 */

:root {
  --sf-navy: #051d40;
  --sf-navy-mid: #0a2a5c;
  --sf-blue: #4a90e2;
  --sf-sky: #87ceeb;
  --sf-ink: #f8f9fa;
  --sf-muted: #eef3f9;
  --sf-text: #444444;
  --sf-text-muted: #555555;
  --sf-text-dim: #666666;
  --sf-border: rgba(5, 29, 64, 0.08);
  --sf-shadow: 0 8px 30px rgba(5, 29, 64, 0.08);
  --sf-shadow-hover: 0 16px 40px rgba(5, 29, 64, 0.12);
  --sf-radius: 12px;
}

body {
  background: var(--sf-ink) !important;
  color: var(--sf-text) !important;
}

.legacy-page-body {
  background: var(--sf-ink);
}

/* ── Typography ─────────────────────────────────────────────────── */

.legacy-content {
  color: var(--sf-text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

.legacy-content :is(h1, h2, h3, h4, h5, h6) {
  font-family: 'League Spartan', system-ui, sans-serif;
  color: var(--sf-navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.legacy-content :is(p, li) {
  color: var(--sf-text-muted);
}

.legacy-content a:not(:is(.btn-primary, .cta-primary, .cta-btn, .practice-area-btn, .case-cta, .category-card-visual, .article-slide, a.article-slide)) {
  color: #357abd;
  text-decoration-color: rgba(53, 122, 189, 0.35);
}

.legacy-content a:not(:is(.btn-primary, .cta-primary, .cta-btn, .practice-area-btn, .case-cta, .category-card-visual, .article-slide, a.article-slide)):hover {
  color: var(--sf-blue);
}

.legacy-content .navy-heading {
  color: var(--sf-navy) !important;
}

/* ── Section rhythm ─────────────────────────────────────────────── */

.legacy-content > section,
.legacy-content :is(
  .mission-section,
  .values-section,
  .case-details-section,
  .eligibility-section,
  .faq-section,
  .practice-areas-main,
  .featured-articles,
  .knowledge-search,
  .info-list-section,
  .leadership-structure,
  .knowledge-faq
) {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .legacy-content > section,
  .legacy-content :is(.mission-section, .values-section, .case-details-section, .eligibility-section, .faq-section, .practice-areas-main) {
    padding: 5rem 0;
  }
}

.legacy-content :is(
  .values-section,
  .case-details-section,
  .eligibility-section,
  .faq-section,
  .practice-areas-main,
  .featured-articles,
  .info-list-section
) {
  background: #ffffff;
}

.legacy-content :is(.mission-section:not(.blue-bg), .leadership-structure, .featured-articles) {
  background: var(--sf-ink);
}

.legacy-content .section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.legacy-content .section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.legacy-content .section-header h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sf-blue), var(--sf-sky));
}

.legacy-content .section-header p,
.legacy-content .section-subtitle {
  color: var(--sf-text-dim) !important;
  font-size: 1.0625rem;
}

.legacy-content .mission-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.legacy-content .mission-content h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.legacy-content .mission-content h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sf-blue), var(--sf-sky));
}

.legacy-content .mission-section.blue-bg .mission-content h2::after,
.legacy-content .pledge-section-with-bg .mission-content h2::after {
  background: linear-gradient(90deg, var(--sf-sky), var(--sf-blue));
}

.legacy-content .mission-content p {
  font-size: 1.0625rem;
}

/* ── Navy sections ──────────────────────────────────────────────── */

.legacy-content :is(
  .blue-bg,
  .mission-section.blue-bg,
  .pledge-section-with-bg,
  .mission-section-with-bg,
  .who-we-are-preview,
  .firm-stats,
  .why-choose
) {
  background: linear-gradient(160deg, var(--sf-navy) 0%, var(--sf-navy-mid) 100%) !important;
  color: #ffffff;
  overflow: hidden;
}

.legacy-content .pledge-section-with-bg .mission-section-background,
.legacy-content .mission-section-with-bg .mission-section-background {
  display: block !important;
}

.legacy-content .pledge-section-with-bg .mission-section-overlay,
.legacy-content .mission-section-with-bg .mission-section-overlay {
  background: linear-gradient(160deg, rgba(5, 29, 64, 0.9) 0%, rgba(10, 42, 92, 0.85) 100%) !important;
}

.legacy-content :is(.blue-bg, .who-we-are-preview, .firm-stats, .why-choose, .knowledge-faq) .section-header h2,
.legacy-content .blue-bg .mission-content :is(h2, h3),
.legacy-content .blue-bg .navy-heading,
.legacy-content .pledge-text {
  color: #ffffff !important;
}

.legacy-content :is(.blue-bg, .who-we-are-preview, .firm-stats, .why-choose, .knowledge-faq) .section-header p,
.legacy-content :is(.blue-bg, .who-we-are-preview, .firm-stats, .why-choose, .knowledge-faq) .section-subtitle {
  color: rgba(255, 255, 255, 0.88) !important;
}

.legacy-content :is(.blue-bg, .who-we-are-preview, .firm-stats, .why-choose, .knowledge-faq) .section-header h2::after {
  background: linear-gradient(90deg, var(--sf-sky), var(--sf-blue));
}

/* ── Cards ──────────────────────────────────────────────────────── */

.legacy-content :is(
  .value-item,
  .benefit-item,
  .case-detail-card,
  .eligibility-card,
  .approach-item,
  .stat-item,
  .practice-area-card,
  .knowledge-article,
  .faq-item,
  .comparison-box,
  .key-takeaway,
  .info-box,
  .info-list-item,
  .discovery-box,
  .process-box,
  .warning-box
) {
  position: relative;
  overflow: hidden;
  background: #ffffff !important;
  border: 1px solid var(--sf-border) !important;
  border-radius: var(--sf-radius) !important;
  box-shadow: var(--sf-shadow) !important;
  padding: 1.5rem 1.35rem !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.legacy-content :is(
  .value-item,
  .benefit-item,
  .case-detail-card,
  .eligibility-card,
  .approach-item,
  .practice-area-card,
  .knowledge-article,
  .faq-item,
  .info-list-item
)::before {
  content: '' !important;
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sf-blue), var(--sf-sky));
  border-radius: var(--sf-radius) var(--sf-radius) 0 0;
}

.legacy-content :is(.values-grid, .benefits-grid, .approach-grid, .eligibility-grid) {
  align-items: stretch;
}

.legacy-content :is(
  .value-item,
  .benefit-item,
  .case-detail-card,
  .practice-area-card,
  .knowledge-article,
  .eligibility-card
):hover {
  transform: translateY(-2px);
  box-shadow: var(--sf-shadow-hover) !important;
}

.legacy-content :is(
  .value-item,
  .benefit-item,
  .case-detail-card,
  .eligibility-card,
  .approach-item,
  .stat-item,
  .faq-item,
  .knowledge-article,
  .info-list-item
) :is(h3, h4) {
  color: var(--sf-navy) !important;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.legacy-content :is(
  .value-item,
  .benefit-item,
  .case-detail-card,
  .eligibility-card,
  .approach-item,
  .stat-item,
  .faq-item,
  .knowledge-article,
  .info-list-item
) :is(p, li) {
  color: var(--sf-text-muted) !important;
}

.legacy-content .mission-section.blue-bg .value-item h3,
.legacy-content .mission-section.blue-bg .benefit-item h3,
.legacy-content .who-we-are-preview .value-item h3,
.legacy-content .why-choose .benefit-item h3 {
  color: var(--sf-navy) !important;
}

.legacy-content .mission-section.blue-bg .value-item p,
.legacy-content .mission-section.blue-bg .benefit-item p,
.legacy-content .who-we-are-preview .value-item p,
.legacy-content .why-choose .benefit-item p {
  color: var(--sf-text-muted) !important;
}

/* Icons */
.legacy-content :is(.value-icon, .benefit-icon, .eligibility-icon, .case-icon, .practice-area-icon) {
  width: 44px !important;
  height: 44px !important;
  margin: 0 0 1rem !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, var(--sf-blue), var(--sf-sky)) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
}

.legacy-content :is(.value-icon, .benefit-icon, .eligibility-icon, .case-icon, .practice-area-icon):empty {
  display: none !important;
}

.legacy-content :is(.value-icon, .benefit-icon, .eligibility-icon, .case-icon, .practice-area-icon) svg {
  width: 22px !important;
  height: 22px !important;
  color: var(--sf-navy) !important;
  fill: currentColor !important;
}

.legacy-content .approach-number {
  color: var(--sf-blue) !important;
  font-size: 1.75rem;
  font-weight: 800;
  font-family: 'League Spartan', system-ui, sans-serif;
}

.legacy-content .stat-item {
  text-align: center;
  padding: 1.75rem 1.25rem !important;
}

.legacy-content .stat-item .stat-number {
  color: var(--sf-blue) !important;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  font-family: 'League Spartan', system-ui, sans-serif;
  line-height: 1;
}

.legacy-content .stat-item .stat-label {
  color: var(--sf-text-dim) !important;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Practice area cards */
.legacy-content a.practice-area-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 1rem !important;
  text-decoration: none !important;
  color: inherit !important;
}

.legacy-content .practice-areas-main .intro-text {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 1.0625rem;
  color: var(--sf-text-muted) !important;
}

.legacy-content .practice-area-btn,
.legacy-content .case-count {
  color: var(--sf-blue) !important;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* FAQ */
.legacy-content .faq-question h3 {
  color: var(--sf-navy) !important;
  font-size: 1.05rem;
  margin: 0;
}

.legacy-content .faq-toggle {
  color: var(--sf-blue);
  font-size: 1.35rem;
  font-weight: 300;
}

.legacy-content .faq-answer p {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--sf-border);
}

/* Images */
.legacy-content .case-details-image img,
.legacy-content .section-image img,
.legacy-content .core-values-image img {
  width: 100%;
  height: auto;
  border-radius: var(--sf-radius);
  box-shadow: var(--sf-shadow);
}

/* Articles */
.legacy-content--article .article-content {
  background: #ffffff;
  padding: 2.5rem 0 3.5rem;
}

.legacy-content .article-body h2 {
  color: var(--sf-navy) !important;
  font-size: 1.6rem;
  margin-top: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sf-blue);
}

.legacy-content .article-body h3 {
  color: var(--sf-navy) !important;
  margin-top: 1.5rem;
}

.legacy-content .article-disclaimer,
.legacy-content .disclaimer {
  padding: 1rem 1.15rem;
  border-radius: var(--sf-radius);
  background: var(--sf-muted);
  border-left: 3px solid var(--sf-blue);
  font-size: 0.925rem;
}

/* Legacy buttons */
.legacy-content :is(.cta-primary, .form-submit) {
  background: var(--sf-sky) !important;
  color: var(--sf-navy) !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  padding: 0.75rem 1.5rem !important;
  border: none !important;
  text-decoration: none !important;
  display: inline-flex !important;
}

.legacy-content :is(.cta-secondary, .cta-btn-large) {
  background: transparent !important;
  color: var(--sf-navy) !important;
  border: 2px solid var(--sf-navy) !important;
  border-radius: 6px !important;
  padding: 0.75rem 1.5rem !important;
  text-decoration: none !important;
}

.legacy-content .blue-bg :is(.cta-secondary, .btn-outline) {
  color: var(--sf-navy) !important;
  background: var(--sf-sky) !important;
  border-color: var(--sf-sky) !important;
}

/* Knowledge hub — search + categories combined */
.legacy-content--knowledge-hub .knowledge-categories.knowledge-browse {
  background: linear-gradient(160deg, var(--sf-navy) 0%, var(--sf-navy-mid) 55%, #0d3268 100%) !important;
  padding: 4rem 0 4.5rem !important;
}

.legacy-content--knowledge-hub .knowledge-browse-intro {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
}

.legacy-content--knowledge-hub .knowledge-browse-intro h2 {
  color: #ffffff !important;
  font-family: 'League Spartan', system-ui, sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.legacy-content--knowledge-hub .knowledge-browse-intro h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sf-sky), var(--sf-blue));
}

.legacy-content--knowledge-hub .knowledge-browse-intro > p {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.legacy-content--knowledge-hub .knowledge-browse-intro .search-container {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.legacy-content--knowledge-hub .search-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sf-sky) !important;
}

.legacy-content--knowledge-hub .search-box {
  display: flex;
  align-items: stretch;
  border-radius: var(--sf-radius) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  overflow: hidden;
  background: #ffffff;
}

.legacy-content--knowledge-hub .search-input {
  flex: 1;
  padding: 0.9rem 1.15rem !important;
  border: none !important;
  font-size: 1rem;
  color: var(--sf-text) !important;
  background: transparent;
}

.legacy-content--knowledge-hub .search-input::placeholder {
  color: var(--sf-text-dim);
}

.legacy-content--knowledge-hub .search-btn {
  background: var(--sf-blue) !important;
  color: #fff !important;
  padding: 0 1.15rem !important;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.legacy-content--knowledge-hub .search-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.legacy-content--knowledge-hub .search-status {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92) !important;
}

.legacy-content--knowledge-hub .category-card-visual.is-hidden {
  display: none !important;
}

.legacy-content--knowledge-hub .knowledge-categories {
  background: linear-gradient(160deg, var(--sf-navy) 0%, var(--sf-navy-mid) 100%) !important;
  padding: 4rem 0 !important;
}

.legacy-content--knowledge-hub .knowledge-categories .section-header h2,
.legacy-content--knowledge-hub .knowledge-categories .section-header p {
  color: #ffffff !important;
}

.legacy-content--knowledge-hub .category-card-visual {
  position: relative !important;
  display: block !important;
  height: 300px !important;
  min-height: 300px !important;
  border: none !important;
  border-radius: var(--sf-radius) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25) !important;
  padding: 0 !important;
  overflow: hidden !important;
  text-decoration: none !important;
  background: var(--sf-navy-mid) !important;
}

.legacy-content--knowledge-hub .category-card-visual::before {
  display: none !important;
}

.legacy-content--knowledge-hub .category-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.legacy-content--knowledge-hub .category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.legacy-content--knowledge-hub .category-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(5, 29, 64, 0.2) 0%,
    rgba(5, 29, 64, 0.92) 100%
  );
}

.legacy-content--knowledge-hub .category-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  pointer-events: none;
}

.legacy-content--knowledge-hub .category-content :is(h3, p, span) {
  color: #ffffff !important;
}

.legacy-content--knowledge-hub .category-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.legacy-content--knowledge-hub .category-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  opacity: 0.95;
}

.legacy-content--knowledge-hub .category-link-visual {
  font-weight: 600;
  font-size: 0.9rem;
}

.legacy-content--knowledge-hub .featured-articles {
  padding: 4rem 0 !important;
  background: var(--sf-ink) !important;
}

.legacy-content--knowledge-hub .featured-articles .section-header h2 {
  color: var(--sf-navy) !important;
}

.legacy-content--knowledge-hub .featured-articles .section-header p {
  color: var(--sf-text-dim) !important;
}

.legacy-content--knowledge-hub .articles-carousel-wrapper {
  position: relative;
  margin-top: 2rem;
  padding: 0 3rem;
  overflow: hidden;
}

.legacy-content--knowledge-hub .articles-carousel {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.4s ease;
  will-change: transform;
}

.legacy-content--knowledge-hub :is(a.article-slide, .article-slide) {
  flex: 0 0 calc(100% - 0px);
  min-width: 0;
  background: #ffffff !important;
  border: 1px solid var(--sf-border) !important;
  border-radius: var(--sf-radius) !important;
  box-shadow: var(--sf-shadow) !important;
  padding: 1.5rem !important;
  text-decoration: none;
  color: inherit;
  height: auto !important;
}

@media (min-width: 768px) {
  .legacy-content--knowledge-hub :is(a.article-slide, .article-slide) {
    flex: 0 0 calc(50% - 0.625rem);
  }
}

@media (min-width: 1024px) {
  .legacy-content--knowledge-hub :is(a.article-slide, .article-slide) {
    flex: 0 0 calc(33.333% - 0.85rem);
  }
}

.legacy-content--knowledge-hub :is(a.article-slide, .article-slide).is-hidden {
  display: none !important;
}

.legacy-content--knowledge-hub .article-slide .article-category {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(74, 144, 226, 0.12);
  color: #357abd !important;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legacy-content--knowledge-hub .article-slide h3 {
  color: var(--sf-navy) !important;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.legacy-content--knowledge-hub .article-slide p {
  color: var(--sf-text-muted) !important;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.legacy-content--knowledge-hub .article-slide .article-meta {
  font-size: 0.8rem;
  color: var(--sf-text-dim);
}

.legacy-content--knowledge-hub .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: #fff !important;
  border: 2px solid var(--sf-navy) !important;
  color: var(--sf-navy) !important;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.legacy-content--knowledge-hub .carousel-prev {
  left: 0;
}

.legacy-content--knowledge-hub .carousel-next {
  right: 0;
}

.legacy-content--knowledge-hub .carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.legacy-content--knowledge-hub .carousel-btn svg {
  width: 22px;
  height: 22px;
}

.legacy-content--knowledge-hub .carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.legacy-content--knowledge-hub .carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(5, 29, 64, 0.2);
  cursor: pointer;
  padding: 0;
}

.legacy-content--knowledge-hub .carousel-dot.active {
  background: var(--sf-blue);
}

.legacy-content--knowledge-hub .articles-grid {
  gap: 1.25rem;
}

.legacy-content--knowledge-hub .articles-grid .knowledge-article {
  text-decoration: none;
  color: inherit;
}

.legacy-content--knowledge-hub .articles-grid .knowledge-article.is-hidden {
  display: none !important;
}

.legacy-content .category-card-visual .category-content :is(h3, p, span) {
  color: #ffffff !important;
}

/* Hide duplicate legacy chrome */
.legacy-content :is(.cta-logo-img, .why-choose-img, .contact-logo-img, .page-header-background, .page-header-bg-image) {
  display: none !important;
}

/* ── Override legacy inline styles ──────────────────────────────── */

.legacy-content .faq-section[style] {
  background: #ffffff !important;
  padding: 4rem 0 !important;
}

.legacy-content .faq-section .section-header h2[style] {
  color: var(--sf-navy) !important;
}

.legacy-content .faq-section .section-subtitle[style] {
  color: var(--sf-text-dim) !important;
}

.legacy-content [style*='color: #ffffff'] {
  color: inherit;
}

.legacy-content .mission-section.blue-bg [style*='color: #ffffff'],
.legacy-content .pledge-section-with-bg [style*='color: #ffffff'],
.legacy-content .why-choose [style*='color: #ffffff'],
.legacy-content .firm-stats [style*='color: #ffffff'] {
  color: #ffffff !important;
}

/* ── Page-type shells ───────────────────────────────────────────── */

.legacy-content--article,
.legacy-content--legal {
  background: #ffffff;
}

.legacy-content--article > .article-content,
.legacy-content--legal > .knowledge-article,
.legacy-content--article .article-content:first-child,
.legacy-content--legal .article-content {
  padding: 3rem 0 4rem;
}

.legacy-content--case .mission-section:first-of-type,
.legacy-content--practice .mission-section:first-of-type,
.legacy-content--page .mission-section:first-of-type {
  background: var(--sf-ink);
}

.legacy-content--case .case-details-section {
  background: #ffffff !important;
}

.legacy-content--case .eligibility-section {
  background: var(--sf-ink) !important;
}

.legacy-content--case .info-list-section {
  background: linear-gradient(160deg, var(--sf-navy) 0%, var(--sf-blue) 52%, #3a7bc8 100%) !important;
}

.legacy-content--case .faq-section,
.legacy-content--page .faq-section {
  background: var(--sf-ink) !important;
}

/* ── Content boxes (case & article callouts) ────────────────────── */

.legacy-content :is(
  .comparison-box,
  .key-takeaway,
  .info-box,
  .discovery-box,
  .process-box,
  .warning-box,
  .evidence-box
) {
  margin: 1.5rem 0;
}

.legacy-content .warning-box {
  border-left: 4px solid #e67e22 !important;
  background: #fff8f0 !important;
}

.legacy-content .warning-box::before {
  background: #e67e22 !important;
}

.legacy-content .key-takeaway,
.legacy-content .info-box {
  background: var(--sf-muted) !important;
}

.legacy-content .key-takeaway :is(h3, h4),
.legacy-content .info-box :is(h3, h4),
.legacy-content .discovery-box :is(h3, h4),
.legacy-content .process-box :is(h3, h4),
.legacy-content .evidence-box :is(h3, h4),
.legacy-content .warning-box :is(h3, h4),
.legacy-content .comparison-box :is(h3, h4) {
  color: var(--sf-navy) !important;
}

/* ── Case details layout ────────────────────────────────────────── */

.legacy-content .case-details-section {
  padding: 4rem 0;
}

.legacy-content .case-details-content :is(h3, h4) {
  color: var(--sf-navy);
  font-family: 'League Spartan', system-ui, sans-serif;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.legacy-content .case-details-content p,
.legacy-content .case-details-content li {
  color: var(--sf-text-muted);
}

.legacy-content .case-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  box-shadow: var(--sf-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.legacy-content .case-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--sf-shadow-hover);
}

.legacy-content .case-item h3 {
  text-align: left !important;
  margin-bottom: 0.65rem;
}

.legacy-content .case-item p {
  flex: 1;
  text-align: left !important;
  margin-bottom: 1.25rem !important;
}

.legacy-content .case-item .case-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.65rem 1.25rem;
  background: var(--sf-navy) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  transition: background 0.2s ease, transform 0.2s ease;
}

.legacy-content .case-item .case-cta:hover {
  background: var(--sf-blue) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.legacy-content--practice-area .values-section .values-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .legacy-content--practice-area .values-section .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .legacy-content--practice-area .values-section .values-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── Approach / process steps ───────────────────────────────────── */

.legacy-content .approach-content h3 {
  color: var(--sf-navy) !important;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.legacy-content .approach-content p {
  color: var(--sf-text-muted) !important;
  font-size: 0.95rem;
}

.legacy-content .approach-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Core values & leadership ─────────────────────────────────────── */

.legacy-content .core-values-text :is(h2, h3) {
  color: var(--sf-navy);
  font-family: 'League Spartan', system-ui, sans-serif;
}

.legacy-content .core-values-text p {
  color: var(--sf-text-muted);
}

.legacy-content .leadership-structure {
  background: #ffffff;
  padding: 4rem 0;
}

.legacy-content .pledge-conclusion {
  max-width: 720px;
  margin: 2.5rem auto 0;
  text-align: center;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.9) !important;
}

/* ── Articles & legal pages ─────────────────────────────────────── */

.legacy-content .article-meta {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--sf-border);
}

.legacy-content .effective-date,
.legacy-content .read-time,
.legacy-content .views {
  color: var(--sf-text-dim);
  font-size: 0.9rem;
}

.legacy-content .article-section {
  margin-bottom: 2rem;
}

.legacy-content .article-section :is(h2, h3) {
  color: var(--sf-navy);
  font-family: 'League Spartan', system-ui, sans-serif;
}

.legacy-content .article-body :is(ul, ol) {
  margin: 1rem 0 1.5rem 1.25rem;
  padding-left: 1rem;
}

.legacy-content .article-body li {
  margin-bottom: 0.5rem;
}

.legacy-content .related-articles,
.legacy-content .related-links {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sf-border);
}

.legacy-content .related-articles h3,
.legacy-content .related-links h3 {
  color: var(--sf-navy);
  font-family: 'League Spartan', system-ui, sans-serif;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.legacy-content .related-link {
  display: block;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: var(--sf-radius);
  border: 1px solid var(--sf-border);
  background: var(--sf-ink);
  color: var(--sf-navy) !important;
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.legacy-content .related-link:hover {
  border-color: var(--sf-blue);
  box-shadow: var(--sf-shadow);
  color: var(--sf-blue) !important;
}

.legacy-content--legal .knowledge-article,
.legacy-content--legal .article-content {
  max-width: 720px;
  margin: 0 auto;
}

/* ── Knowledge tools & categories ───────────────────────────────── */

.legacy-content .knowledge-tools {
  background: #ffffff;
  padding: 3rem 0;
}

.legacy-content .knowledge-tools .section-header h2 {
  color: var(--sf-navy);
}

.legacy-content .tools-grid > * {
  background: var(--sf-ink);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  padding: 1.25rem;
}

.legacy-content .categories-grid-visual {
  margin-top: 2rem;
}

/* ── Articles grid (non-carousel) ───────────────────────────────── */

.legacy-content .articles-grid {
  gap: 1.25rem;
}

.legacy-content .articles-grid .knowledge-article {
  text-decoration: none;
}

/* ── Intro & pledge text ────────────────────────────────────────── */

.legacy-content .intro-text p {
  color: var(--sf-text-muted) !important;
}

.legacy-content .pledge-text {
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* ── Section content side-by-side ───────────────────────────────── */

.legacy-content .section-content-wrapper,
.legacy-content .core-values-content {
  gap: 2rem;
}

@media (min-width: 900px) {
  .legacy-content .section-content-wrapper,
  .legacy-content .core-values-content {
    gap: 3rem;
  }
}

/* ── FAQ page alternating bands ─────────────────────────────────── */

.legacy-content .faq-section:nth-of-type(even) {
  background: var(--sf-ink) !important;
}

.legacy-content .faq-section:nth-of-type(odd) {
  background: #ffffff !important;
}

@media (max-width: 768px) {
  .legacy-content > section,
  .legacy-content :is(.mission-section, .values-section, .case-details-section) {
    padding: 2.75rem 0;
  }

  .legacy-content--knowledge-hub a.article-slide {
    flex: 0 0 100% !important;
  }
}

/* ── Elevated inner pages (homepage parity) ─────────────────────── */

.legacy-content--elevated > section:first-of-type {
  padding-top: 5rem;
}

.legacy-content--elevated .mission-content {
  max-width: 760px;
}

.legacy-content--elevated .mission-content p {
  font-size: 1.125rem;
  line-height: 1.75;
}

/* Who We Are */
.legacy-content--who-we-are .values-section {
  background: #ffffff;
}

.legacy-content--who-we-are .pledge-section-with-bg .values-grid--pledge {
  display: grid !important;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .legacy-content--who-we-are .pledge-section-with-bg .values-grid--pledge {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .legacy-content--who-we-are .pledge-section-with-bg .values-grid--pledge {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.legacy-content--who-we-are .pledge-section-with-bg .value-item--numbered {
  padding: 1.75rem 1.5rem !important;
}

.legacy-content--who-we-are .pledge-section-with-bg .value-item--numbered .benefit-number {
  display: block;
  margin-bottom: 1rem;
  font-family: 'League Spartan', system-ui, sans-serif;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--sf-blue) !important;
}

.legacy-content--who-we-are .pledge-section-with-bg .value-item--numbered h3 {
  font-size: 1.125rem !important;
  margin-bottom: 0.65rem;
}

.legacy-content--who-we-are .pledge-section-with-bg .value-item--numbered p {
  font-size: 0.975rem !important;
  line-height: 1.65;
  margin: 0;
}

.legacy-content--who-we-are .core-values-content {
  display: grid !important;
  gap: 2.5rem !important;
  align-items: stretch !important;
  margin-top: 0 !important;
}

@media (min-width: 900px) {
  .legacy-content--who-we-are .core-values-content {
    grid-template-columns: 1fr 1fr !important;
    gap: 3.5rem !important;
  }
}

.legacy-content--who-we-are .core-values-text .section-header--left {
  text-align: left;
  max-width: none;
  margin: 0 0 1.5rem;
}

.legacy-content--who-we-are .core-values-text .section-header--left h2 {
  color: #ffffff !important;
}

.legacy-content--who-we-are .core-values-text .section-header--left p {
  color: rgba(255, 255, 255, 0.88) !important;
}

.legacy-content--who-we-are .core-values-text .section-header--left h2::after {
  margin: 1rem 0 0;
  background: linear-gradient(90deg, var(--sf-sky), var(--sf-blue));
}

.legacy-content--who-we-are .core-values-text p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92) !important;
}

.legacy-content--who-we-are .core-values-text p + p {
  margin-top: 1.25rem;
}

.legacy-content--who-we-are .core-values-text strong {
  color: #ffffff;
  font-weight: 600;
}

.legacy-content--who-we-are .core-values-image {
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--sf-radius);
  box-shadow: 0 16px 48px rgba(5, 29, 64, 0.18);
}

.legacy-content--who-we-are .core-values-image img {
  width: 100%;
  height: 100% !important;
  min-height: 260px;
  object-fit: cover;
  object-position: center;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block;
}

@media (min-width: 900px) {
  .legacy-content--who-we-are .core-values-content {
    align-items: stretch !important;
  }

  .legacy-content--who-we-are .core-values-image {
    min-height: 100%;
    height: auto;
    align-self: stretch;
    display: flex;
  }

  .legacy-content--who-we-are .core-values-image img {
    flex: 1 1 auto;
    min-height: 100% !important;
    height: 100% !important;
  }
}

.legacy-content--who-we-are .firm-stats {
  position: relative;
}

.legacy-content--who-we-are .firm-stats-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.legacy-content--who-we-are .firm-stats-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.legacy-content--who-we-are .firm-stats .container {
  position: relative;
  z-index: 1;
}

.legacy-content--who-we-are .stat-item {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: none !important;
}

.legacy-content--who-we-are .stat-item::before {
  background: linear-gradient(90deg, var(--sf-sky), var(--sf-blue)) !important;
}

.legacy-content--who-we-are .stat-item .stat-number {
  color: var(--sf-sky) !important;
}

.legacy-content--who-we-are .stat-item .stat-label {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* Practice Areas hub */
.legacy-content--practice-hub .practice-areas-main {
  padding: 5rem 0;
}

.legacy-content--practice-hub .intro-text {
  max-width: 760px;
  margin-bottom: 3rem;
}

.legacy-content--practice-hub .intro-text p {
  font-size: 1.125rem;
  line-height: 1.75;
}

.legacy-content--practice-hub a.practice-area-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
  min-height: 100%;
  border-radius: 14px !important;
  box-shadow: 0 8px 30px rgba(5, 29, 64, 0.07) !important;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease !important;
}

.legacy-content--practice-hub .practice-area-card::before {
  height: 4px !important;
  background: linear-gradient(90deg, var(--sf-blue), var(--sf-sky)) !important;
}

.legacy-content--practice-hub .practice-area-card:hover {
  transform: translateY(-5px);
  border-color: rgba(74, 144, 226, 0.28) !important;
  box-shadow: 0 18px 44px rgba(5, 29, 64, 0.12) !important;
}

.legacy-content--practice-hub .practice-area-icon {
  width: 52px !important;
  height: 52px !important;
  margin: 1.65rem 1.65rem 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--sf-navy) 0%, var(--sf-navy-mid) 100%) !important;
  box-shadow: 0 8px 20px rgba(5, 29, 64, 0.14);
}

.legacy-content--practice-hub .practice-area-icon svg {
  width: 24px !important;
  height: 24px !important;
  color: var(--sf-sky) !important;
}

.legacy-content--practice-hub .practice-area-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem 1.65rem 1.65rem;
}

.legacy-content--practice-hub .practice-area-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.65rem;
  color: var(--sf-navy) !important;
}

.legacy-content--practice-hub .practice-area-card p {
  flex: 1;
  font-size: 0.975rem;
  line-height: 1.65;
  margin-bottom: 0;
  color: var(--sf-text-muted) !important;
}

.legacy-content--practice-hub .practice-area-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--sf-border);
}

.legacy-content--practice-hub .case-count {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(74, 144, 226, 0.1);
  color: #357abd !important;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.legacy-content--practice-hub .practice-area-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--sf-blue) !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.legacy-content--practice-hub .practice-area-btn::after {
  content: '→';
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.legacy-content--practice-hub .practice-area-card:hover .practice-area-btn::after {
  transform: translateX(3px);
}

.legacy-content--practice-hub .why-choose {
  padding: 5rem 0;
}

.legacy-content--practice-hub .why-choose .section-header {
  max-width: 640px;
  margin-bottom: 3rem;
}

.legacy-content--practice-hub .why-choose .section-subtitle {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
}

.legacy-content--practice-hub .why-choose .benefit-icon {
  display: none !important;
}

.legacy-content--practice-hub .why-choose .benefits-grid--featured {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.25rem;
}

@media (min-width: 900px) {
  .legacy-content--practice-hub .why-choose .benefits-grid--featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.legacy-content--practice-hub .why-choose .benefit-item--featured {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  padding: 1.75rem 1.5rem 1.85rem !important;
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.legacy-content--practice-hub .why-choose .benefit-item--featured::before {
  display: none !important;
}

.legacy-content--practice-hub .why-choose .benefit-item--featured:hover {
  transform: translateY(-3px);
  border-color: rgba(135, 206, 235, 0.45) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

.legacy-content--practice-hub .why-choose .benefit-number {
  display: block;
  margin-bottom: 1.1rem;
  font-family: 'League Spartan', system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--sf-sky) !important;
}

.legacy-content--practice-hub .why-choose .benefit-item--featured h3 {
  color: #ffffff !important;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.legacy-content--practice-hub .why-choose .benefit-item--featured p {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.975rem;
  line-height: 1.65;
  margin: 0;
}

.legacy-content--practice-hub .why-choose .benefits-grid--pillars {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .legacy-content--practice-hub .why-choose .benefits-grid--pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .legacy-content--practice-hub .why-choose .benefits-grid--pillars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

.legacy-content--practice-hub .why-choose .benefit-item--pillar {
  position: relative;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  padding: 1.35rem 1.25rem 1.35rem 1.4rem !important;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.legacy-content--practice-hub .why-choose .benefit-item--pillar::before {
  top: 0;
  left: 0;
  right: auto;
  bottom: 0;
  width: 3px;
  height: auto;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(180deg, var(--sf-sky), var(--sf-blue)) !important;
}

.legacy-content--practice-hub .why-choose .benefit-item--pillar:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(135, 206, 235, 0.3) !important;
  transform: none;
  box-shadow: none !important;
}

.legacy-content--practice-hub .why-choose .benefit-item--pillar h3 {
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.legacy-content--practice-hub .why-choose .benefit-item--pillar p {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

.legacy-content--practice-hub .firm-stats {
  position: relative;
}

.legacy-content--practice-hub .firm-stats-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.legacy-content--practice-hub .firm-stats-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.legacy-content--practice-hub .firm-stats .container {
  position: relative;
  z-index: 1;
}

/* Individual practice area pages */
.legacy-content--practice-area .mission-section:first-of-type {
  background: #ffffff;
  padding: 4.5rem 0;
}

.legacy-content--practice-area .case-details-section,
.legacy-content--practice-area .eligibility-section {
  background: var(--sf-ink);
}

.legacy-content--practice-area .faq-section {
  background: #ffffff !important;
}

/* Practice area approach sections — numbered steps, no icons */
.legacy-content--practice-area .practice-approach {
  background: var(--sf-ink);
  padding: 4.5rem 0;
}

.legacy-content--practice-area .practice-approach .section-header h2 {
  color: var(--sf-navy) !important;
}

.legacy-content--practice-area .practice-approach .values-grid--approach {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .legacy-content--practice-area .practice-approach .values-grid--approach {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .legacy-content--practice-area .practice-approach .values-grid--approach {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.legacy-content--practice-area .practice-approach .value-item--numbered {
  background: #ffffff !important;
  border: 1px solid var(--sf-border) !important;
  border-radius: var(--sf-radius) !important;
  box-shadow: var(--sf-shadow) !important;
  padding: 1.75rem 1.5rem !important;
}

.legacy-content--practice-area .practice-approach .value-item--numbered::before {
  display: none !important;
}

.legacy-content--practice-area .practice-approach .value-item--numbered .benefit-number {
  display: block;
  margin-bottom: 1rem;
  font-family: 'League Spartan', system-ui, sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--sf-blue) !important;
}

.legacy-content--practice-area .practice-approach .value-item--numbered h3 {
  color: var(--sf-navy) !important;
  font-size: 1.125rem;
  margin-bottom: 0.65rem;
}

.legacy-content--practice-area .practice-approach .value-item--numbered p {
  color: var(--sf-text-muted) !important;
  font-size: 0.975rem;
  line-height: 1.65;
  margin: 0;
}

/* FAQ page */
.legacy-content--faq .faq-section,
.legacy-content--faq .knowledge-faq {
  padding: 5rem 0 !important;
}

.legacy-content--faq .faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.legacy-content--faq .faq-item {
  padding: 0 !important;
  overflow: hidden;
  cursor: pointer;
}

.legacy-content--faq .faq-item::before {
  top: 0;
  left: 0;
  right: auto;
  bottom: 0;
  width: 3px;
  height: auto;
  background: linear-gradient(180deg, var(--sf-blue), var(--sf-sky));
  border-radius: var(--sf-radius) 0 0 var(--sf-radius);
}

.legacy-content--faq .faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem 1.25rem 1.5rem;
}

.legacy-content--faq .faq-question h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
}

.legacy-content--faq .faq-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(74, 144, 226, 0.1);
  font-size: 1.25rem;
  line-height: 1;
  transition: background 0.2s, transform 0.2s;
}

.legacy-content--faq .faq-item.is-open .faq-toggle {
  transform: rotate(45deg);
  background: rgba(74, 144, 226, 0.18);
}

.legacy-content--faq .faq-answer {
  padding: 0 1.5rem 1.25rem;
}

.legacy-content--faq .faq-answer p {
  margin: 0;
  padding-top: 0;
  border-top: none;
  font-size: 0.975rem;
  line-height: 1.7;
}

.legacy-content--faq .knowledge-faq {
  background: linear-gradient(160deg, var(--sf-navy) 0%, var(--sf-blue) 52%, #3a7bc8 100%) !important;
}

.legacy-content--faq .knowledge-faq .section-header h2,
.legacy-content--faq .knowledge-faq .section-header p {
  color: #ffffff !important;
}

.legacy-content--faq .knowledge-faq .section-header h2::after {
  background: linear-gradient(90deg, var(--sf-sky), var(--sf-blue));
}

.legacy-content--faq .knowledge-faq .faq-item {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}

.legacy-content--faq .knowledge-faq .faq-item::before {
  background: linear-gradient(180deg, var(--sf-sky), var(--sf-blue)) !important;
}

.legacy-content--faq .knowledge-faq .faq-question h3 {
  color: #ffffff !important;
}

.legacy-content--faq .knowledge-faq .faq-answer p {
  color: rgba(255, 255, 255, 0.88) !important;
}

.legacy-content--faq .knowledge-faq .faq-toggle {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Knowledge hub elevated */
.legacy-content--knowledge-hub.legacy-content--elevated .featured-articles {
  padding: 5rem 0 !important;
}

/* ── Case pages ─────────────────────────────────────────────────── */

.legacy-content--case .mission-section:first-of-type {
  padding: 4.5rem 0;
  background: var(--sf-ink) !important;
}

.legacy-content--case .mission-section:first-of-type .mission-content {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.legacy-content--case .mission-section:first-of-type .mission-content h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  color: var(--sf-navy) !important;
}

.legacy-content--case .mission-section:first-of-type .mission-content p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--sf-text-muted) !important;
}

.legacy-content--case .mission-section:first-of-type .mission-content h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sf-blue), var(--sf-sky));
}

.legacy-content--case .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.legacy-content--case .section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--sf-navy) !important;
}

.legacy-content--case .section-header h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sf-blue), var(--sf-sky));
}

.legacy-content--case .section-content-wrapper {
  display: block !important;
  width: 100%;
}

.legacy-content--case .case-details-section {
  padding: 4.5rem 0;
  background: #ffffff !important;
}

.legacy-content--case .case-details-wrapper {
  display: flex !important;
  flex-direction: column !important;
  gap: 2.5rem !important;
  grid-template-columns: unset !important;
}

.legacy-content--case .case-details-image {
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.legacy-content--case .case-details-image img {
  width: 100%;
  height: auto;
  max-height: 300px;
  min-height: 0 !important;
  object-fit: cover;
  object-position: center;
  border-radius: var(--sf-radius) !important;
  box-shadow: var(--sf-shadow) !important;
}

.legacy-content--case .case-details-content > h2 {
  font-family: 'League Spartan', system-ui, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  color: var(--sf-navy) !important;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.legacy-content--case .case-details-content > h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sf-blue), var(--sf-sky));
}

.legacy-content--case .case-details-grid {
  display: grid !important;
  gap: 1.25rem;
  width: 100%;
  max-width: none;
  margin-inline: unset;
}

@media (min-width: 768px) {
  .legacy-content--case .case-details-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

.legacy-content--case .case-detail-card {
  padding: 1.5rem 1.35rem !important;
  height: 100%;
}

.legacy-content--case .case-detail-card h3 {
  font-size: 1.1rem;
  line-height: 1.35;
}

.legacy-content--case .case-detail-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* Eligibility — numbered cards */
.legacy-content--case .eligibility-section {
  padding: 4.5rem 0;
  background: var(--sf-ink) !important;
}

.legacy-content--case .eligibility-grid {
  display: grid !important;
  gap: 1.25rem;
  width: 100%;
  flex-wrap: unset !important;
  overflow: visible !important;
  padding-bottom: 0 !important;
}

@media (min-width: 640px) {
  .legacy-content--case .eligibility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1024px) {
  .legacy-content--case .eligibility-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

.legacy-content--case .eligibility-card--numbered {
  min-width: 0 !important;
  max-width: none !important;
  flex: unset !important;
  padding: 1.75rem 1.5rem !important;
}

.legacy-content--case .eligibility-card--numbered::before {
  background: linear-gradient(90deg, var(--sf-blue), var(--sf-sky)) !important;
}

.legacy-content--case .eligibility-card--numbered .benefit-number {
  display: block;
  margin-bottom: 1rem;
  font-family: 'League Spartan', system-ui, sans-serif;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--sf-blue) !important;
}

.legacy-content--case .eligibility-card--numbered h3 {
  font-size: 1.0625rem !important;
  color: var(--sf-navy) !important;
}

.legacy-content--case .eligibility-card--numbered p {
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  color: var(--sf-text-muted) !important;
}

/* Info list — blue band with glass cards */
.legacy-content--case .info-list-section {
  padding: 4.5rem 0;
  background: linear-gradient(160deg, var(--sf-navy) 0%, var(--sf-blue) 52%, #3a7bc8 100%) !important;
}

.legacy-content--case .info-list-section .section-header h2 {
  color: #ffffff !important;
}

.legacy-content--case .info-list-section .section-header h2::after {
  background: linear-gradient(90deg, var(--sf-sky), #ffffff);
}

.legacy-content--case .info-list-section .section-header p {
  color: rgba(255, 255, 255, 0.88) !important;
}

.legacy-content--case .info-list-grid {
  display: grid !important;
  gap: 1.25rem;
  width: 100%;
}

@media (min-width: 640px) {
  .legacy-content--case .info-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1024px) {
  .legacy-content--case .info-list-grid:has(> :nth-child(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

.legacy-content--case .info-list-section .info-list-item {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
  backdrop-filter: blur(8px);
  padding: 1.5rem 1.35rem !important;
  height: 100%;
}

.legacy-content--case .info-list-section .info-list-item::before {
  background: linear-gradient(90deg, var(--sf-sky), rgba(255, 255, 255, 0.65)) !important;
}

.legacy-content--case .info-list-section .info-list-item:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(135, 206, 235, 0.45) !important;
  transform: translateY(-2px);
}

.legacy-content--case .info-list-section .info-list-item h3 {
  color: #ffffff !important;
  font-size: 1.0625rem !important;
}

.legacy-content--case .info-list-section .info-list-item h3::before {
  display: none !important;
}

.legacy-content--case .info-list-section .info-list-item p {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  margin: 0;
}

@media (max-width: 767px) {
  .legacy-content--case .case-details-grid {
    grid-template-columns: 1fr !important;
  }

  .legacy-content--case .eligibility-grid {
    grid-template-columns: 1fr !important;
  }

  .legacy-content--case .info-list-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Astro homepage — Why Choose (mobile centering) ─────────────── */

@media (max-width: 1023px) {
  .why-choose-home .why-choose-home__copy,
  .why-choose-home .why-choose-home__copy .eyebrow,
  .why-choose-home .why-choose-home__copy .section-title,
  .why-choose-home .why-choose-home__copy .section-lead {
    text-align: center !important;
  }

  .why-choose-home .why-choose-home__accent {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .why-choose-home .why-choose-home__grid {
    gap: 1rem !important;
  }

  .why-choose-home .why-choose-home__logo {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 0.25rem;
  }

  .why-choose-home .why-choose-home__logo .brand-logo,
  .why-choose-home .why-choose-home__logo .why-choose-logo {
    display: block !important;
    width: 100% !important;
    max-width: min(100%, 280px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .why-choose-home .why-choose-home__logo .brand-logo__img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

@media (min-width: 1024px) {
  .why-choose-home .why-choose-home__copy {
    text-align: left;
  }

  .why-choose-home .why-choose-home__accent {
    margin-left: 0;
    margin-right: auto;
  }

  .why-choose-home .why-choose-home__logo {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
}
