/* ==========================================================================
   Yugo Tree Worx — Legal Pages Stylesheet
   Loaded ONLY by privacy.html and terms-of-service.html (never style.css).
   Dark warm-forest theme to match the main site.
   ========================================================================== */

.legal-page {
  background-color: #0D120E;
  color: #EDF2EC;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.78;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.legal-page * {
  box-sizing: border-box;
}

.legal-page a {
  color: #8FBF9F;
  text-decoration: none;
}

.legal-page a:hover {
  color: #EDF2EC;
}

/* Header (a <header> element, solid forest green background) */
.legal-header {
  background-color: #2E6B4F;
  border-bottom: 1px solid #12241A;
}
.legal-header .legal-header-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 50px;
}
.legal-header .legal-home-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #CFE3D5;
  margin-bottom: 26px;
}
.legal-header .legal-home-link:hover {
  color: #FFFFFF;
}
.legal-header h1 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  line-height: 1.15;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 14px;
}
.legal-header .legal-meta {
  font-size: 15px;
  color: #CFE3D5;
  margin: 0 0 4px;
}

/* Content area */
.legal-content {
  padding: 56px 0 72px;
}
.legal-content .container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Scope isolation: ensure no stray section background paints over legal text */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* Table of contents */
.legal-content .toc {
  max-width: 820px;
  margin: 0 auto 48px;
  padding: 0 24px;
}
.legal-content .toc-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #C9A87C;
  margin-bottom: 16px;
}
.legal-content .toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 40px;
}
.legal-content .toc li {
  margin-bottom: 10px;
  break-inside: avoid;
}
.legal-content .toc a {
  font-size: 15px;
  color: #8FBF9F;
}

/* Sections */
.legal-section {
  padding: 34px 0;
  border-bottom: 1px solid #223029;
}
.legal-section:first-of-type {
  border-top: 1px solid #223029;
}
.legal-section h2 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.25;
  color: #8FBF9F;
  margin: 0 0 16px;
}
.legal-section h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #EDF2EC;
  margin: 22px 0 10px;
}
.legal-section p {
  font-size: 16px;
  color: #EDF2EC;
  margin: 0 0 16px;
}
.legal-section ul,
.legal-section ol {
  margin: 0 0 16px;
  padding-left: 24px;
  color: #EDF2EC;
}
.legal-section li {
  margin-bottom: 10px;
  font-size: 16px;
}
.legal-section strong {
  color: #C9A87C;
  font-weight: 700;
}

/* Footer */
.legal-footer {
  background-color: #111813;
  border-top: 1px solid #2E6B4F;
}
.legal-footer .legal-footer-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 34px 24px 40px;
}
.legal-footer p {
  font-size: 14px;
  line-height: 1.9;
  color: #C4D1C7;
  margin: 0;
}

@media (max-width: 640px) {
  .legal-content .toc ol {
    columns: 1;
  }
}
