:root {
	--content: 1120px;
	--font-data: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--danger: #ff7b7b;
	--band-gap: clamp(56px, 8vw, 104px);
}

:root[data-theme="light"] {
	--danger: #c62828;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* The body grid sizes to its content; the gear backdrop is scoped to the first band */
body {
	height: auto;
}

.band-hero {
	position: relative;
}

.backdrop {
	position: absolute;
}

/* Header navigation */
.logo-link {
	display: block;
	flex-shrink: 0;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
	font-size: 0.9rem;
}

.site-nav a {
	padding-block: 10px;
	color: var(--muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.site-nav a:hover {
	color: var(--fg);
}

.site-nav a.site-nav-cta {
	padding: 10px 16px;
	border-radius: 10px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--fg);
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 0.875rem;
}

.site-nav a.site-nav-cta:hover {
	border-color: var(--accent);
}

/* Type */
h2,
h3,
h4 {
	font-family: var(--font-heading);
	font-weight: 600;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

h2 {
	margin: 0 0 20px;
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	line-height: 1.15;
	max-width: 24ch;
}

h3 {
	margin: 0 0 8px;
	font-size: 1.0625rem;
	line-height: 1.35;
}

h4 {
	margin: 0 0 8px;
	font-size: 1rem;
	line-height: 1.35;
}

.eyebrow {
	margin: 0 0 12px;
	color: var(--muted);
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.band-lede {
	margin: 0 0 16px;
	max-width: 66ch;
	color: var(--muted);
	font-size: 1.0625rem;
}

.band-note {
	margin: 24px 0 0;
	max-width: 66ch;
	color: var(--muted);
	font-size: 0.9375rem;
}

.band-subheading {
	margin-top: var(--band-gap);
}

/* Buttons */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 22px;
	border: 1px solid var(--line);
	border-radius: 10px;
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 0.9375rem;
	text-decoration: none;
	cursor: pointer;
	transition:
		border-color 0.2s ease,
		background-color 0.2s ease,
		transform 0.12s ease;
}

.button:active {
	transform: scale(0.97);
}

.button:disabled {
	opacity: 0.6;
	cursor: wait;
}

.button-primary {
	border-color: var(--blue);
	background: var(--blue);
	color: var(--white);
}

.button-primary:hover {
	border-color: var(--blue-soft);
	background: var(--blue-soft);
}

.button-secondary {
	background: var(--surface);
	color: var(--fg);
}

.button-secondary:hover {
	border-color: var(--accent);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

/* Hero */
.hero {
	max-width: var(--content);
	margin-inline: auto;
	padding-block: clamp(40px, 6vw, 80px) clamp(48px, 8vw, 96px);
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	align-items: center;
	gap: 48px;
}

.hero-plain {
	grid-template-columns: minmax(0, 1fr);
	min-height: 60vh;
}

.hero-copy {
	max-width: 620px;
}

.hero-artefact {
	max-width: 440px;
	justify-self: end;
	width: 100%;
}

/* The pre-arrival notification card, the record that travels ahead of the cargo */
.ticket {
	padding: 20px 22px 8px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: rgb(var(--bg-rgb) / 0.78);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	font-size: 0.875rem;
}

.ticket-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 14px;
}

.ticket-title {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.9375rem;
}

.ticket-badge {
	padding: 3px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ticket-group {
	padding: 12px 0;
	border-top: 1px dashed var(--line);
}

.ticket-group-label {
	margin: 0 0 8px;
	color: var(--muted);
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ticket-rows {
	margin: 0;
	display: grid;
	gap: 6px;
}

.ticket-row {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 12px;
}

.ticket-row dt {
	color: var(--muted);
}

.ticket-row dd {
	margin: 0;
	font-family: var(--font-data);
	font-size: 0.8125rem;
	overflow-wrap: anywhere;
}

.ticket-docs {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 6px;
}

.ticket-docs li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.ticket-doc-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	font-family: var(--font-data);
	font-size: 0.75rem;
	white-space: nowrap;
}

.ticket-doc-status::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--line);
}

.ticket-doc-status[data-status="shared"] {
	color: var(--accent);
}

.ticket-doc-status[data-status="shared"]::before {
	background: var(--accent);
}

.ticket-note {
	margin: 14px 4px 0;
	color: var(--muted);
	font-size: 0.8125rem;
}

/* Bands */
main {
	position: relative;
	z-index: 1;
}

.band {
	max-width: var(--content);
	margin-inline: auto;
	padding: var(--band-gap) var(--gutter);
}

.band + .band {
	border-top: 1px solid var(--line);
}

/* Two layers */
.layers {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.layer {
	padding: 24px 26px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--surface);
}

.layer p:last-child {
	margin: 0;
	color: var(--muted);
	font-size: 0.9375rem;
}

.layer-operator {
	border-color: var(--accent);
}

.layer-name {
	margin: 0 0 10px;
	font-size: 1.5rem;
}

.doors {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
}

.door {
	display: grid;
	gap: 8px;
	height: 100%;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	color: var(--fg);
	text-decoration: none;
	transition: border-color 0.2s ease;
}

.door:hover {
	border-top-color: var(--accent);
}

.door-title {
	font-family: var(--font-heading);
	font-weight: 600;
}

.door-body {
	color: var(--muted);
	font-size: 0.9375rem;
}

.door-link {
	color: var(--accent);
	font-size: 0.875rem;
}

.door-link::after {
	content: " \2192";
}

/* Proof figures */
.stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 40px 0 0;
}

.stats-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 28px;
}

