/* ==========================================================================
   KIN SHING LUNG MARINE PRODUCTS LIMITED
   Shared legal stylesheet — Privacy Policy and Terms of Service pages only.
   DARK theme: deep green-black #0F1512 | ivory #EDF3EC | kelp-green #357A56
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #EDF3EC;
  background: #0F1512;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #A9C8B4;
  text-decoration: none;
}

a:hover {
  color: #EDF3EC;
}

/* ---- Legal page header (never a section element) ---- */
.legal-header {
  background: linear-gradient(180deg, #16211B 0%, #0F1512 100%);
  border-bottom: 1px solid #357A56;
  padding: 48px 0 40px;
}

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

.legal-brand {
  display: block;
  color: #EDF3EC;
  font-weight: 800;
  letter-spacing: 4px;
  font-size: 16px;
  margin-bottom: 8px;
}

.legal-home-link {
  color: #A9C8B4;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}

.legal-home-link:hover {
  color: #EDF3EC;
}

.legal-header h1 {
  color: #EDF3EC;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  margin: 28px 0 12px;
}

.legal-meta {
  color: #A9C8B4;
  font-size: 14px;
}

/* ---- Legal content ---- */
.legal-page {
  background: #0F1512;
}

.legal-content {
  background: #0F1512;
  padding: 56px 0 80px;
}

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

/* Table of contents */
.toc {
  background: #16211B;
  border: 1px solid #357A56;
  padding: 28px 32px;
  margin-bottom: 56px;
}

.toc-title {
  color: #A9C8B4;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}

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

.toc li {
  margin-bottom: 8px;
}

.toc a {
  color: #A9C8B4;
  font-size: 15px;
  line-height: 1.6;
}

.toc a:hover {
  color: #EDF3EC;
}

/* Scope isolation: legal sections must never inherit a homepage-style
   background. This applies ONLY to body content sections, never to the
   legal page header or footer. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

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

.legal-content section h2 {
  color: #357A56;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 14px;
  padding-top: 8px;
  scroll-margin-top: 24px;
}

.legal-content section h3 {
  color: #EDF3EC;
  font-size: 20px;
  font-weight: 800;
  margin: 20px 0 10px;
}

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

.legal-content ul {
  margin: 0 0 16px 22px;
  list-style: disc;
}

.legal-content ul li {
  color: #EDF3EC;
  margin-bottom: 8px;
}

.legal-content ol {
  margin: 0 0 16px 22px;
  list-style: decimal;
}

.legal-content ol li {
  color: #EDF3EC;
  margin-bottom: 8px;
}

.legal-content a {
  color: #A9C8B4;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #EDF3EC;
}

/* ---- Legal footer ---- */
.legal-footer {
  background: #0F1512;
  border-top: 1px solid #357A56;
  padding: 36px 0 32px;
}

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

.legal-footer p {
  color: #EDF3EC;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 10px;
}

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

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

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .legal-header h1 {
    font-size: 34px;
  }

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

  .toc {
    padding: 22px;
  }
}
