/*
 * Simple page text (page-simple.php): Privacy Policy 83:1637, Terms 83:1794.
 * Loads only on the Simple page template (inc/setup.php). It builds on .pe-prose in
 * theme.css; posts and plain pages keep the .pe-prose look.
 *
 * Figma: the full 1270px column, 64px above the text and 88px below it (the last
 * clause's 24px + 64px). Lead intro paragraph, centred numbered h2s 56px apart
 * (32px after the intro), body 22.9 / 33.2, "•" bullets with no gap between items.
 */
.pe-simple-page {
	max-width: calc(var(--pe-container) + var(--pe-gutter) * 2);
	padding-block: clamp(2.5rem, 4.44vw, 4rem) clamp(3rem, 6.11vw, 5.5rem);
	font-size: var(--pe-text-body);
	line-height: 1.45;
}

.pe-simple-page p {
	margin: 0;
}

/* Two paragraphs in a row (Figma has none, but the editor allows it). */
.pe-simple-page :is(p, ul, ol) + p {
	margin-top: 1rem;
}

/* The first paragraph is the intro: Nunito 27.2 / 39.5, the page header intro size. */
.pe-simple-page > p:first-child {
	font-size: var(--pe-text-intro);
}

/* Clause headings ("1. Information we collect"): an h2 in the editor, drawn at the
   h3 size, Fredoka 34.5 / 39.7, centred. 56px above, 16px below. */
.pe-simple-page h2 {
	margin: clamp(2.5rem, 3.89vw, 3.5rem) 0 1rem;
	font-size: var(--pe-text-h3);
	line-height: 1.15;
	text-align: center;
}

.pe-simple-page > h2:first-child,
.pe-simple-page > p:first-child + h2 {
	margin-top: 2rem;
}

.pe-simple-page h3 {
	margin: 2rem 0 0.5rem;
	font-size: clamp(1.25rem, 1.8vw, 1.625rem);
}

/* Lists: Figma types "• " in front of each line, with no indent and no space between
   items. The bullet sits at the left edge like Figma; a wrapped line lines up with
   the text after the bullet (easier to read on a phone than wrapping under it). */
.pe-simple-page ul {
	--pe-bullet: 0.78em; /* the width of "• " (bullet + space) in Nunito Sans */
	margin: 0;
	padding: 0;
	list-style: none;
}

.pe-simple-page ul > li {
	padding-left: var(--pe-bullet);
	text-indent: calc(var(--pe-bullet) * -1);
}

.pe-simple-page ul > li::before {
	content: "•";
	display: inline-block;
	width: var(--pe-bullet);
	text-indent: 0;
}

.pe-simple-page ol {
	margin: 0;
	padding-left: 1.5em;
}

.pe-simple-page li + li {
	margin-top: 0;
}

.pe-simple-page > :last-child {
	margin-bottom: 0;
}

/*
 * The aqua title band at the top of a Simple page. Figma: Privacy 83:1633, Terms 83:1790.
 * 267px tall at 1440: 64px above and below, a centred 58px title, 32px gap, then the
 * intro line on the LEFT (Figma draws it left-aligned on all four pages).
 * The aqua background comes from .pe-bg-aqua (set in page-simple.php).
 */
.pe-page-header {
	padding-block: clamp(2.5rem, 4.44vw, 4rem);
}

/* The page's h1, but at the h2 size: Fredoka 58 / 66.7. */
.pe-page-header__title {
	margin: 0;
	font-size: var(--pe-text-h2);
	line-height: 1.15;
	text-align: center;
}

/* Nunito 27.2 / 39.5 at 1440 (the same size as the text band body). */
.pe-page-header__intro {
	margin: 2rem 0 0;
	font-size: var(--pe-text-intro);
	line-height: 1.45;
}

@media (max-width: 767px) {
	.pe-page-header__intro {
		margin-top: 1.25rem;
	}
}