.stat {
	padding-top: 16px;
	border-top: 2px solid var(--accent);
}

.stat-value {
	margin: 0 0 6px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1.625rem;
	line-height: 1.1;
}

.stat dd {
	margin: 0;
	color: var(--muted);
	font-size: 0.9375rem;
}

.stats-sources {
	margin: 16px 0 0;
	color: var(--muted);
	font-size: 0.75rem;
}

.stats-sources a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* How data moves in the UK, TWIN in the middle */
.hub {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.05fr) 56px minmax(0, 1fr);
	align-items: center;
	gap: 16px 8px;
	margin-top: 36px;
}

.hub-card {
	display: grid;
	gap: 8px;
	align-content: start;
	padding: 22px 24px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--surface);
}

.hub-card h3 {
	margin: 0;
}

.hub-card p {
	margin: 0;
	color: var(--muted);
	font-size: 0.9375rem;
}

.hub-card .hub-system {
	color: var(--fg);
	font-size: 0.875rem;
}

.hub-centre {
	border-color: var(--blue);
	background: var(--bg);
	box-shadow: 0 24px 60px rgba(1, 88, 252, 0.22);
}

.hub-centre .hub-system {
	color: var(--accent);
}

.hub-arrow {
	width: 56px;
	height: 24px;
	fill: none;
	stroke: var(--accent);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hub-receivers {
	display: grid;
	gap: 12px;
}

/* Reach in the UK */
.reach-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 40px;
	align-items: start;
	margin-top: 32px;
}

.reach-map {
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--surface);
}

.uk-map {
	display: block;
	width: 100%;
	height: auto;
	max-height: 640px;
	margin-inline: auto;
}

.map-land path {
	fill: color-mix(in srgb, var(--blue) 22%, var(--navy));
	stroke: var(--muted);
	stroke-width: 1.2;
	stroke-linejoin: round;
}

:root[data-theme="light"] .map-land path {
	fill: color-mix(in srgb, var(--blue) 8%, var(--white));
}

.map-land-context path {
	fill: color-mix(in srgb, var(--blue) 8%, var(--navy));
	stroke: var(--line);
	stroke-width: 1;
}

:root[data-theme="light"] .map-land-context path {
	fill: var(--white);
}

.map-tss {
	fill: none;
	stroke: var(--accent);
	stroke-width: 2.5;
	stroke-dasharray: 6 4;
	stroke-linecap: round;
}

.map-place circle {
	fill: var(--blue);
	stroke: var(--navy);
	stroke-width: 2;
}

.map-place[data-kind="pha"] circle {
	fill: var(--white);
	stroke: var(--blue);
	stroke-width: 2.5;
}

