/* ============================================================
   JYT Growth Capital Pte. Ltd. — shared legal stylesheet
   Loaded by privacy.html and terms-of-service.html only.
   Self contained: page background and text colours defined here.
   Palette: NURSERY #E6F0E2 / POTTING #26302A / YUNNAN #769020
            CAPITAL #1E241E / SEEDTRAY-PANEL #ECE6D0
   ============================================================ */

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 16px;
  font-family: Georgia, "Times New Roman", "Noto Serif", serif;
  line-height: 1.7;
  color: #26302A;
  background-color: #E6F0E2;
  overflow-x: hidden;
}

/* ---------- legal header ---------- */

.legal-header {
  background: #1E241E;
  border-bottom: 5px solid #769020;
  padding: 0;
  color: #E6F0E2;
}
.legal-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 24px 28px;
}
.legal-brand {
  display: inline-block;
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #E6F0E2;
  text-decoration: none;
  margin-bottom: 14px;
}
.legal-brand:hover {
  color: #C3CC86;
}
.legal-header h1 {
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.12;
  color: #FFFFFF;
  margin: 0 0 10px;
}
.legal-header p.legal-meta {
  margin: 0;
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  font-size: 13.5px;
  color: #C9D3BC;
}

/* ---------- legal body ---------- */

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

.legal-content {
  padding: 46px 0 30px;
}

/* scope isolation: sections never inherit decorative backgrounds */
.legal-content section {
  background: transparent !important;
  border: 0;
  padding: 0;
  margin: 0 0 26px;
}

.legal-content h2 {
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  font-size: 22px;
  line-height: 1.2;
  color: #26302A;
  margin: 34px 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #C3CC86;
}
.legal-content h3 {
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  font-size: 17.5px;
  color: #3C463A;
  margin: 20px 0 8px;
}
.legal-content p {
  margin: 0 0 14px;
}
.legal-content ul,
.legal-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal-content li {
  margin-bottom: 8px;
}
.legal-content a {
  color: #4B6A12;
  text-decoration: underline;
}
.legal-content a:hover {
  color: #26302A;
}
.legal-content strong {
  color: #1E241E;
}

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

/* ---------- table of contents ---------- */

.legal-toc {
  background: #ECE6D0;
  border-left: 6px solid #769020;
  border-radius: 3px;
  padding: 24px 28px 26px;
  margin: 8px 0 40px;
}
.legal-toc h2 {
  margin-top: 0;
  border-bottom: 2px solid #CFC7A6;
  font-size: 17px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3C463A;
}
.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 36px;
}
.legal-toc li {
  margin-bottom: 6px;
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  font-size: 14.5px;
}
.legal-toc a {
  color: #4B6A12;
  text-decoration: none;
}
.legal-toc a:hover {
  text-decoration: underline;
}

/* ---------- contact block utility ---------- */

.legal-contactbox {
  background: #DCE8D6;
  border-top: 4px solid #92983A;
  border-radius: 3px;
  padding: 20px 24px;
  margin: 20px 0;
}
.legal-contactbox p {
  margin: 0 0 6px;
}
.legal-contactbox p:last-child {
  margin-bottom: 0;
}

/* ---------- legal footer ---------- */

.legal-footer {
  background: #1E241E;
  color: #E6F0E2;
  border-top: 4px solid #769020;
}
.legal-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: baseline;
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  font-size: 13.5px;
  color: #C9D3BC;
}
.legal-footer-inner a {
  color: #E6F0E2;
  text-decoration: none;
}
.legal-footer-inner a:hover {
  text-decoration: underline;
  color: #C3CC86;
}
.legal-footer-copy {
  margin-left: auto;
}

@media (max-width: 680px) {
  .legal-toc ol {
    columns: 1;
  }
  .legal-footer-inner {
    flex-direction: column;
    gap: 6px;
  }
  .legal-footer-copy {
    margin-left: 0;
  }
  .legal-content h2 {
    font-size: 20px;
  }
}
