/* The legal pages' content, inside the live site's own shell. Styled to the Forum Brand & Editorial
   Design Guidelines v3.3 (Oct 2026): navy backbone, Nunito structure, Source Serif 4 for the editorial
   lead, the accessible colour pairs (p.13) and the digital type scale (p.15).

   Everything is under .fe-legal so the live header, menu and footer are untouched; properties are
   stated in full because the live stylesheets style bare h1/h2/p/ul/a globally. */

@font-face {
	font-family: 'Forum Nunito';
	src: url('brand-fonts/nunito-latin-300-normal.woff2') format('woff2');
	font-weight: 300;
	font-display: swap;
}
@font-face {
	font-family: 'Forum Nunito';
	src: url('brand-fonts/nunito-latin-400-normal.woff2') format('woff2');
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: 'Forum Nunito';
	src: url('brand-fonts/nunito-latin-400-italic.woff2') format('woff2');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: 'Forum Nunito';
	src: url('brand-fonts/nunito-latin-600-normal.woff2') format('woff2');
	font-weight: 600;
	font-display: swap;
}
@font-face {
	font-family: 'Forum Serif';
	src: url('brand-fonts/SourceSerif4-400-latin.woff2') format('woff2');
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: 'Forum Serif';
	src: url('brand-fonts/SourceSerif4-400i-latin.woff2') format('woff2');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

.fe-legal {
	/* Colour (p.12–13). Teal is the Forum Europe accent; #01795D is its text/fill pair (5.39:1). */
	--navy: #0f1c69;
	--ink: #343b4a;
	--meta: #596577;
	--keyline: #e3e6e8;
	--keyline-pale: #d5d9df;
	--surface: #f8f8fa;
	--teal: #0d9f7d;
	--teal-text: #01795d;
	--orange: #ff5212;
	--sans: 'Forum Nunito', 'nunitoregular', Arial, sans-serif;
	--serif: 'Forum Serif', Georgia, serif;

	background: #fff;
	color: var(--ink);
	font-family: var(--sans);
	font-weight: 400;
	font-size: 18px;
	line-height: 1.6;
	text-align: left;
}

.fe-legal *,
.fe-legal *::before,
.fe-legal *::after {
	box-sizing: border-box;
}

.fe-legal p,
.fe-legal ul,
.fe-legal ol,
.fe-legal li,
.fe-legal h1,
.fe-legal h2,
.fe-legal h3 {
	letter-spacing: normal;
	text-transform: none;
}

.fe-legal .legal-wrap {
	max-width: 1320px;
	margin: 0 auto;
	padding-left: 48px;
	padding-right: 48px;
}

.fe-legal .legal-draft {
	margin: 0;
	padding: 10px 24px;
	background: var(--surface);
	border-bottom: 1px solid var(--keyline);
	color: var(--ink);
	font-family: var(--sans);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}

/* Chapter opener (p.26): display title, one rule. */
.fe-legal .legal-head {
	margin: 0 0 48px;
}

.fe-legal .legal-title {
	margin: 0;
	padding: 0;
	font-family: var(--sans);
	font-weight: 300;
	font-size: clamp(40px, 5vw, 64px);
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--navy);
}

/* Joint-brand rule (p.12): 96 × 2px, split teal / orange-red, as the site carries both brands. */
.fe-legal .legal-rule {
	display: block;
	width: 96px;
	height: 2px;
	margin: 24px 0 18px;
	background: linear-gradient(90deg, var(--teal) 0 50%, var(--orange) 50% 100%);
}

.fe-legal .legal-meta {
	margin: 0;
	font-family: var(--sans);
	font-size: 14px;
	line-height: 1.5;
	color: var(--meta);
}

/* Three columns: the policy list, the text (a 65ch measure), On this page. */
.fe-legal .legal-cols {
	display: flex;
	flex-wrap: wrap;
	gap: 72px;
	align-items: flex-start;
	padding-top: 72px;
	padding-bottom: 96px;
}

.fe-legal .legal-side {
	flex: 0 1 230px;
	min-width: 210px;
	padding-top: 6px;
}

