.cmath-site-footer {
	position: relative;
	overflow: hidden;
	background: var(--color-brand-teal-darker);
	color: var(--color-text-inverse);
	padding-block: var(--block-padding-m);
}

.cmath-site-footer__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--space-300);
}

/* Logo */
.cmath-site-footer__logo {
	flex: 0 0 auto;
	display: inline-flex;
	line-height: 0;
}

.cmath-site-footer__logo img {
	height: 77px;
	width: auto;
	display: block;
}

/* Colunas de links */
.cmath-site-footer__cols {
	flex: 1 1 320px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-200);
	max-width: var(--max-width-content);
}

.cmath-site-footer__col {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cmath-site-footer__col a,
.cmath-site-footer__contacts-title {
	display: inline-block;
	margin: 0;
	padding: var(--space-75);
	font-family: var(--font-family-paragraph);
	font-size: var(--font-body-size);
	line-height: 1.3;
	color: var(--color-text-inverse);
	text-decoration: none;
}

.cmath-site-footer__col a {
	transition: color 0.18s ease;
}

.cmath-site-footer__col a:hover,
.cmath-site-footer__col a:focus-visible {
	color: var(--color-text-alt);
}

/* Social links */
.cmath-site-footer__social {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: var(--space-75);
	list-style: none;
}

.cmath-site-footer__social a {
	display: inline-flex;
	/* Remove inherited __col link padding: in design the 12px belongs to the
	   group, not each icon (real 14px gap between icons). */
	padding: 0;
	color: var(--color-icon-inverse);
	transition: opacity 0.18s ease;
}

.cmath-site-footer__social a:hover,
.cmath-site-footer__social a:focus-visible {
	opacity: 0.75;
}

.cmath-site-footer__social svg {
	display: block;
	width: 24px;
	height: 24px;
}

/* Copyright */
.cmath-site-footer__copy {
	flex: 1 0 100%;
	margin: var(--space-200) 0 0;
	font-family: var(--font-family-paragraph);
	font-size: var(--font-body-size);
	line-height: 1.3;
	color: var(--color-text-inverse);
	text-align: center;
}

.cmath-site-footer__copy p {
	margin: 0;
}

.cmath-site-footer__copy p + p {
	margin-top: var(--space-50);
}

/* Decorative illustrations */
.cmath-site-footer__deco {
	position: absolute;
	z-index: 0;
	background-repeat: no-repeat;
	background-size: contain;
	pointer-events: none;
}

.cmath-site-footer__deco--left {
	width: 496px;
	height: 386px;
	left: -99px;
	bottom: -247px;
	background-image: url("../img/footer-elipses.png");
}

.cmath-site-footer__deco--right {
	width: 390px;
	height: 448px;
	right: -154px;
	bottom: -154px;
	background-image: url("../img/footer-cube.png");
}

/* Mobile */
@media (max-width: 768px) {
	.cmath-site-footer__inner {
		flex-direction: column;
		gap: var(--space-200);
	}

	.cmath-site-footer__logo img {
		height: 60px;
	}

	.cmath-site-footer__cols {
		justify-content: flex-start;
		gap: var(--space-100) var(--space-200);
		max-width: none;
		margin-top: var(--space-400);
	}

	.cmath-site-footer__col {
		flex: 1 1 40%;
	}

	.cmath-site-footer__contacts {
		flex: 1 1 100%;
	}

	.cmath-site-footer__copy {
		margin-top: 0;
		text-align: left;
	}

	.cmath-site-footer__deco--left {
		display: none;
	}

	.cmath-site-footer__deco--right {
		width: 220px;
		height: 252px;
		right: -64px;
		bottom: -64px;
	}
}
