/* ============================================================
   HGGServices LLC — shared legal stylesheet
   Loaded by privacy.html and terms-of-service.html only.
   ============================================================ */

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  margin: 0;
  background: #EEEFEA;
  color: #303C38;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
}

* {
  box-sizing: border-box;
}

a {
  color: #167C91;
}

a:hover {
  color: #0F5E6E;
}

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

.legal-header {
  background: #24282C;
  color: #EEEFEA;
  border-bottom: 6px solid #167C91;
  padding: 34px 0 30px;
}

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

.legal-brand {
  display: block;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #EEEFEA;
  text-decoration: none;
  margin-bottom: 6px;
}

.legal-brand-sub {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C6AE49;
  margin-bottom: 22px;
}

.legal-header h1 {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 36px;
  line-height: 1.15;
  margin: 0 0 10px;
  color: #EEEFEA;
}

.legal-header-meta {
  font-size: 13px;
  color: #DADEDC;
  margin: 0;
}

.legal-header-rule {
  width: 76px;
  height: 5px;
  background: #C6AE49;
  margin: 18px 0 0;
}

/* ---------- legal content ---------- */

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

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

.legal-content section {
  background: #EEEFEA !important;
  margin-bottom: 34px;
}

.legal-content#privacyContent section,
.legal-content#termsContent section {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.legal-content h2 {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 24px;
  line-height: 1.25;
  color: #24282C;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 3px solid #DADEDC;
}

.legal-content h3 {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  color: #0F5E6E;
  margin: 24px 0 8px;
}

.legal-content p {
  margin: 0 0 14px;
  color: #303C38;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  color: #303C38;
}

.legal-content li::marker {
  color: #167C91;
}

.legal-intro {
  background: #DADEDC;
  border-left: 8px solid #167C91;
  padding: 24px 26px;
  margin-bottom: 34px;
}

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

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

.legal-toc {
  background: #DADEDC;
  border-top: 6px solid #C6AE49;
  padding: 26px 28px 20px;
  margin-bottom: 40px;
}

.legal-toc h2 {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #24282C;
  margin: 0 0 14px;
  padding: 0;
  border: none;
}

.legal-toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 36px;
}

.legal-toc li {
  margin-bottom: 9px;
  break-inside: avoid;
}

.legal-toc a {
  color: #0F5E6E;
  text-decoration: none;
  border-bottom: 1px solid #B9C2BE;
}

.legal-toc a:hover {
  border-bottom-color: #167C91;
  color: #24282C;
}

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

.legal-footer {
  background: #24282C;
  color: #EEEFEA;
  padding: 32px 0;
  border-top: 6px solid #167C91;
}

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

.legal-footer p {
  margin: 0 0 10px;
  font-size: 14px;
  color: #DADEDC;
}

.legal-footer a {
  color: #C6AE49;
  text-decoration: none;
  border-bottom: 2px solid #167C91;
}

.legal-footer a:hover {
  color: #EEEFEA;
  border-bottom-color: #C6AE49;
}

.legal-footer-links {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid #33393E;
  font-size: 13.5px;
}

.legal-footer-links a {
  margin-right: 18px;
}

/* ---------- back to top ---------- */

.legal-top {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0F5E6E;
  text-decoration: none;
  border-bottom: 2px solid #167C91;
  padding-bottom: 2px;
}

.legal-top:hover {
  color: #24282C;
  border-bottom-color: #C6AE49;
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .legal-header h1 {
    font-size: 28px;
  }

  .legal-toc ol {
    columns: 1;
  }

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

  .legal-intro {
    padding: 20px 20px;
  }
}