.map-place text {
	fill: var(--fg);
	font-family: var(--font-body);
	font-size: 11.5px;
	font-weight: 500;
	paint-order: stroke;
	stroke: var(--bg);
	stroke-width: 4;
	stroke-linejoin: round;
}

.legend {
	display: grid;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.legend li {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	gap: 4px 12px;
	align-items: start;
}

.legend-swatch {
	grid-row: span 2;
	width: 24px;
	height: 24px;
	fill: var(--blue);
	stroke: var(--navy);
	stroke-width: 2;
}

.legend-swatch[data-kind="pha"] {
	fill: var(--white);
	stroke: var(--blue);
	stroke-width: 2.5;
}

.legend-swatch[data-kind="tss"] {
	fill: none;
	stroke: var(--accent);
	stroke-width: 2.5;
	stroke-dasharray: 4 3;
	stroke-linecap: round;
}

.legend-title {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.9375rem;
}

.legend-body {
	color: var(--muted);
	font-size: 0.9375rem;
}

.reach-callout {
	margin: 28px 0 0;
	padding-top: 18px;
	border-top: 2px solid var(--accent);
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.3;
	max-width: 24ch;
}

.reach-callout-source {
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 0.75rem;
}

.reach-partners {
	margin: 32px 0 0;
	color: var(--muted);
	font-size: 0.9375rem;
}

.reach-partners-label {
	color: var(--fg);
	font-family: var(--font-heading);
	font-weight: 600;
}

/* Worked example */
.example-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 48px;
	margin-top: 32px;
	align-items: start;
}

.timeline {
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 2px solid var(--line);
}

.timeline-entry {
	position: relative;
	display: grid;
	gap: 4px;
	padding: 0 0 28px 28px;
}

.timeline-entry:last-child {
	padding-bottom: 0;
}

.timeline-entry::before {
	content: "";
	position: absolute;
	top: 6px;
	left: -7px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid var(--accent);
	background: var(--bg);
}

.timeline-when {
	color: var(--muted);
	font-family: var(--font-data);
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
}

.timeline-title {
	font-family: var(--font-heading);
	font-weight: 600;
}

.timeline-description {
	color: var(--muted);
	font-size: 0.9375rem;
}

.compare {
	display: grid;
	gap: 14px;
	position: sticky;
	top: 24px;
}

.compare-card {
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface);
}

.compare-card .eyebrow {
	margin-bottom: 8px;
}

.compare-after {
	border-color: var(--accent);
}

.compare-after .eyebrow {
	color: var(--accent);
}

.compare-value {
	margin: 0;
	font-family: var(--font-data);
	font-size: 0.875rem;
	line-height: 1.6;
}

.compare-note {
	margin: 4px 4px 0;
	color: var(--muted);
	font-size: 0.9375rem;
}

/* Ruled lists for parallel items */
.rules {
	display: grid;
	gap: 32px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

.rules-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rules-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rules li {
	display: grid;
	gap: 8px;
	align-content: start;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.rules h3,
.rules h4 {
	margin: 0;
}

.rules p {
	margin: 0;
	color: var(--muted);
	font-size: 0.9375rem;
}

/* Cards */
.cards {
	display: grid;
	gap: 20px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

.cards-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
	display: grid;
	gap: 8px;
	align-content: start;
	padding: 22px 24px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--surface);
}

.card h3,
.card h4,
.card .eyebrow {
	margin: 0;
}

.card p {
	margin: 0;
	color: var(--muted);
	font-size: 0.9375rem;
}

.implementations .chip-status {
	justify-self: start;
	margin-top: 8px;
}

/* Pilot partners */
.partners {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px 24px;
	margin: 28px 0 0;
}

.partner dt {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.9375rem;
}

.partner dd {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 0.875rem;
}

/* Chips */
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0;
	padding: 0;
	list-style: none;
}

.chips li,
.chip {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 0.8125rem;
}

.chip-status {
	color: var(--muted);
}

/* Register interest */
.register-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 48px;
	align-items: start;
}

.register-card {
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--surface);
}

.register-form {
	display: grid;
	gap: 16px;
}

