/**
 * Amazing Relay footer.
 */

body .footer {
	color: #fff;
	background: #06191f;
}

body .footer__container {
	width: min(100% - 80px, 1300px);
	max-width: none;
	margin: 0 auto;
	padding: 0;
}

body .footer__main {
	display: grid;
	grid-template-columns: 170px minmax(420px, 1fr) auto;
	padding: 32px 0 24px;
	align-items: start;
	gap: 40px;
}

body .footer__logo {
	display: inline-flex;
	width: 150px;
	min-height: 44px;
	align-items: center;
}

body .footer__logo img {
	display: block;
	width: 150px;
	height: auto;
}

body .footer__menu {
	padding: 0;
}

body .footer__menu-list {
	display: flex;
	margin: 0;
	padding: 0;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 8px 32px;
	list-style: none;
}

body .footer__menu-item {
	margin: 0;
	padding: 0;
}

body .footer__menu-link,
body .footer__email-link,
body .footer__legal-link {
	color: #c8d3d6;
	font-family: ProximaNova, sans-serif;
	font-size: 15px;
	line-height: 1.4;
	text-decoration: none;
	transition: color 180ms ease;
}

body .footer__menu-link:hover,
body .footer__email-link:hover,
body .footer__legal-link:hover {
	color: #ee7937;
}

body .footer__contact {
	display: grid;
	grid-template-columns: auto auto;
	grid-template-rows: auto auto;
	min-width: 250px;
	align-items: center;
	justify-content: start;
	column-gap: 16px;
}

body .footer__contact-label {
	grid-column: 1 / -1;
	margin-bottom: 4px;
	color: #8fa5aa;
	font-family: OpenSans, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
}

body .footer__email-link {
	color: #fff;
	font-size: 16px;
}

body .footer__socials {
	display: flex;
	grid-column: 2;
	grid-row: 2;
	margin-top: 0;
	gap: 10px;
}

body .footer__socials .socials__item {
	display: inline-flex;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	background: #0d272e;
	transition: border-color 180ms ease, background-color 180ms ease;
}

body .footer__socials .socials__item:hover {
	border-color: rgba(238, 121, 55, 0.55);
	background: #12323a;
}

body .footer__socials svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: #fff;
}

body .footer__legal {
	display: flex;
	min-height: 56px;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body .footer__copyright {
	margin: 0;
	color: #8fa5aa;
	font-family: ProximaNova, sans-serif;
	font-size: 14px;
	line-height: 1.4;
}

body .footer__legal-links {
	display: flex;
	align-items: center;
	gap: 24px;
}

body button.footer__legal-link {
	min-height: 44px;
	border: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
}

body :is(.footer__menu-link, .footer__email-link, .footer__legal-link, .footer__logo, .footer__socials .socials__item):focus-visible {
	border-radius: 5px;
	outline: 3px solid #ffb087;
	outline-offset: 3px;
}

@media (max-width: 63.999em) {
	body .footer__main {
		grid-template-columns: 1fr auto;
		gap: 24px 40px;
	}

	body .footer__menu {
		grid-column: 1 / -1;
		grid-row: 2;
	}
}

@media (max-width: 47.999em) {
	body .footer__container {
		width: min(100% - 44px, 620px);
	}

	body .footer__main {
		grid-template-columns: 1fr;
		padding: 28px 0 20px;
		gap: 18px;
	}

	body .footer__menu {
		grid-column: auto;
		grid-row: auto;
	}

	body .footer__menu-list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 4px 24px;
	}

	body .footer__contact {
		display: flex;
		min-width: 0;
		align-items: flex-start;
		flex-direction: column;
	}

	body .footer__socials {
		margin-top: 8px;
	}

	body .footer__legal {
		padding: 10px 0 14px;
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	body .footer__legal-links {
		flex-wrap: wrap;
		gap: 4px 24px;
	}
}

@media (max-width: 24em) {
	body .footer__email-link {
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body :is(.footer__menu-link, .footer__email-link, .footer__legal-link, .footer__socials .socials__item) {
		transition: none;
	}
}
