/* ============================================================
   Legal pages — privacy.html and terms-of-service.html
   Plain single-column centered legal form. Strong SEAL-GREY
   ground with MOON-MIST ink. Loads ONLY this stylesheet.
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: "Georgia", "Times New Roman", serif;
  background-color: #566674;
  color: #B2C6CA;
  line-height: 1.78;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Legal header ---------- */
.legal-head {
  background-color: #3C4A55;
  border-bottom: 4px solid #B2C6CA;
}

.legal-head-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 24px 30px;
}

.legal-head-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #EAF1F2;
  letter-spacing: 0.02em;
  max-width: 420px;
  line-height: 1.3;
}

.legal-badge {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #B2C6CA;
  box-shadow: inset 0 0 0 4px #3C4A55, inset 0 0 0 7px #B2C6CA;
  flex: 0 0 auto;
}

.legal-backlink {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #B2C6CA;
  text-decoration: none;
  border: 2px solid #B2C6CA;
  padding: 9px 16px;
  border-radius: 2px;
}

.legal-backlink:hover {
  background-color: #B2C6CA;
  color: #3C4A55;
}

.legal-head h1 {
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  color: #EAF1F2;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.legal-head-sub {
  color: #C4D4D7;
  margin-top: 12px;
  max-width: 46em;
  font-size: 1rem;
}

.legal-updated {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #B2C6CA;
  margin-top: 16px;
}

/* ---------- Content column ---------- */
.legal-shell {
  background-color: #566674;
  padding: 52px 0 70px;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-content h2 {
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #EAF1F2;
  margin: 44px 0 14px;
  line-height: 1.25;
  border-left: 5px solid #B2C6CA;
  padding-left: 16px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  color: #C4D4D7;
  margin: 26px 0 10px;
}

.legal-content p {
  color: #C4D4D7;
  margin-bottom: 1.05em;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 1.1em 1.4em;
  color: #C4D4D7;
}

.legal-content li {
  margin-bottom: 0.55em;
}

.legal-content a {
  color: #EAF1F2;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.legal-content strong {
  color: #EAF1F2;
}

/* Scope isolation: section wrappers inside legal content
   keep the page color and never inherit decorative backgrounds */
.legal-content section {
  background-color: transparent !important;
}

/* ---------- Table of contents ---------- */
.legal-toc {
  background-color: #46545F;
  border: 1px solid #9DB2B7;
  border-radius: 3px;
  padding: 24px 26px 20px;
  margin-bottom: 18px;
}

.legal-toc-title {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #B2C6CA;
  margin-bottom: 14px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.3em;
  columns: 2;
  column-gap: 34px;
}

.legal-toc li {
  margin-bottom: 0.4em;
  break-inside: avoid;
}

.legal-toc a {
  color: #C4D4D7;
  text-decoration: none;
  font-size: 0.94rem;
}

.legal-toc a:hover {
  color: #EAF1F2;
  text-decoration: underline;
}

/* ---------- Callout ---------- */
.legal-note {
  background-color: #46545F;
  border-left: 5px solid #B2C6CA;
  padding: 18px 22px;
  margin: 26px 0;
  color: #C4D4D7;
  border-radius: 2px;
}

.legal-note strong {
  color: #EAF1F2;
}

/* ---------- Footer ---------- */
.legal-foot {
  background-color: #3C4A55;
  border-top: 2px solid #B2C6CA;
  padding: 30px 0 38px;
}

.legal-foot-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  color: #C4D4D7;
}

.legal-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 16px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.88rem;
}

.legal-foot-links a {
  color: #B2C6CA;
  text-decoration: none;
}

.legal-foot-links a:hover {
  color: #EAF1F2;
  text-decoration: underline;
}

.legal-foot-links .sep {
  color: #9DB2B7;
}

.legal-foot-meta {
  font-size: 0.88rem;
  color: #C4D4D7;
  line-height: 1.65;
}

.legal-foot-meta a {
  color: #EAF1F2;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .legal-head h1 {
    font-size: 1.7rem;
  }
  .legal-toc ol {
    columns: 1;
  }
  .legal-content h2 {
    font-size: 1.24rem;
  }
  .legal-head-inner {
    padding: 22px 24px 26px;
  }
}
