@font-face {
	font-family: "Josefin Sans";
	src: url("../Fonts/JosefinSans-Variable.ttf") format("truetype");
	font-weight: 100 700;
	font-style: normal;
}

:root {
	--bg: #262E34;
	--card: #2f3a41;
	--text: #F8F5EC;
	--accent: #8ebfe0;
	--muted: #c8d7df;
	--panel-border: #323a40;
	--text-dark: #2f373d;
	--text-main: #f4efe5;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: "Josefin Sans", sans-serif;
	background: radial-gradient(circle at top right, #3c4a54 0%, var(--bg) 45%);
	color: var(--text);
	padding: 0;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

a:hover {
	opacity: 0.82;
	color: #ffffff;
}

.legal-shell {
	width: min(900px, 100%);
	margin: 56px auto 64px;
	background: transparent;
	/* border: 1px solid rgba(137, 188, 217, 0.3); */
	border-radius: 20px;
	padding: clamp(20px, 4vw, 40px);
	backdrop-filter: none;
}

h1 {
	margin: 0 0 60px 0;
	font-size: clamp(30px, 4vw, 42px);
	color: var(--accent);
}

p {
	margin: 0 0 14px 0;
	line-height: 1.45;
	color: var(--muted);
	font-size: 18px;
}

h2 {
	margin: 30px 0 10px;
	font-size: 24px;
	color: #89BCD9;
}

.back-link {
	display: inline-block;
	margin-top: 26px;
	color: var(--accent);
	text-decoration: none;
	border: 1px solid rgba(137, 188, 217, 0.55);
	border-radius: 999px;
	padding: 10px 16px;
}

.back-link:hover {
	background: rgba(137, 188, 217, 0.1);
}

.bottom-nav {
	min-height: 75px;
	background: var(--accent);
	color: var(--text-dark);
	display: grid;
	grid-template-columns: 138px 1fr 64px;
	align-items: center;
	padding: 0 70px 0 24px;
	position: sticky;
	top: 0;
	z-index: 100;
}

.nav-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
}

.nav-brand img {
	width: 50px;
}

.nav-brand span {
	font-size: 12px;
	line-height: 1.05;
}

.nav-brand-name {
	color: #ffffff;
}

.nav-brand-name:hover {
	color: #ffffff;
	opacity: 1;
	transform: none;
}

.nav-brand-role {
	color: var(--text-dark);
}

.nav-links {
	display: flex;
	justify-content: center;
	gap: 100px;
	font-family: "Josefin Sans", sans-serif;
	font-size: 26px;
	font-weight: 500;
}

.nav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	background: transparent;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 100%;
}

.nav-link.is-active {
	background-image: url("../imgs/Ellipse_24.svg");
	color: #ffffff;
	opacity: 1;
}

.nav-link.is-active:hover {
	color: #ffffff;
	opacity: 1;
}

.nav-links a:hover,
.nav-brand:hover,
.language-switch a:hover,
.footer-socials a:hover {
	transform: translateY(-2px);
}

.nav-links a:hover,
.language-switch a:hover {
	color: #ffffff;
}

.footer-socials a:hover {
	opacity: 0.9;
}

.language-switch {
	display: flex;
	justify-content: flex-end;
	gap: 7px;
	font-family: "Josefin Sans", sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 120%;
	letter-spacing: 0;
}

.language-switch a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	background: transparent;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 100%;
}

.language-switch .is-active {
	color: #ffffff;
	text-decoration: none;
	background-image: url("../imgs/Ellipse_24.svg");
}

.language-switch .is-active:hover {
	color: #ffffff;
	text-decoration: none;
	opacity: 1;
}

.footer-bar {
	border-bottom: 1px solid #323a40;
	background: #8ebfe0;
	color: #2f373d;
	min-height: 214px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 0 24px;
}

.footer-copy {
	font-family: "Josefin Sans", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 18px;
	color: #262E34;
	padding-left: 84px;
}

.footer-copy p {
	margin: 0;
	color: inherit;
	font-size: inherit;
	line-height: normal;
}

.footer-copy a {
	color: inherit;
	text-decoration: none;
	margin-left: 0;
	display: inline-block;
	margin-bottom: 18px;
	transition: color 0.25s ease, opacity 0.25s ease;
}

.footer-copy a:hover {
	color: #f4efe5;
	opacity: 1;
}

.footer-logo img {
	width: 52px;
	height: 38px;
}

.footer-logo {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	transform: translateY(-14px);
}

.footer-logo span {
	font-size: 12px;
	line-height: 1.05;
}

.footer-logo-name {
	color: #ffffff;
}

.footer-logo-role {
	color: #2f373d;
}

.footer-socials {
	display: flex;
	justify-content: flex-end;
	gap: 18px;
	padding-right: 84px;
}

.footer-socials a {
	position: relative;
	width: 30px;
	height: 30px;
	display: block;
	transition: transform 0.25s ease;
}

.footer-socials a:hover {
	transform: translateY(-2px);
}

.social-icon {
	position: absolute;
	inset: 0;
	width: 30px;
	height: 30px;
	transition: opacity 0.35s ease;
}

.social-icon-default {
	opacity: 1;
}

.social-icon-hover {
	opacity: 0;
}

.footer-socials a:hover .social-icon-default {
	opacity: 0;
}

.footer-socials a:hover .social-icon-hover {
	opacity: 1;
}

@media (max-width: 900px) {
	.bottom-nav {
		grid-template-columns: 1fr;
		gap: 16px;
		justify-items: center;
		padding: 18px 16px;
		position: static;
	}

	.nav-links {
		gap: 24px;
		flex-wrap: wrap;
		font-size: 20px;
	}

	.footer-bar {
		grid-template-columns: 1fr;
		gap: 18px;
		justify-items: center;
		padding: 28px 16px;
	}

	.footer-copy,
	.footer-socials {
		padding-left: 0;
		padding-right: 0;
	}

	.footer-copy {
		text-align: center;
	}

	.footer-logo {
		transform: none;
	}

	.footer-socials {
		justify-content: center;
	}
}

@media (max-width: 760px) {
	.legal-shell {
		margin: 32px auto 40px;
		padding: 24px 20px;
	}

	h1 {
		margin-bottom: 36px;
		font-size: 32px;
	}

	h2 {
		margin-top: 24px;
		font-size: 21px;
	}

	p {
		font-size: 16px;
		line-height: 1.55;
	}

	.bottom-nav {
		padding: 14px 18px;
	}

	.nav-links {
		gap: 12px 18px;
		font-size: 19px;
	}

	.nav-link {
		padding: 10px 14px;
	}

	.language-switch a {
		padding: 6px 10px;
	}

	.footer-bar {
		padding: 24px 18px;
		min-height: auto;
	}
}

@media (max-width: 560px) {
	body {
		background: var(--bg);
	}

	.legal-shell {
		margin: 24px auto 32px;
		padding: 20px 14px;
	}

	h1 {
		font-size: 28px;
		margin-bottom: 28px;
	}

	h2 {
		font-size: 18px;
	}

	p {
		font-size: 15px;
	}

	.bottom-nav {
		padding: 14px 14px;
	}

	.nav-links {
		gap: 10px 12px;
		font-size: 17px;
	}

	.footer-copy {
		font-size: 16px;
	}
}
