/* ===== Terms & Conditions page (TermsAndCondition.html) styles ===== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.terms {
  max-width: 890px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  color: #918e8e;
}

/* Bold note at the top and bottom */
.terms__note {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
  color: #666;
}

.terms__note:last-child {
  margin: 14px 0 0;
}

/* Sections */
.terms__list {
  margin: 0 0 0 -2px;
  padding-left: 18px;
  list-style: disc;
  color: #333;
}

.term {
  margin-bottom: 14px;
  scroll-margin-top: 20px;
}

.term::marker {
  font-size: 14px;
}

.term__title {
  position: relative;
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
}

/* "#" link added by js/TermsAndCondition.js, shown on hover */
.term__anchor {
  margin-left: 8px;
  font-size: 15px;
  color: #00a2e8;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.term__title:hover .term__anchor,
.term__anchor:focus-visible {
  opacity: 1;
}

.term__anchor.is-copied::after {
  content: " Link copied";
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
}

/* Section highlighted when opened from a link */
.term.is-target .term__title {
  color: #00a2e8;
}

.term p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.8;
  color: #918e8e;
}

.term a {
  color: #666;
}

.term a:hover {
  color: #00a2e8;
}

.term b {
  color: #666;
}

.term__sublist {
  margin: 18px 0 0;
  padding-left: 18px;
  list-style: lower-roman;
  color: #918e8e;
}

.term__sublist li {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.8;
}

.term__sublist li::marker {
  font-size: 15px;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .terms__note {
    font-size: 15px;
  }

  .term__title {
    font-size: 16px;
  }

  .term__anchor {
    opacity: 1;
  }
}
