/* Layout of the TOC container */
.legal-toc {
  display: flex;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
  gap: 0.75rem; /* space between items */
}

/* Each row */
.legal-toc-item {
  /* optional: nothing required unless you want extra layout */
}

/* The actual link appearance */
.legal-toc .text-link {
  font-size: 16px;
  line-height: 1.4;
  color: #555;                /* or your token: var(--shade--700) */
  text-decoration: none;
}

.legal-toc .text-link:hover {
  color: #000;                /* or a brand token */
  text-decoration: underline;
}

.legal-toc a {
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Anchor offset for sections targeted by the TOC */
.legal-toc-item-ref[id] {
  position: relative;
}

/* Create an invisible “spacer” above the anchor */
.legal-toc-item-ref[id]::before {
  content: "";
  display: block;
  height: 74px;      /* height of sticky nav */
  margin-top: -74px; /* negative to keep layout unchanged */
  visibility: hidden;
}