/**
 * Table of Contents Styles
 *
 * Styles for the legal page TOC and legal content area.
 */

/* TOC container */
.psl-legal-toc {
	transition: opacity 0.2s ease;
}

/* TOC link active state */
.psl-toc-list a.is-active {
	color: var(--wp--preset--color--primary) !important;
	font-weight: 600;
}

/* Legal content — optimized reading typography */
.psl-legal-content h2 {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--border);
	scroll-margin-top: 5rem;
}

.psl-legal-content h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

.psl-legal-content h3 {
	margin-top: 2rem;
	scroll-margin-top: 5rem;
}

.psl-legal-content ul,
.psl-legal-content ol {
	padding-left: 1.5rem;
}

.psl-legal-content li {
	margin-bottom: 0.5rem;
}

/* Ensure good contrast for legal text */
.psl-legal-content p,
.psl-legal-content li {
	color: var(--wp--preset--color--muted-foreground);
}

.psl-legal-content strong {
	color: var(--wp--preset--color--foreground);
}
