:root {
  --brand-beige: #080909 !important;
  --text: #1a1a1a;
  --muted: #666;
  --accent: #111212;
}

/* ---------------- BASE ---------------- */
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------------- HEADER SECTION ---------------- */
.terms-header {
  background: linear-gradient(90deg, #fff 0%, #cffeff 100%);
  padding: 36px 0;
  margin-bottom: 28px;
  text-align: center;
}

.terms-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 36px;
  margin: 0 0 6px;
}

.terms-header p.lead {
  margin: 0 auto;
  font-size: 14px;
  color: #000;
  max-width: 760px;
}

/* ---------------- MAIN CONTAINER ---------------- */
.terms-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 18px;
  font-family: 'Montserrat', sans-serif;
}

/* ---------------- CARD ---------------- */
.terms-card {
  background: #fff;
  padding: 32px;
  border-radius: 6px;
}

/* 🔑 IMPORTANT: RESET SECTION SPACING (MATCH PRIVACY) */
.terms-card section {
  margin: 0;
  padding: 0;
}

/* ---------------- ACTION ROW ---------------- */
.action-row {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.terms-card .small-muted {
  color: var(--muted);
  font-size: 13px;
}

/* ---------------- TABLE OF CONTENTS ---------------- */
.toc {
  margin-bottom: 18px;
  padding: 10px 14px;
  background: #fbfbfb;
  border-radius: 6px;
  font-size: 14px;
}

.toc a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

.toc a:hover {
  text-decoration: underline;
}

/* ---------------- HEADINGS (EXACT MATCH TO PRIVACY) ---------------- */
.terms-card h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 1.2px;
  color: #000;
  margin-top: 44px;
  margin-bottom: 20px;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* first heading correction */
.terms-card section:first-of-type h2 {
  margin-top: 32px;
}

/* underline */
.terms-card h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  background: #111;
  margin-top: 10px;
  opacity: 0.6;
}

/* spacing after h2 */
.terms-card h2 + p,
.terms-card h2 + ul {
  margin-top: 6px;
}

/* ---------------- TEXT ---------------- */
.terms-card p,
.terms-card li {
  font-size: 15px;
  line-height: 1.75;
  color: #000;
}

.terms-card ul {
  padding-left: 18px;
}

/* ---------------- LINKS ---------------- */
.terms-card a {
  color: #000;
  font-weight: 500;
  text-decoration: underline;
}

.terms-card a:hover {
  color: #080909;
  text-decoration-thickness: 2px;
}

/* ---------------- PRINT BUTTON ---------------- */
.btn-outline-print {
  border-radius: 28px;
  border: 1px solid #ccc;
  padding: 8px 14px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

/* ---------------- CONTACT SECTION ---------------- */
#contact p {
  margin-bottom: 8px;
}

#contact a {
  font-weight: 600;
}

/* ---------------- PRINT ---------------- */
@media print {
  body {
    background: #fff;
  }

  .terms-header {
    padding: 30px 0;
  }

  .btn-outline-print {
    display: none;
  }

  .terms-card {
    padding: 0;
  }
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 767px) {
  .terms-header h1 {
    font-size: 28px;
  }

  .terms-card {
    padding: 20px;
  }

  .terms-card h2 {
    font-size: 21px;
    margin-top: 36px;
  }
}