.fe-legal .legal-body {
	flex: 999 1 560px;
	min-width: 0;
}

/* The title runs the width of the column; the text keeps a reading measure (about 65ch, v3.3 p.17). */
.fe-legal .legal-body > :not(.legal-head) {
	max-width: 68ch;
}

.fe-legal .legal-toc {
	flex: 0 1 220px;
	min-width: 190px;
	position: sticky;
	top: 124px;
	padding-top: 6px;
}

.fe-legal .legal-side-head {
	margin: 0 0 12px;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--meta);
}

.fe-legal .legal-side ul,
.fe-legal .legal-toc ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 1px solid var(--keyline);
}

.fe-legal .legal-side li,
.fe-legal .legal-toc li {
	margin: 0;
	padding: 0;
	background: none;
}

.fe-legal .legal-side li::before,
.fe-legal .legal-toc li::before {
	content: none;
}

.fe-legal .legal-side a,
.fe-legal .legal-toc a {
	display: block;
	margin-left: -1px;
	padding: 8px 0 8px 16px;
	border-left: 2px solid transparent;
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.4;
	color: var(--ink);
	text-decoration: none;
}

.fe-legal .legal-side a:hover,
.fe-legal .legal-toc a:hover {
	color: var(--navy);
	border-left-color: var(--keyline-pale);
}

/* Visible current state (p.29): navy, SemiBold, the Forum Europe accent as the marker. */
.fe-legal .legal-side a[aria-current='page'] {
	border-left-color: var(--teal);
	color: var(--navy);
	font-weight: 600;
}

.fe-legal .legal-toc a {
	font-size: 14px;
	color: var(--meta);
}

/* The live #main is overflow:hidden, which stops On this page sticking. clip still trims overflow
   but is not a scroll container, so sticky works. Only these pages load this file. */
#main.f-ms {
	overflow: clip;
}

/* The policy text: all Nunito, body 18px / 1.6 (p.15). */
.fe-legal .legal-prose > :first-child {
	margin-top: 0;
}

.fe-legal .legal-prose p {
	margin: 0 0 18px;
	padding: 0;
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.6;
	color: var(--ink);
}


.fe-legal .legal-prose h2,
.fe-legal .legal-prose h3,
.fe-legal .legal-prose h4 {
	padding: 0;
	font-family: var(--sans);
	color: var(--navy);
}

/* Headings, one scale on every page (v3.3 p.15): section = card heading, Light; sub-levels SemiBold. */
.fe-legal .legal-prose h2 {
	margin: 64px 0 18px;
	font-weight: 300;
	font-size: 32px;
	line-height: 1.2;
	letter-spacing: -0.01em;
	scroll-margin-top: 115px;
}

.fe-legal .legal-prose > h2:first-child {
	margin-top: 0;
}

.fe-legal .legal-prose h3 {
	margin: 40px 0 12px;
	font-weight: 600;
	font-size: 21px;
	line-height: 1.3;
}

.fe-legal .legal-prose h4 {
	margin: 28px 0 8px;
	font-weight: 600;
	font-size: 18px;
	line-height: 1.4;
	color: var(--ink);
}

.fe-legal .legal-prose h2 + h3,
.fe-legal .legal-prose h3 + h4 {
	margin-top: 0;
}

.fe-legal .legal-prose ul,
.fe-legal .legal-prose ol {
	margin: 0 0 18px;
	padding: 0 0 0 22px;
}

.fe-legal .legal-prose ul {
	list-style: disc outside;
}

.fe-legal .legal-prose ol {
	list-style: decimal outside;
}

.fe-legal .legal-prose li {
	display: list-item;
	margin: 0 0 8px;
	padding: 0;
	background: none;
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.6;
	color: var(--ink);
}

.fe-legal .legal-prose li::marker {
	color: var(--meta);
}

.fe-legal .legal-prose li::before {
	content: none;
}

.fe-legal .legal-prose li p {
	margin-bottom: 8px;
}

