/* =========================================================
   AbHutch — shared legal stylesheet
   Used by privacy.html and terms-of-service.html only
   Theme: DARK near-black #101410 with FOREST GREEN #166534
   ========================================================= */

.legal-page {
  background-color: #101410;
  color: #E9F0EA;
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

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

html {
  scroll-behavior: smooth;
}

/* Scope isolation: legal content sections must not pick up
   background colors from any shared section styles. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- Container ---------- */
.legal-page .container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.legal-header {
  background: linear-gradient(135deg, #166534 0%, #0E2B17 100%);
  border-bottom: 1px solid #22352A;
  padding: 3rem 0 2.6rem;
}

.legal-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #FFFFFF;
  margin: 1rem 0 0.4rem;
  line-height: 1.15;
}

.legal-header .legal-sub {
  color: #BBF7D0;
  margin: 0.2rem 0 0;
  font-size: 1rem;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  text-decoration: none;
}

.legal-brand:hover {
  color: #BBF7D0;
}

.legal-leaf {
  width: 18px;
  height: 22px;
  display: inline-block;
  background: #BBF7D0;
  border-radius: 100% 0 100% 0;
  transform: rotate(-25deg);
}

/* ---------- Table of contents ---------- */
.toc {
  background-color: #142019;
  border: 1px solid #22352A;
  border-radius: 12px;
  padding: 1.6rem 1.8rem;
  margin: 2.2rem 0 2rem;
}

.toc-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #4ADE80;
  margin: 0 0 0.9rem;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 2;
  column-gap: 2.5rem;
}

.toc-list li {
  margin-bottom: 0.45rem;
  break-inside: avoid;
}

.toc-list a {
  color: #A9C4B2;
  text-decoration: none;
  font-size: 0.95rem;
}

.toc-list a:hover {
  color: #BBF7D0;
}

/* ---------- Legal content ---------- */
.legal-content {
  padding-bottom: 2.5rem;
}

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

.legal-content section {
  margin-bottom: 2.6rem;
}

.legal-content h2 {
  font-size: 1.55rem;
  color: #4ADE80;
  margin: 0 0 0.9rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #22352A;
  line-height: 1.3;
}

.legal-content h3 {
  font-size: 1.15rem;
  color: #E9F0EA;
  margin: 1.3rem 0 0.5rem;
}

.legal-content p {
  color: #C3D5C8;
  margin: 0 0 1.1rem;
}

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

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

/* ---------- Footer ---------- */
.legal-footer {
  background-color: #0C130E;
  border-top: 2px solid #166534;
  padding: 1.6rem 0;
}

.legal-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.legal-footer-inner p {
  margin: 0;
  color: #A9C4B2;
  font-size: 0.92rem;
}

.legal-footer-inner a {
  color: #BBF7D0;
  text-decoration: none;
}

.legal-footer-inner a:hover {
  color: #4ADE80;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .toc-list {
    column-count: 1;
  }

  .legal-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
