/* ==========================================================
   LEGAL PAGES — Mystic Dark (YourStarsBook)
   Works with your existing :root variables:
   --bg-color, --secondary-bg, --text-primary, --text-secondary, --gold
   ========================================================== */

/* Wrapper required:
   <div class="ysb-legal">
     ... content ...
   </div>
*/

.ysb-legal{
  background: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  padding: 32px 0 64px;
  position: relative;
  overflow: hidden;
}

/* Subtle star field */
.ysb-legal::before{
  content:"";
  position:absolute;
  inset:-40px;
  background:
    radial-gradient(circle at 14% 18%, rgba(212,175,55,.16) 1px, transparent 2px),
    radial-gradient(circle at 28% 72%, rgba(204,214,246,.10) 1px, transparent 2px),
    radial-gradient(circle at 76% 26%, rgba(212,175,55,.12) 1px, transparent 2px),
    radial-gradient(circle at 82% 78%, rgba(204,214,246,.08) 1px, transparent 2px),
    radial-gradient(circle at 56% 48%, rgba(212,175,55,.10) 1px, transparent 2px),
    radial-gradient(circle at 40% 30%, rgba(204,214,246,.06) 1px, transparent 2px);
  opacity:.9;
  pointer-events:none;
}

/* Aura glow */
.ysb-legal::after{
  content:"";
  position:absolute;
  inset:-10px;
  background:
    radial-gradient(900px 360px at 15% 0%, rgba(212,175,55,.12), transparent 60%),
    radial-gradient(800px 320px at 85% 10%, rgba(204,214,246,.08), transparent 60%);
  pointer-events:none;
}

/* Container should sit above pseudo bg */
.ysb-legal > .container{
  position: relative;
  z-index: 1;
}

/* Header */
.ysb-legal-header{
  margin-bottom: 18px;
  text-align: left;
}
.ysb-legal-kicker{
  color: rgba(212,175,55,.9);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 700;
}
.ysb-legal-title{
  font-family: var(--font-serif);
  font-weight: 700;
  margin: 10px 0 6px;
  line-height: 1.12;
}
.ysb-legal-updated{
  color: var(--text-secondary);
  font-size: .95rem;
}

/* Reading panel */
.ysb-legal-panel{
  background: rgba(17,34,64,.78); /* secondary-bg but translucent */
  border: 1px solid rgba(212,175,55,.22);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(2,12,27,.55);
  padding: 22px;
}
@media (min-width: 768px){
  .ysb-legal-panel{ padding: 34px; }
}

/* ------------------------------
   THE IMPORTANT PART:
   Kill any Bootstrap/light-blue headings
   and enforce your theme colors.
-------------------------------- */

/* All headings + Bootstrap heading utility classes */
.ysb-legal :is(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6){
  font-family: var(--font-serif) !important;
  color: var(--text-primary) !important; /* or var(--gold) if you want */
}

/* Section headings (feel like chapters) */
.ysb-legal .ysb-legal-panel h2,
.ysb-legal .ysb-legal-panel .h2,
.ysb-legal .ysb-legal-panel .h5{
  color: var(--gold) !important;
  font-weight: 700 !important;
  margin-top: 22px;
  margin-bottom: 10px;
  letter-spacing: .02em;
}

/* Body text */
.ysb-legal :is(p,li,span,em,strong){
  color: rgba(204,214,246,.92) !important;
  line-height: 1.75;
  font-size: 1.02rem;
}

/* Bootstrap muted inside legal: keep it muted but readable */
.ysb-legal .text-muted{
  color: var(--text-secondary) !important;
}

/* Force-disable common Bootstrap “blue” utility classes */
.ysb-legal :is(.text-primary,.text-info,.link-primary){
  color: var(--gold) !important;
}

/* Links */
.ysb-legal a{
  color: var(--gold) !important;
  text-decoration: none;
  border-bottom: 1px dotted rgba(212,175,55,.55);
}
.ysb-legal a:hover{
  color: var(--gold-hover) !important;
  border-bottom-color: rgba(243,229,171,.75);
}

/* HR separator */
.ysb-legal hr{
  border: 0;
  height: 1px;
  margin: 18px 0 22px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.35), transparent);
}

/* Lists */
.ysb-legal ul{
  padding-left: 1.2rem;
}
.ysb-legal li{
  margin-bottom: .35rem;
}

/* Callout box (contact) */
.ysb-legal-callout{
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(212,175,55,.18);
  background: rgba(10,25,47,.55);
}

/* Footnote */
.ysb-legal-footnote{
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: .9rem;
}
