/* ============================================================
   MIGHTYSKY — LEGAL STYLESHEET (privacy / terms-of-service)
   Standalone dark legal theme loaded ONLY via /css/legal.css.
   Legal pages do not load style.css.
   Palette tuned for dark legal reading:
     legal-base   #141210  (page background)
     legal-panel  #1E1C19  (raised cards)
     legal-gold   #E08A4C  (h2 headings, lightened ember for contrast)
     legal-body   #C9C4BD  (paragraph text on dark)
     legal-faint  #A39D95  (secondary text)
     legal-line   #332F2A  (hairline separators)
     legal-white  #F0EEE9  (headings / bright)
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  font-size: 16px;
  margin: 0;
  line-height: 1.78;
  font-family: Georgia, "Times New Roman", serif;
  overflow-x: hidden;
}

.legal-page {
  background-color: #141210;
  color: #C9C4BD;
}

a {
  color: #E8A45C;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #F5DDC2;
}

/* ---------- scope isolation: legal sections never inherit ------ */
/* a stray coloured background from style.css must never appear  */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- header ---------- */
header.legal-header {
  background-color: #1C1A17;
  border-bottom: 1px solid #2A2721;
}

div.legal-inner {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 28px;
}

header.legal-header .legal-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  padding-bottom: 18px;
}

a.legal-brand {
  color: #F0EEE9;
  letter-spacing: 0.28em;
  font-size: 18px;
  text-transform: uppercase;
  font-family: Georgia, serif;
}

a.legal-brand:hover {
  color: #E8A45C;
}

.legal-brand-bolt {
  color: #E0B43C;
  font-size: 16px;
  line-height: 1;
}

/* ---------- content column ---------- */
main.legal-content {
  background-color: #141210;
}

div.legal-container {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 28px;
}

div.legal-flow {
  max-width: 780px;
  margin: 0 auto;
  padding: 46px 0 14px;
}

p.legal-kicker {
  color: #E0B43C;
  letter-spacing: 0.32em;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-family: Georgia, serif;
}

h1 {
  color: #F0EEE9;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 14px;
  font-family: Georgia, serif;
}

p.legal-updated {
  color: #A39D95;
  font-size: 14px;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}

div.legal-rule {
  width: 96px;
  height: 3px;
  background-color: #E0B43C;
  margin-bottom: 30px;
}

p.legal-lede {
  color: #C9C4BD;
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 34px;
}

/* ---------- contents box ---------- */
aside.legal-toc-card {
  background-color: #1E1C19;
  border: 1px solid #2A2721;
  border-radius: 2px;
  padding: 24px 28px;
  margin-bottom: 40px;
}

.legal-toc-title {
  color: #F0EEE9;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

ol.legal-toc {
  list-style: none;
  counter-reset: legaltoc;
}

ol.legal-toc li {
  counter-increment: legaltoc;
  padding: 5px 0;
}

ol.legal-toc li a {
  color: #C9C4BD;
  display: inline-block;
}

ol.legal-toc li a::before {
  content: counter(legaltoc) " \2014  ";
  color: #E0B43C;
}

ol.legal-toc li a:hover {
  color: #F5DDC2;
}

/* ---------- sections ---------- */
div.legal-flow section {
  padding-top: 6px;
  padding-bottom: 22px;
  margin-bottom: 12px;
  border-bottom: 1px solid #2A2721;
}

div.legal-flow section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 6px;
}

h2 {
  color: #E08A4C;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 16px;
  margin-top: 8px;
  font-family: Georgia, serif;
}

h3 {
  color: #F0EEE9;
  font-size: 19px;
  font-weight: 400;
  margin: 18px 0 10px;
  font-family: Georgia, serif;
}

div.legal-flow p {
  color: #C9C4BD;
  font-size: 15.5px;
  margin-bottom: 14px;
}

div.legal-flow p:last-child {
  margin-bottom: 14px;
}

div.legal-flow ul {
  margin: 6px 0 18px 22px;
  list-style: square;
  color: #C9C4BD;
}

div.legal-flow ul li {
  margin-bottom: 8px;
}

strong {
  color: #F0EEE9;
  font-weight: 600;
}

/* ---------- footer ---------- */
footer.legal-footer {
  background-color: #141210;
  border-top: 1px solid #2A2721;
  margin-top: 16px;
}

footer.legal-footer .legal-inner {
  padding-top: 26px;
  padding-bottom: 30px;
  text-align: center;
}

nav.legal-nav {
  margin-bottom: 14px;
}

nav.legal-nav a {
  color: #F0EEE9;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: Georgia, serif;
}

nav.legal-nav a:hover {
  color: #E0B43C;
}

span.lv-sep {
  color: #7A746B;
  margin: 0 8px;
}

p.legal-copy {
  color: #A39D95;
  font-size: 13px;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
}

p.legal-copy a {
  color: #A39D95;
}

p.legal-copy a:hover {
  color: #E8A45C;
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  div.legal-flow {
    padding-top: 32px;
  }

  h1 {
    font-size: 30px;
  }

  p.legal-lede {
    font-size: 16.5px;
  }

  h2 {
    font-size: 21px;
  }

  aside.legal-toc-card {
    padding: 20px;
  }
}
