/* ============================================================
   AFRISIA HOLDING LIMITED — shared legal stylesheet
   Used ONLY by privacy.html and terms-of-service.html.
   Theme: warm ivory light theme, harbor teal accents.
   Palette: ivory #FAF7F2 / ink #1D2B2B / teal #0F6E6E / mist #CDE8E4
   ============================================================ */

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

body {
  background-color: #FAF7F2;
  color: #1D2B2B;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #0F6E6E;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Scope isolation: ensure the brand site stylesheet, if ever
   present, can never tint legal content sections. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ============================================================
   LEGAL PAGE HEADER (always a <header>, never a <section>)
   ============================================================ */

.legal-header {
  background-color: #0F6E6E;
  color: #FFFFFF;
  padding: 34px 24px 46px;
  text-align: center;
  border-bottom: 4px solid #1D2B2B;
}

.legal-header-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 30px;
}

.legal-home {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.legal-home:hover {
  text-decoration: none;
}

.legal-home-glyph {
  width: 20px;
  height: 20px;
  background-color: #FFFFFF;
  display: block;
  flex: none;
}

.legal-home-word {
  font-weight: 800;
  letter-spacing: 0.2em;
  font-size: 16px;
  color: #FFFFFF;
}

.legal-home-caption {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: #CDE8E4;
  text-transform: uppercase;
}

.legal-page-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #CDE8E4;
  border: 1px solid #CDE8E4;
  padding: 8px 16px;
}

.legal-header h1 {
  max-width: 820px;
  margin: 0 auto;
  font-size: 46px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.12;
}

/* ============================================================
   LEGAL CONTENT
   ============================================================ */

.legal-content {
  padding: 48px 0 60px;
  background-color: #FAF7F2;
}

/* Any max-width container must center itself and pad on the sides. */
.legal-content .container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-updated {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0F6E6E;
  margin-bottom: 18px;
}

.legal-lead {
  font-size: 18px;
  color: #1D2B2B;
  margin-bottom: 34px;
  border-left: 4px solid #0F6E6E;
  padding-left: 18px;
}

/* --- Table of contents (class selectors only, never a bare nav) --- */

.legal-toc {
  background-color: #CDE8E4;
  border: 1px solid #0F6E6E;
  padding: 22px 26px;
  margin-bottom: 44px;
}

.legal-toc .toc-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0F6E6E;
  margin-bottom: 10px;
}

.legal-toc a {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1D2B2B;
  padding: 4px 0;
  border-bottom: 1px solid rgba(15, 110, 110, 0.25);
}

.legal-toc a:last-child {
  border-bottom: none;
}

.legal-toc a:hover {
  color: #0F6E6E;
  text-decoration: none;
}

/* --- Sections --- */

.legal-content section {
  border-bottom: 1px solid #0F6E6E;
  padding: 30px 0;
}

.legal-content section:last-child {
  border-bottom: none;
}

.legal-content h2 {
  font-size: 27px;
  font-weight: 800;
  color: #0F6E6E;
  margin-bottom: 16px;
  line-height: 1.25;
}

.legal-content p {
  color: #1D2B2B;
  font-size: 16px;
  margin-bottom: 14px;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   LEGAL FOOTER
   ============================================================ */

.legal-footer {
  background-color: #1D2B2B;
  color: #FFFFFF;
  text-align: center;
  padding: 40px 24px 46px;
  border-top: 4px solid #0F6E6E;
}

.legal-footer-word {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #CDE8E4;
  margin-bottom: 12px;
}

.legal-footer p {
  font-size: 14px;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.legal-footer a {
  color: #CDE8E4;
  font-weight: 700;
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .legal-header {
    padding: 26px 18px 36px;
  }

  .legal-header-inner {
    flex-direction: column;
    text-align: center;
  }

  .legal-header h1 {
    font-size: 34px;
  }

  .legal-content {
    padding: 34px 0 44px;
  }

  .legal-lead {
    font-size: 16px;
  }

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