/* Scoped service-detail and legal theme repair — 2026-11-12. */
/* The parent theme previously changed --navy to light text globally, including on white surfaces. */
:root{--dv-surface-text:#09244a;--dv-surface-muted:#506783;--dv-surface:#fff;--dv-surface-border:#dce6f0}
:root[data-theme="dark"]{--dv-surface-text:#09244a;--dv-surface-muted:#506783;--dv-surface:#fff;--dv-surface-border:#dce6f0}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){--dv-surface-text:#09244a;--dv-surface-muted:#506783;--dv-surface:#fff;--dv-surface-border:#dce6f0}}
/* Service detail: make the process and FAQ sections dark surfaces in dark mode, with matching text. */
:root[data-theme="dark"] .service-detail .process-section,
:root[data-theme="dark"] .service-detail .dv-faq-wrap,
:root[data-theme="dark"] .service-detail .dv-related{background:#0e1a30!important;color:#f1f6ff!important}
:root[data-theme="dark"] .service-detail .process-section .hd h2,
:root[data-theme="dark"] .service-detail .dv-faq-wrap h2,
:root[data-theme="dark"] .service-detail .dv-related h3{color:#f1f6ff!important}
:root[data-theme="dark"] .service-detail .process-section .hd p,
:root[data-theme="dark"] .service-detail .dv-faq-intro{color:#bfd0e5!important}
@media(prefers-color-scheme:dark){
:root:not([data-theme="light"]) .service-detail .process-section,
:root:not([data-theme="light"]) .service-detail .dv-faq-wrap,
:root:not([data-theme="light"]) .service-detail .dv-related{background:#0e1a30!important;color:#f1f6ff!important}
:root:not([data-theme="light"]) .service-detail .process-section .hd h2,
:root:not([data-theme="light"]) .service-detail .dv-faq-wrap h2,
:root:not([data-theme="light"]) .service-detail .dv-related h3{color:#f1f6ff!important}
:root:not([data-theme="light"]) .service-detail .process-section .hd p,
:root:not([data-theme="light"]) .service-detail .dv-faq-intro{color:#bfd0e5!important}
}
/* Explicit readable typography for light surfaces, including light cards inside dark sections. */
.service-detail .process-section:not(.dark) .hd h2,
.service-detail .dv-faq-wrap:not(.dark) h2{color:var(--ink)}
.service-detail .process-section .cc[style*="background: white"] h3,
.service-detail .process-section .cc[style*="background:#fff"] h3{color:#09244a!important}
.service-detail .process-section .cc[style*="background: white"] p,
.service-detail .process-section .cc[style*="background:#fff"] p{color:#506783!important}
/* FAQ sections that are light must never retain pale dark-theme text. */
.service-detail .dv-faq-wrap[style*="background: white"] h2,
.service-detail .dv-faq-wrap[style*="background:#fff"] h2{color:#09244a!important}
.service-detail .dv-faq-wrap[style*="background: white"] .dv-faq-intro,
.service-detail .dv-faq-wrap[style*="background:#fff"] .dv-faq-intro{color:#506783!important}
/* Legal pages have white cards: keep all text dark even when OS theme is dark. */
.legal-content,.legal-toc{background:#fff!important;border-color:#dce6f0!important;color:#09244a!important}
.legal-content h1,.legal-content h2,.legal-content h3,.legal-toc strong{color:#09244a!important}
.legal-content p,.legal-content li,.legal-content small,.legal-toc a{color:#506783!important}
.legal-content a{color:#007d82!important}
.legal-content section{border-color:#e2e9f2!important}
.legal-hero h1{color:#fff!important}.legal-hero p{color:#d2e4e9!important}
@media(max-width:767px){.legal-shell{grid-template-columns:minmax(0,1fr)!important;gap:20px!important;padding:32px 0 48px!important}.legal-toc{position:static!important}.legal-content{padding:24px!important}.service-detail main section{padding:48px 0!important}}
