/* ==========================================================================
   Footer — link columns, newsletter, legal bar
   ========================================================================== */

.oi-footer {
	position: relative;
	padding-block: clamp(48px, 6vw, 80px) 32px;
	background: #08080b;
	border-top: 1px solid var(--oi-border);
}

.oi-footer__main {
	display: grid;
	gap: var(--oi-space-7) var(--oi-space-5);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
	.oi-footer__main {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 2.6fr);
		gap: var(--oi-space-6) var(--oi-space-7);
	}
}

.oi-footer__brand {
	display: flex;
	flex-direction: column;
	gap: var(--oi-space-4);
	max-width: 380px;
}

.oi-logo--footer {
	font-size: 1.125rem;
}

.oi-footer__about {
	font-size: var(--oi-fs-sm);
	line-height: 1.7;
	color: var(--oi-text-secondary);
	max-width: 34ch;
}

.oi-footer__socials {
	display: flex;
	flex-wrap: wrap;
	gap: var(--oi-space-2);
}

.oi-footer__socials li {
	display: flex;
}

.oi-footer__cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--oi-space-6) var(--oi-space-4);
}

@media (min-width: 640px) {
	.oi-footer__cols {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.oi-footer__col {
	display: flex;
	flex-direction: column;
	gap: var(--oi-space-3);
	min-width: 0;
}

.oi-footer__title {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--oi-text-muted);
}

.oi-footer__links {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.oi-footer__links a {
	font-size: var(--oi-fs-sm);
	color: var(--oi-text-secondary);
	width: fit-content;
}

.oi-footer__links a:hover {
	color: var(--oi-text-primary);
}

/* --- Newsletter ---------------------------------------------------------- */

.oi-footer__newsletter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--oi-space-4) var(--oi-space-6);
	margin-top: clamp(40px, 6vw, 64px);
	padding: clamp(20px, 3vw, 28px);
	border: 1px solid var(--oi-border);
	border-radius: var(--oi-radius-lg);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

.oi-newsletter__copy {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: 46ch;
}

.oi-newsletter__title {
	font-size: var(--oi-fs-h4);
	font-weight: 700;
}

.oi-newsletter__text {
	font-size: var(--oi-fs-sm);
	color: var(--oi-text-secondary);
}

.oi-newsletter {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: var(--oi-space-2);
	min-width: min(100%, 360px);
	flex: 1 1 320px;
	max-width: 460px;
}

.oi-newsletter__input {
	flex: 1 1 180px;
	min-width: 0;
	background: rgba(0, 0, 0, 0.35);
}

.oi-newsletter__btn {
	flex: none;
}

.oi-newsletter__msg {
	flex-basis: 100%;
	font-size: var(--oi-fs-xs);
	color: var(--oi-success);
	min-height: 1.2em;
}

.oi-newsletter__msg.is-error {
	color: var(--oi-danger);
}

/* --- Bottom bar ---------------------------------------------------------- */

.oi-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--oi-space-3);
	margin-top: var(--oi-space-7);
	padding-top: var(--oi-space-5);
	border-top: 1px solid var(--oi-border);
}

.oi-footer__copyright {
	font-size: var(--oi-fs-xs);
	color: var(--oi-text-muted);
}

.oi-footer__legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--oi-space-4);
}

.oi-footer__legal-links a {
	font-size: var(--oi-fs-xs);
	color: var(--oi-text-muted);
}

.oi-footer__legal-links a:hover {
	color: var(--oi-text-primary);
}

.oi-footer__disclaimer {
	margin-top: var(--oi-space-4);
	font-size: 0.75rem;
	line-height: 1.6;
	color: var(--oi-text-muted);
	max-width: 100ch;
}

@media (max-width: 767px) {
	.oi-footer__newsletter {
		flex-direction: column;
		align-items: stretch;
	}

	/* flex-basis would turn into a height inside the column container. */
	.oi-newsletter {
		flex: 1 1 auto;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.oi-newsletter__input {
		flex-basis: 100%;
	}

	.oi-newsletter__btn {
		width: 100%;
	}
}
