/* ── Sidebar table of contents ── */
.policy-toc {
  position: sticky;
  top: 80px;
  padding: 30px 20px 30px 0px;
}

.policy-toc .toc-label {
  font-size: 11px;
  font-weight: 600;
  color: #8a93a5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.policy-toc .toc-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.policy-toc .toc-item {
  font-size: 14px;
  line-height: 1.4;
  color: #758195;
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 6px;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-left: 2px solid transparent;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}

.policy-toc .toc-item:hover {
  color: #172b4d;
  background: #f4f5f7;
}

.policy-toc .toc-item.active {
  color: #2b4fe8;
  background: #eef2ff;
  border-left-color: #2b4fe8;
  font-weight: 500;
}

.policy-toc .toc-sep {
  height: 1px;
  background: #e6e8ec;
  margin: 8px 0px;
}

/* offset anchor jumps for the sticky site header */
.comm-content .inner section[id] {
  scroll-margin-top: 90px;
}

/* ── Back to top ── */
.policy-back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  background: #172b4d;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  -webkit-transition:
    opacity 0.2s ease,
    background 0.2s ease;
  transition:
    opacity 0.2s ease,
    background 0.2s ease;
  z-index: 3;
}

.policy-back-top.show {
  opacity: 1;
  visibility: visible;
}

.policy-back-top:hover {
  background: #2b4fe8;
}
