@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;600&display=swap");

:root {
	font-family: "Rubik", Arial, Helvetica, sans-serif;
	color: #1e1e1e;
	background: #f6f7fb;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-width: 320px;
	min-height: 100vh;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

a {
	color: #1e1e1e;
}

a:hover,
a:focus-visible {
	color: #555555;
}

.legal-header {
	position: relative;
	z-index: 20;
	height: 76px;
	background: #1e1e1e;
	color: #ffffff;
}

.legal-header-inner {
	display: grid;
	grid-template-columns: 92px 1fr;
	align-items: center;
	width: min(100% - 64px, 1360px);
	height: 100%;
	margin: 0 auto;
}

.legal-brand {
	display: grid;
	place-items: center;
	width: 92px;
	height: 100%;
	color: #ffffff;
	text-decoration: none;
}

.legal-brand img {
	display: block;
	width: 52px;
	height: 52px;
	object-fit: contain;
}

.legal-nav {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: clamp(56px, 8vw, 132px);
	height: 100%;
	padding-right: 92px;
}

.legal-nav a {
	display: flex;
	align-items: center;
	color: #ffffff;
	font-size: 17px;
	font-weight: 400;
	text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a:focus-visible,
.legal-nav a[aria-current="page"] {
	color: #b8b8bb;
}

.legal-menu-button {
	display: none;
}

.contact-page {
	color: #1e1e1e;
}

.contact-heading {
	margin: 0;
}

.contact-heading h1 {
	margin: 0;
}

.contact-page .legal-summary {
	margin: 28px 0 34px;
}

.contact-form {
	position: relative;
	width: 100%;
	margin: 0;
	padding: clamp(22px, 4vw, 36px);
	border: 1px solid #e3e5eb;
	border-radius: 14px;
	background: #f9fafc;
	color: #1e1e1e;
}

.contact-field + .contact-field {
	margin-top: 20px;
}

.contact-label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.contact-field label {
	display: block;
	font-size: 16px;
	font-weight: 600;
}

.contact-required {
	color: #b3261e;
}

.contact-field-hint {
	display: none;
	padding: 3px 9px;
	border: 1px solid #f1cccc;
	border-radius: 6px;
	background: #fff2f2;
	color: #9c2721;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
}

.contact-field-hint-visible {
	display: inline-block;
}

.contact-field input,
.contact-field textarea {
	display: block;
	width: 100%;
	border: 1px solid #d9dce4;
	border-radius: 10px;
	outline: none;
	background: #ffffff;
	color: #1e1e1e;
	font: inherit;
	font-size: 16px;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.contact-field input {
	height: 52px;
	padding: 0 16px;
}

.contact-field textarea {
	min-height: 180px;
	padding: 14px 16px;
	resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
	border-color: #637fc8;
	box-shadow: 0 0 0 3px rgb(99 127 200 / 16%);
}

.contact-field input[aria-invalid="true"],
.contact-field textarea[aria-invalid="true"] {
	border-color: #c94a43;
}

.contact-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 156px;
	height: 48px;
	margin: 28px 0 0;
	padding: 0 26px;
	border: 0;
	border-radius: 10px;
	background: #1e1e1e;
	color: #ffffff;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 150ms ease, transform 150ms ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
	background: #3b3b3f;
	transform: translateY(-1px);
}

.contact-submit:disabled {
	opacity: 0.65;
	cursor: wait;
	transform: none;
}

.contact-status {
	min-height: 24px;
	margin: 14px 0 0;
	color: #38589f;
	font-size: 15px;
}

.contact-status-error {
	color: #b3261e;
}

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

.contact-email-fallback {
	margin-top: 24px;
}

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

.legal-page {
	width: min(100% - 48px, 960px);
	margin: 40px auto 64px;
	padding: clamp(28px, 5vw, 56px);
	border: 1px solid #e3e5eb;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 16px 40px rgb(24 32 56 / 0.06);
}

.legal-page h1,
.legal-page h2,
.legal-page h3 {
	color: #1e1e1e;
	font-weight: 600;
	line-height: 1.25;
}

.legal-page h1 {
	margin: 0;
	font-size: clamp(34px, 6vw, 52px);
	letter-spacing: -0.04em;
}

.legal-page h2 {
	margin: 2.2em 0 0.65em;
	font-size: 24px;
}

.legal-page h3 {
	margin: 1.5em 0 0.5em;
	font-size: 18px;
}

.legal-page p,
.legal-page li {
	font-size: 16px;
}

.legal-page ul {
	padding-left: 24px;
}

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

.legal-meta {
	margin: 10px 0 32px;
	color: #1e1e1e;
}

.legal-summary {
	padding: 18px 20px;
	border-left: 4px solid #637fc8;
	border-radius: 0 10px 10px 0;
	background: #f2f5ff;
}

.contact-card {
	margin-top: 18px;
	padding: 20px;
	border-radius: 12px;
	background: #f6f7fb;
}

.contact-card p {
	margin: 0;
}

.legal-footer {
	padding: 28px 24px;
	background: #1e1e1e;
	color: #9b9ba1;
	text-align: center;
}

@media (max-width: 767px) {
	.legal-header {
		height: 64px;
	}

	.legal-header-inner {
		display: flex;
		justify-content: space-between;
		width: 100%;
		margin: 0;
	}

	.legal-brand {
		width: 82px;
	}

	.legal-brand img {
		width: 46px;
		height: 46px;
	}

	.legal-nav {
		position: absolute;
		top: 64px;
		left: 0;
		display: none;
		align-items: stretch;
		justify-content: stretch;
		gap: 0;
		width: 100%;
		height: auto;
		padding: 8px 20px 18px;
		background: #1e1e1e;
	}

	.legal-nav-open {
		display: grid;
	}

	.legal-nav a {
		min-height: 48px;
		border-bottom: 1px solid #2b2b2b;
	}

	.legal-menu-button {
		display: grid;
		gap: 5px;
		width: 64px;
		height: 64px;
		padding: 20px 17px;
		border: 0;
		background: #161616;
		cursor: pointer;
	}

	.legal-menu-button > span:not(.legal-sr-only) {
		display: block;
		width: 30px;
		height: 2px;
		background: #ffffff;
	}

	.legal-page {
		width: min(100% - 24px, 960px);
		margin: 20px auto 40px;
		border-radius: 14px;
	}

	.contact-form {
		padding: 22px 18px;
		border-radius: 12px;
	}

	.contact-submit {
		width: 100%;
	}
}

@media print {
	:root {
		background: #ffffff;
	}

	.legal-header,
	.legal-footer {
		display: none;
	}

	.legal-page {
		width: 100%;
		margin: 0;
		padding: 0;
		border: 0;
		box-shadow: none;
	}
}
