/* Presbot legal pages — table of contents and readable layout */

.pb-legal-page {
  --pb-legal-toc-width: 14rem;
}

.pb-legal-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .pb-legal-layout {
    grid-template-columns: var(--pb-legal-toc-width) minmax(0, 1fr);
    align-items: start;
  }
}

.pb-legal-toc {
  border: 1px solid rgb(226 232 240);
  border-radius: 0.75rem;
  background: rgb(248 250 252);
  padding: 1rem 1.25rem;
}

.pb-legal-toc__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgb(100 116 139);
}

.pb-legal-toc__list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.pb-legal-toc__link {
  display: block;
  border-radius: 0.375rem;
  padding: 0.25rem 0.375rem;
  color: rgb(51 65 85);
  line-height: 1.4;
}

.pb-legal-toc__link:hover {
  color: rgb(37 99 235);
  background: rgb(255 255 255);
}

.pb-legal-toc__link:focus-visible {
  outline: 2px solid rgb(37 99 235);
  outline-offset: 2px;
}

.pb-legal-layout__content {
  max-width: 42rem;
}

.pb-legal-section {
  scroll-margin-top: 6.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .pb-legal-toc__link {
    transition: none;
  }
}
