/* PHILADONF AUDIT SUITE - R5 R2 R6 R5 LIGHT DIALOG AUTHORITY CLOSURE
   Scope strict: LIGHT-mode visual closure for Evidence Assurance Center,
   Rapport IA and Audit Review close control. No geometry/business/API/scoring changes.
*/

/* Evidence Assurance Center: final light authority loaded last in audit.html. */
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell{
  background:#f7f9fc!important;
  color:#172033!important;
  border-color:#cbd8e6!important;
  box-shadow:0 28px 78px rgba(30,41,59,.20)!important;
  --pe11-text:#172033!important;
  --pe11-muted:#64748b!important;
  --pe11-line:#dbe5ef!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell .pe11r1-head{
  background:linear-gradient(180deg,#f8fbff,#f3f7fb)!important;
  border-color:#dbe5ef!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell .pe11r1-mark{
  background:linear-gradient(135deg,#e7f7ff,#eef6ff)!important;
  border:1px solid #b9ddf3!important;
  color:#0891b2!important;
  box-shadow:none!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell :is(.pe11r1-title h2,.pe11r1-section-head b,.pe11r1-drawer-head h3){color:#172033!important}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell :is(.pe11r1-title p,.pe11r1-kpi small,.pe11r1-kpi span,.pe11r1-section-head small,.pe11r1-section-head span,.pe11r1-footer>span,.pe11r1-empty,.pe11r1-loading){color:#64748b!important}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell .pe11r1-kpis{
  background:#ffffff!important;
  border-color:#dbe5ef!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell .pe11r1-kpi{
  background:#ffffff!important;
  color:#172033!important;
  border-color:#d8e3ef!important;
  box-shadow:0 1px 2px rgba(15,23,42,.03)!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell .pe11r1-kpi:is(.good,.primary,.warn,.bad){box-shadow:inset 0 -2px 0 var(--pe11-accent,rgba(56,189,248,.48)),0 1px 2px rgba(15,23,42,.03)!important}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell .pe11r1-kpi b{color:#172033!important}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell .pe11r1-toolbar{
  background:#f8fbff!important;
  border-color:#dbe5ef!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell .pe11r1-search input{
  background:#ffffff!important;
  color:#172033!important;
  border-color:#cbd8e6!important;
  box-shadow:none!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell :is(.pe11r1-filters button,.pe11r1-icon,.pe11r1-btn,.pe11r1-drawer-close){
  background:#ffffff!important;
  color:#334155!important;
  border-color:#cbd8e6!important;
  box-shadow:0 1px 2px rgba(15,23,42,.03)!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell .pe11r1-filters button.on{
  background:#eaf6ff!important;
  color:#075985!important;
  border-color:#7dd3fc!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell .pe11r1-icon.close{
  background:#fff5f5!important;
  color:#b4233e!important;
  border-color:#fecdd3!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell .pe11r1-btn.primary{
  background:linear-gradient(100deg,#315cff,#24acd9)!important;
  color:#ffffff!important;
  border-color:#5bcdf6!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell .pe11r1-body,
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell .pe11r1-main{
  background:#ffffff!important;
  color:#172033!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell .pe11r1-section-head{
  background:#ffffff!important;
  border-color:#dbe5ef!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell .pe11r1-table th{
  background:#edf4fb!important;
  color:#52677f!important;
  border-color:#d8e3ee!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell .pe11r1-table td{
  background:#ffffff!important;
  color:#334155!important;
  border-color:#e7edf4!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell .pe11r1-table td b{color:#172033!important}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell .pe11r1-drawer:not(.open){display:none!important}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell .pe11r1-drawer.open{
  display:flex!important;
  background:#f8fbff!important;
  color:#172033!important;
  border-left-color:#d6e2ee!important;
  box-shadow:-20px 0 44px rgba(30,41,59,.12)!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell :is(.pe11r1-drawer-head,.pe11r1-detail-kpi,.pe11r1-detail-block div){
  background:#ffffff!important;
  color:#24324a!important;
  border-color:#dbe4ee!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #pe11r1Shell :is(.pe11r1-footer,.pe11r1-drawer-footer){
  background:#f8fbff!important;
  border-color:#dbe5ef!important;
}

/* Rapport IA: legacy core builds a dark modal with inline styles. Author !important
   rules deliberately override those inline non-important values in LIGHT mode. */
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #ia-modal{
  background:rgba(15,23,42,.38)!important;
  backdrop-filter:blur(7px)!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #ia-modal>div{
  background:#ffffff!important;
  color:#172033!important;
  border-color:#cbd8e6!important;
  box-shadow:0 28px 80px rgba(30,41,59,.22)!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #ia-modal>div>div:first-child,
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #ia-modal>div>div:last-child{
  background:#f8fbff!important;
  border-color:#e2e8f0!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #ia-modal #ia-content{
  background:#ffffff!important;
  color:#334155!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #ia-modal #ia-content :is(p,div,span){color:inherit}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #ia-modal #ia-content :is(h1,h2,h3,strong){color:#172033!important}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #ia-modal #ia-content h2{border-color:#dbe5ef!important}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #ia-modal [style*="color:#eef2ff"]{color:#172033!important}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #ia-modal [style*="rgba(238,242,255"]{color:#64748b!important}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #ia-modal [style*="color:#b9c2ff"],
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #ia-modal [style*="color:#7c8cff"]{color:#1d4ed8!important}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #ia-modal #ia-copy-btn{background:#ecfdf5!important;color:#047857!important;border-color:#a7f3d0!important}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #ia-modal #ia-word-btn{background:#fffbeb!important;color:#a16207!important;border-color:#fde68a!important}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #ia-modal #ia-pdf-btn{background:#eef2ff!important;color:#4338ca!important;border-color:#c7d2fe!important}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #ia-modal #ia-ptr-btn{background:#fff1f2!important;color:#be123c!important;border-color:#fecdd3!important}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #ia-modal button[onclick*="ia-modal" i]{
  background:#ffffff!important;
  color:#334155!important;
  border-color:#cbd8e6!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #ia-modal>div>div:first-child button[onclick*="ia-modal" i]{
  background:#fff5f5!important;
  color:#b4233e!important;
  border-color:#fecdd3!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui #ia-modal #ia-content [style*="border:2px solid #7c8cff"]{
  border-color:#3b82f6!important;
  border-top-color:transparent!important;
}

/* Audit Review & Sign-off: preserve the good light surface and remove the lone
   dark close control that still looked out of place in LIGHT mode. */
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body.as277-ui .rs78-shell .rs78-close{
  background:#fff5f5!important;
  color:#b4233e!important;
  border-color:#fecdd3!important;
  box-shadow:none!important;
}

/* Dark mode intentionally untouched: all R6 R5 selectors require a light signal. */

/* ========================================================================
   R5 R2 R6 R5 R1 - LIGHT COMMERCIAL / LEGAL / PRIVACY AUTHORITY CLOSURE
   Scope: footer commercial, contact modal, CGV / legal / privacy document
   modal, privacy center + floating privacy trigger. LIGHT only.
   ======================================================================== */

/* Commercial footer ----------------------------------------------------- */
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-commercial-footer{
  background:rgba(248,250,252,.985)!important;
  border-top-color:#d8e3ef!important;
  box-shadow:0 -8px 26px rgba(15,23,42,.08)!important;
  backdrop-filter:blur(12px)!important;
  color:#334155!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-commercial-footer :is(a,button){
  background:#ffffff!important;
  color:#334155!important;
  border-color:#cbd8e6!important;
  box-shadow:0 1px 2px rgba(15,23,42,.035)!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-commercial-footer :is(a,button):is(:hover,:focus-visible){
  background:#f1f5f9!important;
  color:#172033!important;
  border-color:#93c5fd!important;
  outline:none!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-commercial-footer .as-foot-contact{
  background:#ecfdf5!important;
  color:#047857!important;
  border-color:#a7f3d0!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-commercial-footer .as-foot-copy{
  color:#64748b!important;
}

/* Contact overlay + dialog --------------------------------------------- */
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-contact-overlay,
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-doc-overlay{
  background:rgba(15,23,42,.34)!important;
  backdrop-filter:blur(7px)!important;
  -webkit-backdrop-filter:blur(7px)!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-contact-modal{
  background:#ffffff!important;
  color:#172033!important;
  border-color:#cbd8e6!important;
  box-shadow:0 28px 80px rgba(15,23,42,.20)!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-contact-head{
  background:rgba(248,250,252,.985)!important;
  border-bottom-color:#dbe5ef!important;
  box-shadow:0 7px 18px rgba(15,23,42,.06)!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-contact-head h2{
  color:#172033!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-contact-head p{
  color:#64748b!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body :is(.as-contact-close,.as-doc-close){
  background:#fff5f5!important;
  color:#b4233e!important;
  border-color:#fecdd3!important;
  box-shadow:none!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body :is(.as-contact-close,.as-doc-close):is(:hover,:focus-visible){
  background:#ffe4e6!important;
  color:#9f1239!important;
  border-color:#fda4af!important;
  outline:2px solid rgba(244,63,94,.16)!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-contact-body{
  background:#ffffff!important;
  color:#172033!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-contact-field label{
  color:#475569!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-contact-field :is(input,select,textarea){
  background:#ffffff!important;
  color:#172033!important;
  border-color:#cbd8e6!important;
  box-shadow:none!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-contact-field :is(input,select,textarea)::placeholder{
  color:#94a3b8!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-contact-field :is(input,select,textarea):focus{
  border-color:#60a5fa!important;
  box-shadow:0 0 0 3px rgba(59,130,246,.12)!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-contact-consent{
  color:#475569!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-contact-consent a{
  color:#0369a1!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-contact-submit{
  background:linear-gradient(135deg,#0f766e,#0d9488)!important;
  color:#ffffff!important;
  border-color:#0f766e!important;
  box-shadow:0 4px 12px rgba(13,148,136,.14)!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-contact-status.ok{
  background:#ecfdf5!important;
  border-color:#a7f3d0!important;
  color:#047857!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-contact-status.bad{
  background:#fff1f2!important;
  border-color:#fecdd3!important;
  color:#be123c!important;
}

/* Embedded legal document modal --------------------------------------- */
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-doc-modal{
  background:#ffffff!important;
  color:#172033!important;
  border-color:#cbd8e6!important;
  box-shadow:0 28px 80px rgba(15,23,42,.20)!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-doc-head{
  background:rgba(248,250,252,.985)!important;
  border-bottom-color:#dbe5ef!important;
  box-shadow:0 6px 16px rgba(15,23,42,.05)!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-doc-title{
  color:#172033!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-doc-content{
  --bg:#f4f7fb!important;
  --panel:#ffffff!important;
  --line:#dbe5ef!important;
  --text:#172033!important;
  --muted:#64748b!important;
  --pri:#2563eb!important;
  --good:#059669!important;
  background:#f4f7fb!important;
  color:#172033!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-doc-content .as-doc-page{
  background:#ffffff!important;
  color:#172033!important;
  border-color:#dbe5ef!important;
  box-shadow:0 18px 54px rgba(15,23,42,.09)!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-doc-content :is(.as-doc-source-header,.as-doc-source-main,.as-doc-source-footer){
  background:#ffffff!important;
  color:#172033!important;
  border-color:#e2e8f0!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-doc-content h1,
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-doc-content h2,
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-doc-content strong{
  color:#172033!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-doc-content :is(p,li,.as-doc-source-footer){
  color:#526277!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-doc-content a{
  color:#1d4ed8!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-doc-content .notice{
  background:#eff6ff!important;
  color:#334155!important;
  border-color:#bfdbfe!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-doc-content .aspc-inline-open{
  background:#ffffff!important;
  color:#334155!important;
  border-color:#cbd8e6!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body :is(.as-doc-loading,.as-doc-error){
  background:#ffffff!important;
  color:#475569!important;
  border-color:#dbe5ef!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body .as-doc-error{
  background:#fff1f2!important;
  color:#be123c!important;
  border-color:#fecdd3!important;
}

/* Privacy / cookie center ---------------------------------------------- */
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body #asPrivacyTrigger{
  background:#ffffff!important;
  color:#334155!important;
  border-color:#cbd8e6!important;
  box-shadow:0 8px 22px rgba(15,23,42,.12)!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body #asPrivacyTrigger:is(:hover,:focus-visible){
  background:#f8fafc!important;
  border-color:#93c5fd!important;
  box-shadow:0 0 0 3px rgba(59,130,246,.12),0 10px 24px rgba(15,23,42,.12)!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body #asPrivacyBanner{
  --aspc-text:#172033!important;
  --aspc-muted:#64748b!important;
  --aspc-line:#dbe5ef!important;
  background:#ffffff!important;
  color:#172033!important;
  border-color:#cbd8e6!important;
  box-shadow:0 24px 64px rgba(15,23,42,.16)!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body #asPrivacyCenter{
  --aspc-bg:#f8fafc!important;
  --aspc-panel:#ffffff!important;
  --aspc-panel2:#f1f5f9!important;
  --aspc-text:#172033!important;
  --aspc-muted:#64748b!important;
  --aspc-line:#dbe5ef!important;
  --aspc-shadow:0 28px 80px rgba(15,23,42,.20)!important;
  color:#172033!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body #asPrivacyCenter .aspc-backdrop{
  background:rgba(15,23,42,.34)!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body #asPrivacyCenter .aspc-dialog{
  background:#ffffff!important;
  color:#172033!important;
  border-color:#cbd8e6!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body #asPrivacyCenter .aspc-head,
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body #asPrivacyCenter .aspc-foot{
  background:rgba(248,250,252,.985)!important;
  border-color:#dbe5ef!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body #asPrivacyCenter :is(.aspc-title,.aspc-section h3,.aspc-cat-title){
  color:#172033!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body #asPrivacyCenter :is(.aspc-sub,.aspc-section p,.aspc-cat-desc,.aspc-foot-note){
  color:#64748b!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body #asPrivacyCenter .aspc-kicker{
  color:#0369a1!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body #asPrivacyCenter .aspc-close{
  background:#fff5f5!important;
  color:#b4233e!important;
  border-color:#fecdd3!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body #asPrivacyCenter .aspc-callout{
  background:#ecfdf5!important;
  color:#065f46!important;
  border-color:#a7f3d0!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body #asPrivacyCenter .aspc-category{
  border-color:#e2e8f0!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body #asPrivacyCenter .aspc-chip{
  background:#f1f5f9!important;
  color:#475569!important;
  border-color:#cbd8e6!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body #asPrivacyCenter .aspc-chip.required{
  background:#ecfdf5!important;
  color:#047857!important;
  border-color:#a7f3d0!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body #asPrivacyCenter .aspc-inventory{
  color:#334155!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body #asPrivacyCenter .aspc-inventory :is(th,td){
  border-color:#dbe5ef!important;
  color:#334155!important;
  background:#ffffff!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body #asPrivacyCenter .aspc-inventory th{
  background:#f1f5f9!important;
  color:#475569!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body #asPrivacyCenter .aspc-links a{
  color:#1d4ed8!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body #asPrivacyCenter .aspc-btn:not(.primary):not(.good){
  background:#ffffff!important;
  color:#334155!important;
  border-color:#cbd8e6!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body #asPrivacyCenter .aspc-btn.good{
  background:#ecfdf5!important;
  color:#047857!important;
  border-color:#a7f3d0!important;
}
:is(html[data-as-theme="light"],html[data-as-surface="light"]) body #asPrivacyCenter .aspc-status{
  color:#047857!important;
}

/* Dark mode deliberately untouched: every selector above requires light. */

/* ========================================================================
   R5 R2 R6 R5 R2 - LIGHT FOOTER + PRIVACY CENTER FINAL AUTHORITY
   Root cause closed:
   - historical Audit Visual Parity footer selector had higher specificity;
   - privacy center must obey LIGHT even when only body.light-mode is present.
   These rules are intentionally more specific and remain LIGHT-only.
   ======================================================================== */

/* Commercial footer: outrank historical
   html[data-audit-visual-parity] body.as277-ui .as-commercial-footer !important */
html[data-as-theme="light"] body.as277-ui footer.as-commercial-footer.as-commercial-footer,
html[data-as-surface="light"] body.as277-ui footer.as-commercial-footer.as-commercial-footer,
html body.light-mode footer.as-commercial-footer.as-commercial-footer{
  background:#f8fafc!important;
  background-image:none!important;
  color:#334155!important;
  border-top:1px solid #d8e3ef!important;
  box-shadow:0 -8px 26px rgba(15,23,42,.08)!important;
  backdrop-filter:blur(12px)!important;
  -webkit-backdrop-filter:blur(12px)!important;
}
html[data-as-theme="light"] body.as277-ui footer.as-commercial-footer.as-commercial-footer :is(a,button),
html[data-as-surface="light"] body.as277-ui footer.as-commercial-footer.as-commercial-footer :is(a,button),
html body.light-mode footer.as-commercial-footer.as-commercial-footer :is(a,button){
  background:#ffffff!important;
  background-image:none!important;
  color:#334155!important;
  border-color:#cbd8e6!important;
  box-shadow:0 1px 2px rgba(15,23,42,.035)!important;
}
html[data-as-theme="light"] body.as277-ui footer.as-commercial-footer.as-commercial-footer .as-foot-contact,
html[data-as-surface="light"] body.as277-ui footer.as-commercial-footer.as-commercial-footer .as-foot-contact,
html body.light-mode footer.as-commercial-footer.as-commercial-footer .as-foot-contact{
  background:#ecfdf5!important;
  color:#047857!important;
  border-color:#a7f3d0!important;
}
html[data-as-theme="light"] body.as277-ui footer.as-commercial-footer.as-commercial-footer .as-foot-copy,
html[data-as-surface="light"] body.as277-ui footer.as-commercial-footer.as-commercial-footer .as-foot-copy,
html body.light-mode footer.as-commercial-footer.as-commercial-footer .as-foot-copy{color:#64748b!important}

/* Privacy center: double ID provides final author authority over legacy rules.
   body.light-mode is accepted as a third LIGHT signal for pages where attributes
   can be applied after the component is created. */
html[data-as-theme="light"] body #asPrivacyCenter#asPrivacyCenter,
html[data-as-surface="light"] body #asPrivacyCenter#asPrivacyCenter,
html body.light-mode #asPrivacyCenter#asPrivacyCenter{
  --aspc-bg:#f8fafc!important;
  --aspc-panel:#ffffff!important;
  --aspc-panel2:#f1f5f9!important;
  --aspc-text:#172033!important;
  --aspc-muted:#64748b!important;
  --aspc-line:#dbe5ef!important;
  --aspc-primary:#5267ff!important;
  --aspc-accent:#059669!important;
  --aspc-danger:#be123c!important;
  --aspc-shadow:0 28px 80px rgba(15,23,42,.20)!important;
  color:#172033!important;
}
html[data-as-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-backdrop,
html[data-as-surface="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-backdrop,
html body.light-mode #asPrivacyCenter#asPrivacyCenter .aspc-backdrop{
  background:rgba(15,23,42,.30)!important;
}
html[data-as-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-dialog,
html[data-as-surface="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-dialog,
html body.light-mode #asPrivacyCenter#asPrivacyCenter .aspc-dialog{
  background:#ffffff!important;
  background-image:none!important;
  color:#172033!important;
  border-color:#cbd8e6!important;
  box-shadow:0 28px 80px rgba(15,23,42,.20)!important;
}
html[data-as-theme="light"] body #asPrivacyCenter#asPrivacyCenter :is(.aspc-head,.aspc-foot),
html[data-as-surface="light"] body #asPrivacyCenter#asPrivacyCenter :is(.aspc-head,.aspc-foot),
html body.light-mode #asPrivacyCenter#asPrivacyCenter :is(.aspc-head,.aspc-foot){
  background:#f8fafc!important;
  background-image:none!important;
  color:#172033!important;
  border-color:#dbe5ef!important;
}
html[data-as-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-body,
html[data-as-surface="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-body,
html body.light-mode #asPrivacyCenter#asPrivacyCenter .aspc-body{
  background:#ffffff!important;
  color:#172033!important;
}
html[data-as-theme="light"] body #asPrivacyCenter#asPrivacyCenter :is(.aspc-title,.aspc-section h3,.aspc-cat-title),
html[data-as-surface="light"] body #asPrivacyCenter#asPrivacyCenter :is(.aspc-title,.aspc-section h3,.aspc-cat-title),
html body.light-mode #asPrivacyCenter#asPrivacyCenter :is(.aspc-title,.aspc-section h3,.aspc-cat-title){color:#172033!important}
html[data-as-theme="light"] body #asPrivacyCenter#asPrivacyCenter :is(.aspc-sub,.aspc-section p,.aspc-cat-desc,.aspc-foot-note),
html[data-as-surface="light"] body #asPrivacyCenter#asPrivacyCenter :is(.aspc-sub,.aspc-section p,.aspc-cat-desc,.aspc-foot-note),
html body.light-mode #asPrivacyCenter#asPrivacyCenter :is(.aspc-sub,.aspc-section p,.aspc-cat-desc,.aspc-foot-note){color:#64748b!important}
html[data-as-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-kicker,
html[data-as-surface="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-kicker,
html body.light-mode #asPrivacyCenter#asPrivacyCenter .aspc-kicker{color:#0369a1!important}
html[data-as-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-close,
html[data-as-surface="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-close,
html body.light-mode #asPrivacyCenter#asPrivacyCenter .aspc-close{
  background:#fff5f5!important;color:#b4233e!important;border-color:#fecdd3!important;box-shadow:none!important
}
html[data-as-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-callout,
html[data-as-surface="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-callout,
html body.light-mode #asPrivacyCenter#asPrivacyCenter .aspc-callout{
  background:#ecfdf5!important;color:#065f46!important;border-color:#a7f3d0!important
}
html[data-as-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-category,
html[data-as-surface="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-category,
html body.light-mode #asPrivacyCenter#asPrivacyCenter .aspc-category{border-color:#e2e8f0!important}
html[data-as-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-chip,
html[data-as-surface="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-chip,
html body.light-mode #asPrivacyCenter#asPrivacyCenter .aspc-chip{
  background:#f1f5f9!important;color:#475569!important;border-color:#cbd8e6!important
}
html[data-as-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-chip.required,
html[data-as-surface="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-chip.required,
html body.light-mode #asPrivacyCenter#asPrivacyCenter .aspc-chip.required{
  background:#ecfdf5!important;color:#047857!important;border-color:#a7f3d0!important
}
html[data-as-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-chip.inactive,
html[data-as-surface="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-chip.inactive,
html body.light-mode #asPrivacyCenter#asPrivacyCenter .aspc-chip.inactive{
  background:#f1f5f9!important;color:#64748b!important;border-color:#cbd8e6!important
}
html[data-as-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-btn:not(.primary):not(.good),
html[data-as-surface="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-btn:not(.primary):not(.good),
html body.light-mode #asPrivacyCenter#asPrivacyCenter .aspc-btn:not(.primary):not(.good){
  background:#ffffff!important;color:#334155!important;border-color:#cbd8e6!important
}
html[data-as-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-btn.primary,
html[data-as-surface="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-btn.primary,
html body.light-mode #asPrivacyCenter#asPrivacyCenter .aspc-btn.primary{
  background:linear-gradient(135deg,#6376ff,#5267ff)!important;color:#ffffff!important;border-color:#6475ff!important
}
html[data-as-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-btn.good,
html[data-as-surface="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-btn.good,
html body.light-mode #asPrivacyCenter#asPrivacyCenter .aspc-btn.good{
  background:#ecfdf5!important;color:#047857!important;border-color:#a7f3d0!important
}
html[data-as-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-slider,
html[data-as-surface="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-slider,
html body.light-mode #asPrivacyCenter#asPrivacyCenter .aspc-slider{
  background:#cbd5e1!important;border-color:#b9c6d5!important
}
html[data-as-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-switch input:checked + .aspc-slider,
html[data-as-surface="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-switch input:checked + .aspc-slider,
html body.light-mode #asPrivacyCenter#asPrivacyCenter .aspc-switch input:checked + .aspc-slider{background:#6576ff!important}
html[data-as-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-switch input:disabled:checked + .aspc-slider,
html[data-as-surface="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-switch input:disabled:checked + .aspc-slider,
html body.light-mode #asPrivacyCenter#asPrivacyCenter .aspc-switch input:disabled:checked + .aspc-slider{background:#1f8a68!important}
html[data-as-theme="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-status,
html[data-as-surface="light"] body #asPrivacyCenter#asPrivacyCenter .aspc-status,
html body.light-mode #asPrivacyCenter#asPrivacyCenter .aspc-status{color:#047857!important}

/* Dark mode untouched by construction. */