.register-form-heading {
	margin: 0 0 4px;
	font-size: 1.25rem;
}

.field {
	display: grid;
	gap: 6px;
}

.field label {
	font-size: 0.875rem;
	font-weight: 500;
}

.field input,
.field select,
.field textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: rgb(var(--bg-rgb) / 0.6);
	color: var(--fg);
	font: inherit;
	font-size: 0.9375rem;
	transition: border-color 0.2s ease;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
	border-color: var(--accent);
}

.field select {
	appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-opacity='0.72' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 14px;
}

:root[data-theme="light"] .field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230d0c23' stroke-opacity='0.7' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
}

.field textarea {
	resize: vertical;
}

.field input:-webkit-autofill,
.field select:-webkit-autofill,
.field textarea:-webkit-autofill {
	box-shadow: 0 0 0 1000px rgb(var(--bg-rgb)) inset;
	-webkit-text-fill-color: var(--fg);
}

.field-trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-notice,
.form-note {
	margin: 0;
	color: var(--muted);
	font-size: 0.8125rem;
}

.form-error {
	margin: 0;
	color: var(--danger);
	font-size: 0.875rem;
}

.form-error[hidden],
.register-success[hidden],
.register-form[hidden] {
	display: none;
}

.register-success h3 {
	font-size: 1.25rem;
}

.register-success p {
	margin: 0;
	color: var(--muted);
}

/* Governments */
.tlip {
	margin-top: 40px;
	padding: 28px 30px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--surface);
}

.tlip p {
	max-width: 70ch;
	color: var(--muted);
	font-size: 0.9375rem;
}

.tlip-heading {
	font-size: 1.375rem;
}

.benefits {
	display: grid;
	gap: 20px;
	margin-top: 24px;
}

.levels {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin-top: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.levels li {
	display: grid;
	gap: 4px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	font-size: 0.9375rem;
}

.level-index {
	color: var(--muted);
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cta-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	margin-top: 40px;
	padding: 24px 28px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--surface);
}

.cta-strip h3 {
	margin: 0 0 4px;
}

.cta-strip p {
	margin: 0;
	color: var(--muted);
}

/* Investors */
.points {
	display: grid;
	gap: 14px;
	margin: 28px 0 0;
	padding: 0;
	max-width: 66ch;
	list-style: none;
}

.points li {
	position: relative;
	padding-left: 26px;
	color: var(--fg);
}

.points li::before {
	content: "";
	position: absolute;
	top: 0.75em;
	left: 0;
	width: 12px;
	height: 2px;
	background: var(--accent);
}

/* Contact */
.mail-link {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mail-link:hover {
	color: var(--fg);
}

.site-footer-line {
	flex-basis: 100%;
	order: 3;
}

/* Responsive */
@media (max-width: 1023px) {
	.partners,
	.levels,
	.stats-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 959px) {
	.hero,
	.register-grid,
	.example-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero-artefact {
		justify-self: start;
	}

	.compare {
		position: static;
	}

	.layers,
	.doors,
	.cards-3,
	.cards-2,
	.rules-3,
	.rules-2,
	.reach-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hub {
		grid-template-columns: minmax(0, 1fr);
		justify-items: stretch;
	}

	.hub-arrow {
		justify-self: center;
		transform: rotate(90deg);
	}

	.reach-map {
		padding: 12px;
	}

	.uk-map {
		max-height: none;
	}

	.site-nav a:not(.site-nav-cta) {
		display: none;
	}
}

@media (max-width: 759px) {
	.stats,
	.stats-4,
	.partners,
	.levels {
		grid-template-columns: minmax(0, 1fr);
	}

	.ticket-row {
		grid-template-columns: 84px minmax(0, 1fr);
	}

	.cta-strip .button {
		width: 100%;
	}
}

/* TWIN legal documents */
.hero-legal {
	grid-template-columns: minmax(0, 1fr);
	padding-block: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 48px);
}

.legal {
	padding-top: 0;
	max-width: calc(76ch + 2 * var(--gutter));
}

.legal h2 {
	margin: 48px 0 16px;
	font-size: clamp(1.375rem, 2.4vw, 1.75rem);
	max-width: none;
}

