/* ============================================================
   LEGAL STYLES — privacy.html & terms-of-service.html
   BELVEDERE HOLDING LIMITED — Indigo Dye House theme
   (legal pages load ONLY this stylesheet, never style.css)
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

.legal-page {
  background-color: #141824;
  color: #E9ECF4;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ------- Scope isolation: never bleed into header/footer ------- */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------------- Legal header ---------------- */
.legal-header {
  background-color: #0F1320;
  border-bottom: 1px solid #2A3350;
  padding: 40px 0 28px;
}

.legal-header .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-knot-glyph {
  width: 12px;
  height: 12px;
  background-color: #C9622F;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.legal-knot-glyph::before,
.legal-knot-glyph::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background-color: #F1EFE8;
}

.legal-knot-glyph::before {
  top: -3px;
  left: -2px;
}

.legal-knot-glyph::after {
  bottom: -4px;
  right: -2px;
}

.legal-brand a {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #5B7DB8;
  text-decoration: none;
}

.legal-header .container .back-home {
  display: inline-block;
  margin-top: 18px;
  color: #C6CFDF;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.legal-header .container .back-home:hover {
  color: #F1EFE8;
}

/* ---------------- Main content ---------------- */
.legal-content {
  padding: 48px 0 40px;
}

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

.legal-doc-title h1 {
  color: #7D9BD0;
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-doc-title .legal-meta {
  color: #C6CFDF;
  font-size: 14px;
  letter-spacing: 0.06em;
  margin-bottom: 36px;
}

/* ---------------- Table of contents ---------------- */
.legal-toc {
  background-color: #1D2436;
  border: 1px solid #2A3350;
  padding: 26px 28px;
  margin-bottom: 40px;
}

.legal-toc h2 {
  color: #7D9BD0;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.legal-toc ol {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
}

.legal-toc li a {
  color: #C6CFDF;
  font-size: 14px;
  text-decoration: none;
}

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

/* ---------------- Headings & text ---------------- */
.legal-content section {
  margin-bottom: 40px;
}

.legal-content h2 {
  color: #7D9BD0;
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2A3350;
}

.legal-content h3 {
  color: #F1EFE8;
  font-size: 19px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-content p {
  color: #C6CFDF;
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  color: #C6CFDF;
  margin: 0 0 16px 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: #7D9BD0;
}

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

.legal-content em {
  color: #D6DEED;
}

.legal-content address {
  font-style: normal;
  color: #C6CFDF;
  background-color: #1D2436;
  border-left: 3px solid #C9622F;
  padding: 16px 20px;
  margin: 16px 0;
}

/* ---------------- Legal footer ---------------- */
.legal-footer {
  background-color: #0F1320;
  border-top: 1px solid #2A3350;
  padding: 32px 0;
  margin-top: 20px;
}

.legal-footer .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.legal-footer p {
  color: #C6CFDF;
  font-size: 13px;
  line-height: 1.9;
}

.legal-footer a {
  color: #7D9BD0;
  text-decoration: none;
}

.legal-footer a:hover {
  text-decoration: underline;
}

.legal-skein {
  width: 26px;
  height: 26px;
  border: 5px solid #F1EFE8;
  border-radius: 50%;
  margin: 0 auto 18px;
  position: relative;
}

.legal-skein::after {
  content: "";
  position: absolute;
  bottom: -22px;
  left: 50%;
  width: 2px;
  height: 18px;
  background-color: #5B7DB8;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 720px) {
  .legal-toc ol {
    grid-template-columns: 1fr;
  }

  .legal-doc-title h1 {
    font-size: 30px;
  }

  .legal-content h2 {
    font-size: 22px;
  }

  .legal-content .container {
    padding: 0 18px;
  }
}
