/* StatTuner 16.1.1 — dark content/legal pages compatibility layer */
.content-page{
  --line:#293b58;
  --line-strong:#3a4d6d;
  --ink:#f4f7ff;
  --ink-2:#a7b3c6;
  --muted:#8290a7;
  --brand:#f6bd26;
  --paper:#0b1429;
  --paper-2:#081226;
  --shadow-soft:0 18px 50px rgba(0,0,0,.28);
  color:#f4f7ff!important;
}

.content-page .content-hero,
.content-page .about-section,
.content-page .privacy-section,
.content-page .terms-section,
.content-page .disclaimer-section,
.content-page .methodology-section,
.content-page .sources-section,
.content-page .method-grid article,
.content-page .about-card,
.content-page .about-process article,
.content-page .confidence-card,
.content-page .game-method,
.content-page .method-card,
.content-page .source-card,
.content-page .disclaimer-grid article{
  background:linear-gradient(145deg,#0c162c,#081123)!important;
  border-color:#293b58!important;
  color:#f4f7ff!important;
  box-shadow:0 18px 48px rgba(0,0,0,.25)!important;
}

.content-page .content-hero{
  background:
    radial-gradient(circle at 90% 5%,rgba(246,189,38,.08),transparent 34%),
    linear-gradient(145deg,#0c162c,#081123)!important;
}

.content-page h1,
.content-page h2,
.content-page h3,
.content-page h4,
.content-page strong,
.content-page th,
.content-page .about-card strong,
.content-page .about-process strong,
.content-page .about-value strong,
.content-page .source-value strong{
  color:#f4f7ff!important;
}

.content-page p,
.content-page li,
.content-page td,
.content-page .about-process span,
.content-page .method-card span,
.content-page .source-card span,
.content-page .game-method span{
  color:#a7b3c6!important;
}

.content-page a:not(.primary-button):not(.privacy-contact):not(.terms-contact):not(.disclaimer-contact){
  color:#f6bd26!important;
}

.content-page .about-intro-note,
.content-page .privacy-notice,
.content-page .terms-notice,
.content-page .terms-summary,
.content-page .disclaimer-notice,
.content-page .method-note,
.content-page .source-note,
.content-page .source-priority,
.content-page .calculation-note{
  background:#081226!important;
  border-color:#f6bd26!important;
  color:#b9c4d5!important;
}

.content-page .about-card,
.content-page .about-process article,
.content-page .confidence-card,
.content-page .game-method,
.content-page .method-card,
.content-page .source-card{
  background:#081226!important;
}

.content-page .about-process b,
.content-page .method-grid b,
.content-page .test-flow b,
.content-page .disclaimer-grid b{
  border-color:#445a7b!important;
  background:#0d1830!important;
  color:#f6bd26!important;
}

.content-page .about-links a,
.content-page .method-links a,
.content-page .source-links a{
  border-color:#3a4d6d!important;
  background:#0d1830!important;
  color:#e8eef9!important;
}

.content-page .about-links a:first-child,
.content-page .primary-button,
.content-page .privacy-contact,
.content-page .terms-contact,
.content-page .disclaimer-contact{
  border-color:#f6bd26!important;
  background:#f6bd26!important;
  color:#07101f!important;
}

.content-page .privacy-table-wrap,
.content-page table,
.content-page th,
.content-page td{
  border-color:#293b58!important;
}
.content-page .privacy-table-wrap{background:#081226!important}
.content-page th{background:#0d1830!important}
.content-page td{background:#081226!important}

.content-page .about-value,
.content-page .source-value,
.content-page .test-flow article{
  border-color:#293b58!important;
}

.content-page code,
.content-page pre{
  border:1px solid #293b58!important;
  background:#050b18!important;
  color:#dfe8f7!important;
}

@media(max-width:800px){
  .content-page{
    width:calc(100% - 24px)!important;
    padding:28px 0 70px!important;
  }
  .content-page .content-hero,
  .content-page .about-section,
  .content-page .privacy-section,
  .content-page .terms-section,
  .content-page .disclaimer-section,
  .content-page .methodology-section,
  .content-page .sources-section{
    padding:22px 18px!important;
    border-radius:17px!important;
  }
  .content-page h1{font-size:44px!important}
  .content-page h2{font-size:28px!important}
  .content-page p,
  .content-page li{font-size:15px!important;line-height:1.72!important}
  .content-page .method-grid,
  .content-page .about-grid,
  .content-page .about-process,
  .content-page .confidence-grid,
  .content-page .game-methods,
  .content-page .source-grid,
  .content-page .disclaimer-grid{
    grid-template-columns:1fr!important;
  }
}