.legal h3 {
	margin: 28px 0 8px;
}

.legal p,
.legal li {
	color: var(--muted);
}

.legal ol,
.legal ul {
	padding-left: 1.5em;
}

.legal li + li {
	margin-top: 6px;
}

.legal strong {
	color: var(--fg);
	font-weight: 500;
}

.legal a {
	color: var(--accent);
}

.legal-address {
	margin-left: 1.5em;
	font-style: normal;
	color: var(--muted);
}

.legal-updated {
	margin-top: 48px;
	font-style: italic;
}

/* Clause numbering mirrors the source documents: every level hangs from the same left edge */
ol.legal-clauses {
	--legal-hang: 2rem;
	counter-reset: legal-section;
	list-style: none;
	padding-left: 0;
}

.legal-clauses ol {
	counter-reset: legal-clause;
	list-style: none;
	padding-left: 0;
}

.legal-clauses > li {
	counter-increment: legal-section;
}

.legal-clauses ol > li {
	counter-increment: legal-clause;
}

.legal-clauses h2,
.legal-clauses ol > li {
	position: relative;
	padding-left: var(--legal-hang);
}

.legal-clauses h2::before,
.legal-clauses ol > li::before {
	position: absolute;
	left: 0;
}

.legal-clauses h2::before {
	content: counter(legal-section) ".";
}

.legal-clauses ol > li::before {
	content: counter(legal-clause, lower-alpha) ".";
}

.legal-clauses ol ol {
	margin-top: 6px;
}

/* Inline enumerations such as "(i) … (ii) …" shown one per line, labels kept in the text */
ul.legal-inline-items {
	margin-top: 6px;
	padding-left: 1.5em;
	list-style: none;
}

.legal-inline-items li {
	padding-left: 2.25em;
	text-indent: -2.25em;
}

.legal-clauses ol ol > li::before {
	content: counter(legal-clause, lower-roman) ".";
	left: auto;
	right: calc(100% - var(--legal-hang) + 0.4em);
}

@media print {
	@page {
		margin: 18mm 16mm;
	}

	:root:has(.legal) {
		color-scheme: light;
		--bg: #ffffff;
		--bg-rgb: 255 255 255;
		--fg: #000000;
		--muted: #222222;
		--line: #cccccc;
		--accent: #000000;
		--gutter: 0;
	}

	body:has(.legal) {
		display: block;
		min-height: 0;
		font-size: 10.5pt;
		line-height: 1.45;
	}

	body:has(.legal) .backdrop,
	body:has(.legal) .site-nav,
	body:has(.legal) .theme-toggle,
	body:has(.legal) .cookie-settings,
	body:has(.legal) .cookie-toast,
	body:has(.legal) .logo-dark {
		display: none;
	}

	body:has(.legal) .logo-light {
		display: block;
		width: 110px;
		height: auto;
	}

	body:has(.legal) .site-header {
		padding-block: 0 12pt;
		border-bottom: 1px solid var(--line);
	}

	.hero-legal {
		min-height: 0;
		padding-block: 14pt 4pt;
	}

	.hero-legal h1 {
		margin: 0;
		font-size: 22pt;
	}

	.hero-legal .eyebrow {
		margin-bottom: 4pt;
		font-size: 8pt;
	}

	.legal {
		max-width: none;
		padding: 0;
	}

	.legal h2 {
		margin: 16pt 0 6pt;
		font-size: 13pt;
		break-after: avoid;
	}

	.legal h3 {
		margin: 10pt 0 4pt;
		font-size: 11pt;
		break-after: avoid;
	}

	.legal p,
	.legal li {
		margin-block: 0 6pt;
		orphans: 3;
		widows: 3;
	}

	.legal li + li {
		margin-top: 0;
	}

	.legal li,
	.legal-address {
		break-inside: avoid;
	}

	.legal a {
		text-decoration: none;
	}

	.legal-updated {
		margin-top: 18pt;
	}

	body:has(.legal) .site-footer {
		margin-top: 18pt;
		padding-block: 8pt 0;
		border-top: 1px solid var(--line);
		font-size: 8pt;
	}
}
