/**
 * Legal pages (terms, privacy): a readable, centred document column.
 *
 * Bookory renders these default-template pages edge to edge, so the text ran the
 * full width of the viewport with 20px of breathing room and no vertical rhythm.
 * Scoped to the `npd-legal-page` body class added by NPD_Theme_Setup.
 */

.npd-legal-page #primary {
	max-width: 780px;
	margin-inline: auto;
	padding: 56px 24px 88px;
}

/* Title, with a short accent rule standing in for the missing page header. */
.npd-legal-page .entry-header {
	margin-bottom: 40px;
}

.npd-legal-page .entry-title {
	font-size: clamp(28px, 3.4vw, 38px);
	line-height: 1.25;
	margin-bottom: 16px;
}

.npd-legal-page .entry-header::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	background: var(--primary, #f65d4e);
	border-radius: 2px;
}

.npd-legal-page .entry-content {
	font-size: 15px;
	line-height: 1.75;
}

.npd-legal-page .entry-content > * + * {
	margin-top: 18px;
}

/* Section headings. scroll-margin keeps #reklamace &co. off the viewport edge. */
.npd-legal-page .entry-content h2 {
	font-size: 19px;
	line-height: 1.4;
	font-weight: 600;
	color: #15293f;
	scroll-margin-top: 24px;
}

.npd-legal-page .entry-content > h2 + * {
	margin-top: 12px;
}

.npd-legal-page .entry-content > * + h2 {
	margin-top: 44px;
}

/* Bookory indents lists 45px past the text; pull them back under it. */
.npd-legal-page .entry-content ul {
	margin-left: 0;
	padding-left: 22px;
	list-style: disc;
}

.npd-legal-page .entry-content li {
	margin-bottom: 8px;
}

.npd-legal-page .entry-content li::marker {
	color: var(--primary, #f65d4e);
}

.npd-legal-page .entry-content a {
	text-decoration: underline;
	text-decoration-color: var(--primary, #f65d4e);
	text-underline-offset: 3px;
}

.npd-legal-page .entry-content a:hover {
	color: var(--primary, #f65d4e);
}

@media (max-width: 767px) {
	.npd-legal-page #primary {
		padding: 32px 20px 56px;
	}

	.npd-legal-page .entry-header {
		margin-bottom: 32px;
	}

	.npd-legal-page .entry-content > * + h2 {
		margin-top: 36px;
	}
}