/* In-text links are underlined (p.29). */
.fe-legal .legal-prose a {
	color: var(--navy);
	text-decoration: underline;
	text-decoration-color: var(--teal);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.fe-legal .legal-prose a:hover {
	text-decoration-thickness: 2px;
}

.fe-legal .legal-prose strong {
	font-weight: 600;
	color: var(--navy);
}

.fe-legal .legal-prose em {
	font-style: italic;
}

/* Callout (p.26): pale surface, accent rule on the left. */
.fe-legal .legal-prose blockquote {
	margin: 0 0 24px;
	padding: 18px 22px;
	border: 0;
	border-left: 3px solid var(--teal);
	background: var(--surface);
}

.fe-legal .legal-prose blockquote p {
	font-size: 16px;
}

.fe-legal .legal-prose blockquote p:last-child {
	margin-bottom: 0;
}

/* Tables (p.27): pale header, keylines, left-aligned text, no fills on rows. */
.fe-legal .legal-table {
	margin: 0 0 24px;
	overflow-x: auto;
}

.fe-legal .legal-prose table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.5;
}

.fe-legal .legal-prose th,
.fe-legal .legal-prose td {
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid var(--keyline);
	text-align: left;
	vertical-align: top;
	color: var(--ink);
}

.fe-legal .legal-prose th {
	font-weight: 600;
	font-size: 14px;
	color: var(--navy);
	background: var(--surface);
	border-bottom-color: var(--keyline-pale);
}

.fe-legal .legal-prose code {
	font-family: ui-monospace, Menlo, monospace;
	font-size: 0.88em;
}

/* GOV.UK-style guide (split policies): contents, the part's title, previous and next. */
.fe-legal .legal-parts {
	margin: 0 0 48px;
	padding: 20px 24px;
	background: var(--surface);
}

.fe-legal .legal-parts ol {
	margin: 0;
	padding: 0 0 0 22px;
	list-style: decimal outside;
}

.fe-legal .legal-parts li {
	display: list-item;
	margin: 0 0 6px;
	padding: 0;
	background: none;
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
	color: var(--ink);
}

.fe-legal .legal-parts li::marker {
	color: var(--meta);
}

.fe-legal .legal-parts li::before {
	content: none;
}

.fe-legal .legal-parts a {
	color: var(--navy);
	text-decoration: underline;
	text-decoration-color: var(--teal);
	text-underline-offset: 3px;
}

.fe-legal .legal-parts [aria-current] {
	font-weight: 600;
	color: var(--navy);
}

.fe-legal .legal-part-title {
	margin: 0 0 24px;
	padding: 0;
	font-family: var(--sans);
	font-weight: 300;
	font-size: 40px;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--navy);
}

.fe-legal .legal-pager {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px solid var(--keyline);
}

.fe-legal .legal-pager a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 8px 0;
	text-decoration: none;
}

.fe-legal .legal-pager-next {
	grid-column: 2;
	text-align: right;
}

.fe-legal .legal-pager-dir {
	font-family: var(--sans);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--meta);
}

.fe-legal .legal-pager-prev .legal-pager-dir::before {
	content: '\2190\00a0';
}

.fe-legal .legal-pager-next .legal-pager-dir::after {
	content: '\00a0\2192';
}

.fe-legal .legal-pager-title {
	font-family: var(--sans);
	font-weight: 300;
	font-size: 22px;
	line-height: 1.3;
	color: var(--navy);
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 5px;
}

.fe-legal .legal-pager a:hover .legal-pager-title {
	text-decoration-color: var(--teal);
}

.fe-legal .legal-onepage,
.fe-legal .legal-back {
	margin: 16px 0 0;
	font-family: var(--sans);
	font-size: 16px;
}

.fe-legal .legal-back {
	margin: 0 0 36px;
}

.fe-legal .legal-onepage a,
.fe-legal .legal-back a {
	color: var(--navy);
	text-decoration: underline;
	text-decoration-color: var(--teal);
	text-underline-offset: 3px;
}

/* Questions? A callout with one primary action (p.29: Europe text/fill pair, white text 5.39:1). */
.fe-legal .legal-ask {
	margin-top: 56px;
	padding: 24px 28px;
	border-left: 3px solid var(--teal);
	background: var(--surface);
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	align-items: center;
	justify-content: space-between;
}

