/* ==========================================================================
   Zung Sing Engineering Limited — Legal stylesheet
   Loaded ONLY by privacy.html and terms-of-service.html. These pages never
   load /css/style.css, so this file must define the full light theme and the
   body background itself. Scope all content rules under .legal-page-body to
   keep the header and footer out of harm.
   Palette: site-hut #F7F5F1 · rig-ink #2E2C28 · rig-maroon #8A4038
            maroon-dark #6E3B33 · blueprint-line #5D7A96 · safety-lime #C8CC4E
            text #403D37 · hairline #E3DFD6 · deep-ink #26241F
   ========================================================================== */

.legal-page {
  background-color: #F7F5F1;
  color: #2E2C28;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

img {
  max-width: 100%;
}

a {
  color: #6E3B33;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: #8A4038;
}

.container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3,
h4 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #2E2C28;
}

/* ---- Scope isolation: article sections must never take a hostile tint ---- */
.legal-page .legal-page-body .legal-content section {
  background-color: transparent !important;
}

/* ==========================================================================
   HEADER — a plain <header> block, never a <section>. Solid tinted
   background. The title inside is styled strongly against that tint.
   ========================================================================== */
.legal-header {
  background-color: #26241F;
  border-bottom: 4px solid #8A4038;
  padding: 26px 0 22px;
}

.legal-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  max-width: 820px;
}

.legal-brand {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFDF9;
  text-decoration: none;
}

.legal-brand:hover {
  color: #C8CC4E;
}

.legal-brand-note {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C8CC4E;
}

.legal-eyebrow {
  width: 100%;
  margin-top: 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #E3DFD6;
}

.legal-eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  background-color: #5D7A96;
}

/* ==========================================================================
   CONTENT
   ========================================================================== */
.legal-page-body .legal-content {
  background-color: #F7F5F1;
  padding: 46px 0 10px;
}

.legal-page-body .legal-title {
  font-size: 40px;
  color: #6E3B33;
  line-height: 1.1;
  margin: 0 0 12px;
}

.legal-updated {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6E3B33;
  padding-bottom: 18px;
  border-bottom: 2px solid #8A4038;
}

/* ---- Table of contents (a nav element, but never position:fixed) ---- */
nav.toc {
  background-color: #FFFDF9;
  border: 1px solid #E3DFD6;
  border-radius: 5px;
  padding: 22px 26px;
  margin: 26px 0 12px;
  box-shadow: 0 6px 16px rgba(43, 40, 34, 0.05);
}

nav.toc .toc-heading {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8A4038;
  margin-bottom: 12px;
}

nav.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 34px;
}

@media (max-width: 680px) {
  nav.toc ol {
    columns: 1;
  }
}

nav.toc li {
  margin-bottom: 7px;
  padding-left: 18px;
  position: relative;
}

nav.toc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  background-color: #5D7A96;
}

nav.toc a {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 16px;
  color: #2E2C28;
  text-decoration: none;
}

nav.toc a:hover {
  color: #8A4038;
  text-decoration: underline;
}

/* ---- Body sections ---- */
.legal-content section {
  background-color: transparent;
  padding: 30px 0 6px;
}

.legal-content section h2 {
  font-size: 24px;
  color: #6E3B33;
  margin: 0 0 14px;
  padding-left: 14px;
  border-left: 5px solid #8A4038;
}

.legal-content section p {
  font-size: 16px;
  line-height: 1.8;
  color: #403D37;
  margin: 0 0 16px;
}

.legal-content section a {
  color: #8A4038;
}

.legal-content section ul,
.legal-content section ol {
  margin: 0 0 16px;
  padding-left: 26px;
  color: #403D37;
}

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

/* ==========================================================================
   FOOTER — solid dark, strong contrast, links back to the homepage.
   ========================================================================== */
.legal-footer {
  background-color: #26241F;
  color: #E8E2D4;
  padding: 30px 0 34px;
  margin-top: 34px;
  border-top: 4px solid #8A4038;
}

.legal-footer a {
  color: #C8CC4E;
  text-decoration: underline;
}

.legal-footer a:hover {
  color: #FFFDF9;
}

.legal-footline {
  margin-top: 10px;
  font-size: 13.5px;
  color: #CDC7B9;
  line-height: 1.9;
}
