/* Privacy Policy & Terms: follow the active Bootstrap light/dark theme. */
.tm-legal {
  --legal-surface: #ffffff;
  --legal-muted-surface: #f5f7f9;
  --legal-text: #17212c;
  --legal-muted: #506070;
  --legal-border: #dce3e8;
  --legal-link: #176c4c;
  color: var(--legal-text);
}
[data-bs-theme="dark"] .tm-legal {
  --legal-surface: #171d29;
  --legal-muted-surface: #10141e;
  --legal-text: #eef3fc;
  --legal-muted: #bdcad8;
  --legal-border: #374352;
  --legal-link: #b7e98c;
}
.tm-legal .tm-legal-hero,
.tm-legal .tm-legal-toc,
.tm-legal .tm-legal-content,
.tm-legal .tm-legal-content section,
.tm-legal .tm-legal-provider,
.tm-legal .tm-legal-required {
  background-color: var(--legal-surface);
  color: var(--legal-text);
  border-color: var(--legal-border);
}
.tm-legal .tm-legal-toc,
.tm-legal .tm-legal-content {
  box-shadow: 0 12px 32px rgba(0,0,0,.07);
}
[data-bs-theme="dark"] .tm-legal .tm-legal-toc,
[data-bs-theme="dark"] .tm-legal .tm-legal-content {
  box-shadow: 0 12px 32px rgba(0,0,0,.24);
}
.tm-legal :is(h1,h2,h3,h4,strong) { color: var(--legal-text); }
.tm-legal :is(p,li,.tm-legal-intro,.tm-legal-note) { color: var(--legal-muted); }
.tm-legal :is(a,.tm-legal-footer a) { color: var(--legal-link); }
.tm-legal :is(a:hover,a:focus-visible) { text-decoration: underline; }
.tm-legal .tm-legal-toc a { border-color: var(--legal-border); }
.tm-legal .tm-legal-footer { background-color: var(--legal-muted-surface); border-color: var(--legal-border); color: var(--legal-muted); }

/* Hero is the top card: override its original fixed blue gradient in both themes. */
html[data-bs-theme="light"] .tm-legal .tm-legal-hero,
body[data-bs-theme="light"] .tm-legal .tm-legal-hero {background:#fff!important;background-image:none!important;color:#17212c!important;border:1px solid #dce3e8!important;}
html[data-bs-theme="dark"] .tm-legal .tm-legal-hero,
body[data-bs-theme="dark"] .tm-legal .tm-legal-hero {background:#171d29!important;background-image:none!important;color:#eef3fc!important;border:1px solid #374352!important;}
.tm-legal .tm-legal-hero:after{display:none!important;}
.tm-legal .tm-legal-hero .tm-legal-eyebrow{color:var(--legal-link)!important;}
.tm-legal .tm-legal-hero h1{color:var(--legal-text)!important;}
.tm-legal .tm-legal-hero .tm-legal-intro,.tm-legal .tm-legal-hero .tm-legal-note{color:var(--legal-muted)!important;}
.tm-legal .tm-legal-hero .tm-legal-provider{background:var(--legal-muted-surface)!important;color:var(--legal-text)!important;border-color:var(--legal-border)!important;}