.fe-legal .legal-ask p {
	margin: 0;
}

.fe-legal .legal-ask-head {
	margin-bottom: 4px;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 21px;
	line-height: 1.3;
	color: var(--navy);
}

.fe-legal .legal-ask-sub {
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
	color: var(--ink);
}

.fe-legal .legal-ask-sub a {
	color: var(--navy);
	text-decoration: underline;
	text-decoration-color: var(--teal);
	text-underline-offset: 3px;
}

.fe-legal .legal-ask-btn {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 22px;
	background: var(--teal-text);
	color: #fff;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
}

.fe-legal .legal-ask-btn:hover {
	background: var(--navy);
	color: #fff;
}

.fe-legal a:focus-visible {
	outline: 2px solid var(--navy);
	outline-offset: 3px;
}

/* Hub: an editorial list with keylines (p.17: "an editorial list as the content needs"). */
.fe-legal .hub-intro {
	margin: 0;
	max-width: 40ch;
	font-family: var(--serif);
	font-size: 22px;
	line-height: 1.5;
	color: var(--ink);
}

.fe-legal .hub-body {
	padding-top: 72px;
	padding-bottom: 96px;
}

.fe-legal .hub-body > * {
	max-width: 880px;
}

.fe-legal .hub-group {
	margin: 0 0 12px;
	padding: 0;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--meta);
}

.fe-legal .hub-list {
	list-style: none;
	margin: 0 0 56px;
	padding: 0;
	border-top: 1px solid var(--keyline);
}

.fe-legal .hub-list li {
	margin: 0;
	padding: 0;
	background: none;
	border-bottom: 1px solid var(--keyline);
}

.fe-legal .hub-list li::before {
	content: none;
}

.fe-legal .hub-row {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 22px 4px;
	color: var(--ink);
	text-decoration: none;
}

.fe-legal .hub-row-title {
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: 6px;
}

.fe-legal .hub-row:hover .hub-row-title {
	text-decoration-color: var(--teal);
}

.fe-legal .hub-row:hover .hub-chev {
	color: var(--teal-text);
	transform: translateX(3px);
}

.fe-legal .hub-row-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fe-legal .hub-row-title {
	font-family: var(--sans);
	font-weight: 300;
	font-size: 32px;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--navy);
}

.fe-legal .hub-row-sum {
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
	color: var(--meta);
}

.fe-legal .hub-chev {
	flex-shrink: 0;
	color: var(--meta);
}

/* Motion (v3.3 p.31): short, purposeful transitions on controls; none with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}

	.fe-legal a,
	.fe-legal .hub-row-title {
		transition:
			color 200ms ease,
			background-color 200ms ease,
			border-color 200ms ease,
			text-decoration-color 200ms ease;
	}

	.fe-legal .hub-chev {
		transition:
			transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
			color 200ms ease;
	}
}

@media (max-width: 1180px) {
	.fe-legal .legal-toc {
		display: none;
	}
}

@media (max-width: 860px) {
	.fe-legal .legal-wrap {
		padding-left: 20px;
		padding-right: 20px;
	}

	.fe-legal .legal-cols,
	.fe-legal .hub-body {
		padding-top: 48px;
		padding-bottom: 72px;
		gap: 40px;
	}

	.fe-legal .legal-side {
		flex-basis: 100%;
		order: 2;
	}

	.fe-legal .legal-body {
		order: 1;
	}

	.fe-legal .legal-prose p,
	.fe-legal .legal-prose li {
		font-size: 17px;
	}


	.fe-legal .hub-intro {
		font-size: 19px;
	}

	.fe-legal .hub-row-title,
	.fe-legal .legal-prose h2 {
		font-size: 26px;
	}

	.fe-legal .legal-part-title {
		font-size: 30px;
	}

	.fe-legal .legal-pager {
		grid-template-columns: minmax(0, 1fr);
	}

	.fe-legal .legal-pager-next {
		grid-column: 1;
		text-align: left;
	}
}
