/* footer legal buttons */
.footer__legal {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid rgba(28, 43, 51, 0.1);
}

.footer__legal-btn {
	background: none;
	padding: 4px 2px;
	color: #1C2B33;
	font-size: 13px;
	font-weight: 500;
	line-height: 130%;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color .2s ease;
}

.footer__legal-btn:hover,
.footer__legal-btn:focus-visible {
	color: #0945BE;
}

/* footer modal */
.footer-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1000;
	align-items: center;
	justify-content: center;
	padding: 16px;
	overflow-y: auto;
}

.footer-modal.is-open {
	display: flex;
}

.footer-modal__overlay {
	position: fixed;
	inset: 0;
	background: rgba(28, 43, 51, 0.55);
	backdrop-filter: blur(4px);
}

.footer-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 480px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: #FFF;
	border-radius: 16px;
	padding: 44px 20px 24px;
	box-shadow: 0px 0px 24px 0px rgba(0, 0, 0, 0.25);
	animation: footerModalIn .25s ease;
}

@keyframes footerModalIn {
	from {
		opacity: 0;
		transform: translateY(12px) scale(.98);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.footer-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #F2F4F7;
	color: #1C2B33;
	font-size: 20px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease, color .2s ease;
}

.footer-modal__close:hover,
.footer-modal__close:focus-visible {
	background: #0945BE;
	color: #FFF;
}

.footer-modal__title {
	color: #0945BE;
	font-size: 22px;
	font-weight: 700;
	line-height: 120%;
	margin-bottom: 16px;
	padding-right: 24px;
}

.footer-modal__text {
	color: #1C2B33;
	font-size: 15px;
	font-weight: 400;
	line-height: 150%;
}

.footer-modal__text p+p {
	margin-top: 12px;
}

body.footer-modal-open {
	overflow: hidden;
}

@media (min-width: 576px) {
	.footer__legal {
		flex-direction: row;
		justify-content: center;
		gap: 24px;
	}

	.footer-modal__dialog {
		padding: 48px 32px 32px;
		border-radius: 20px;
	}

	.footer-modal__title {
		font-size: 26px;
	}

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

@media (min-width: 992px) {
	.footer__legal {
		justify-content: flex-end;
	}

	.footer-modal__dialog {
		max-width: 640px;
		padding: 56px 48px 40px;
	}

	.footer-modal__title {
		font-size: 30px;
	}
}
