/**
 * P-10 About · P-11 Privacy · P-12 Terms — the static content pages.
 *
 * Values from Privacy Policy.dc.html and About Us.dc.html. This file did not
 * exist, so `.ulm-content` and its children carried no rules at all: the pages
 * rendered as full-bleed unstyled prose with default browser margins.
 *
 * Two numbers do the work:
 *
 *   - the page inset, `clamp(20px, 12.5vw, 216px)` — noticeably wider than the
 *     storefront's, because a policy page is a column of prose, not a grid;
 *   - the measure, 860px — long enough not to feel cramped, short enough that
 *     the eye finds the start of the next line.
 *
 * The body rules target bare elements rather than classes. The content comes
 * from the block editor (FR-12.7), so the client can add a heading or a list
 * at any time and it has to look right without anyone touching CSS.
 */

.ulm-content {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	max-width: var(--ulm-page-max, 1728px);
	padding: 56px clamp(20px, 12.5vw, 216px) 72px;
	margin: 0 auto;
}

.ulm-content__header {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ulm-content .ulm-h2,
.ulm-content__header h1 {
	max-width: 20ch;
	margin: 0;
	font-size: clamp(30px, 3vw, 44px);
	font-weight: 600;
	line-height: 1.15;
	color: var(--ulm-deep);
	text-wrap: balance;
}

.ulm-content__meta {
	margin: 0;
	font-size: 14px;
	color: var(--ulm-ink-muted);
}

/* ---------------------------------------------------------------- body -- */

.ulm-content__body {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 860px;
	padding-top: 8px;
}

.ulm-content__body > * {
	margin: 0;
}

.ulm-content__body p {
	font-size: clamp(15px, 1.15vw, 18px);
	line-height: 1.8;
	color: var(--ulm-ink);
	text-wrap: pretty;
}

.ulm-content__body h2 {
	margin-top: 20px;
	font-size: clamp(22px, 2vw, 30px);
	font-weight: 600;
	line-height: 1.25;
	color: var(--ulm-deep);
}

.ulm-content__body h3 {
	margin-top: 12px;
	font-size: clamp(17px, 1.4vw, 21px);
	font-weight: 600;
	line-height: 1.35;
	color: var(--ulm-deep);
}

/*
 * A heading immediately after another heading has nothing to separate itself
 * from, and the extra margin reads as a gap the author did not intend.
 */
.ulm-content__body h2 + h3,
.ulm-content__body h2:first-child,
.ulm-content__body h3:first-child {
	margin-top: 0;
}

.ulm-content__body ul,
.ulm-content__body ol {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-left: 22px;
}

.ulm-content__body li {
	font-size: clamp(15px, 1.1vw, 17px);
	line-height: 1.75;
	color: var(--ulm-ink);
}

.ulm-content__body ul { list-style: disc; }
.ulm-content__body ol { list-style: decimal; }

.ulm-content__body a {
	color: var(--ulm-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ulm-content__body a:hover { color: var(--ulm-deep); }

.ulm-content__body strong { font-weight: 600; color: var(--ulm-deep); }

.ulm-content__body blockquote {
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--ulm-gold, #fedc97);
	color: var(--ulm-ink-muted);
}

/*
 * The source line under a quotation. Without this the browser default runs it
 * on from the last sentence in italics, so a scriptural reference reads as part
 * of the verse rather than as its citation.
 */
.ulm-content__body blockquote cite {
	display: block;
	margin-top: 8px;
	font-size: 13.5px;
	font-style: normal;
	color: var(--ulm-ink-faint);
}

.ulm-content__body img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.ulm-content__body hr {
	height: 1px;
	margin: 12px 0;
	background: var(--ulm-border, #edf0ee);
	border: 0;
}

.ulm-content__body table {
	width: 100%;
	font-size: 14.5px;
	border-collapse: collapse;
}

.ulm-content__body th,
.ulm-content__body td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid var(--ulm-border, #edf0ee);
}

.ulm-content__body th {
	font-weight: 600;
	color: var(--ulm-deep);
	background: var(--ulm-tint-mint, #f2faf7);
}

/* --------------------------------------------------------- responsive -- */

@media (max-width: 768px) {
	.ulm-content {
		gap: 18px;
		padding: 32px clamp(16px, 5vw, 24px) 48px;
	}

	.ulm-content__body { gap: 16px; }
}
