/* ==========================================================================
   Plain Page template (page-plain.php)
   Legal / policy pages — Privacy Policy, Cookie Policy, etc.
   Loaded only on pages using the "Plain Page" template, after style.css.
   Uses the theme's :root tokens (--navy, --yellow, --purple, --serif, --sans)
   and the shared .container for alignment with the nav and footer.
   ========================================================================== */

.plain-page {
	--pp-text: #1d1b33;
	--pp-muted: #55536b;
	--pp-rule: #e4e2ec;
}

/* --------------------------------------------------------------------------
   Title band — navy so the fixed/transparent navbar sits on dark like other pages
   -------------------------------------------------------------------------- */
.plain-page__hero {
	background: var(--navy);
	padding: clamp(7.5rem, 14vw, 10.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); /* top clears the fixed navbar */
}

.plain-page__title {
	max-width: 48rem;
	font-family: var(--serif);
	font-weight: 600;
	font-size: clamp(2rem, 4.5vw, 3.25rem);
	line-height: 1.15;
	color: #fff;
}

.plain-page__title::after {
	content: "";
	display: block;
	width: 4rem;
	height: 3px;
	margin-top: 1.25rem;
	background: var(--yellow);
}

/* --------------------------------------------------------------------------
   Body — light background for readability of long-form text
   -------------------------------------------------------------------------- */
.plain-page__body {
	background: #0c0a28;;
	padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem);
}

.plain-page__content {
	max-width: 48rem; /* comfortable reading line length for long legal copy */
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: #fff;
}

.plain-page__content > *:first-child { margin-top: 0; }
.plain-page__content > *:last-child  { margin-bottom: 0; }

/* style.css resets all margins/padding to 0 — restore spacing for prose */
.plain-page__content p,
.plain-page__content ul,
.plain-page__content ol,
.plain-page__content table,
.plain-page__content blockquote,
.plain-page__content figure {
	margin: 0 0 1.25em;
}

/* Headings */
.plain-page__content h2 {
	margin: 2.25em 0 0.6em;
	font-family: var(--serif);
	font-weight: 600;
	font-size: clamp(1.5rem, 2.5vw, 1.875rem);
	line-height: 1.25;
	color: #fff;
}

.plain-page__content h3 {
	margin: 1.75em 0 0.5em;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.35;
	color: var(--navy);
}

.plain-page__content h4 {
	margin: 1.5em 0 0.4em;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 1.0625rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--pp-muted);
}

/* Lists */
.plain-page__content ul,
.plain-page__content ol {
	padding-left: 1.5em;
}

.plain-page__content ul ul,
.plain-page__content ol ol,
.plain-page__content ul ol,
.plain-page__content ol ul {
	margin: 0.4em 0 0;
}

.plain-page__content li { margin-bottom: 0.4em; }
.plain-page__content li::marker { color: var(--yellow); }

/* Links */
.plain-page__content a {
	color: var(--yellow);
	text-decoration: underline;
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
	word-break: break-word; /* long URLs/emails won't overflow on mobile */
}

.plain-page__content a:hover { text-decoration-thickness: 2px; }

/* The theme's yellow focus ring is too faint on white — use purple here */
.plain-page__content a:focus-visible,
.plain-page__content button:focus-visible {
	outline: 3px solid var(--purple);
	outline-offset: 3px;
	border-radius: 2px;
}

.plain-page__content strong { font-weight: 600;  }

.plain-page__content hr {
	border: 0;
	border-top: 1px solid var(--pp-rule);
	margin: 2.5em 0;
}

.plain-page__content blockquote {
	padding: 0.25em 0 0.25em 1.25em;
	border-left: 3px solid var(--yellow);
	color: var(--pp-muted);
}

/* Tables (cookie lists, CookieYes audit table, etc.) — scroll sideways on small screens */
.plain-page__content table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.plain-page__content th,
.plain-page__content td {
	padding: 0.75em 1em;
	border: 1px solid var(--pp-rule);
	text-align: left;
	vertical-align: top;
}

.plain-page__content th {
	background: #f6f5f9;
	font-weight: 600;
	color: var(--navy);
}

/* "Cookie Settings" button — add class="cky-banner-element plain-page__button"
   to a button in the content and CookieYes will reopen the consent preferences. */
.plain-page__content .plain-page__button {
	display: inline-block;
	padding: 0.75em 1.5em;
	border: 0;
	border-radius: 999px;
	background: var(--navy);
	color: #fff;
	font-family: var(--sans);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.plain-page__content .plain-page__button:hover {
	background: var(--purple);
}

@media (prefers-reduced-motion: reduce) {
	.plain-page__content .plain-page__button { transition: none; }
}
