/**
 * Mobile layout fixes — overflow, touch targets, EN-safe stacking.
 */

@media (max-width: 767px) {
	:root {
		--teya-gutter: var(--teya-gutter-mobile);
		--teya-margin: var(--teya-margin-mobile);
	}

	.teya-container {
		width: min(100%, var(--teya-container-max));
		padding-inline: var(--teya-gutter);
	}

	.teya-site-header__logo-img {
		height: 36px;
		max-width: min(168px, 48vw);
	}

	.teya-site-footer__grid {
		grid-template-columns: 1fr;
		gap: var(--teya-space-xl);
	}

	.teya-site-footer__cta-band {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.teya-site-footer__cta-band-btn {
		width: 100%;
		justify-content: center;
	}

	.teya-site-footer__legal {
		flex-direction: column;
	}

	.teya-footer-nav__list--legal {
		flex-direction: column;
		align-items: flex-start;
	}

	.teya-cookie-banner__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.teya-cookie-banner__actions {
		width: 100%;
		flex-direction: column;
	}

	.teya-cookie-banner__actions .button-primary,
	.teya-cookie-banner__actions .button-secondary {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 400px) {
	.teya-site-header__logo-img {
		height: 32px;
		max-width: min(140px, 52vw);
	}
}

/* Wide EN labels on tablet/desktop nav */
@media (min-width: 1081px) and (max-width: 1240px) {
	.teya-lang-en .teya-nav__list,
	html[lang="en"] .teya-nav__list {
		gap: var(--teya-space-sm) var(--teya-space-sm);
	}

	.teya-lang-en .teya-nav__link,
	html[lang="en"] .teya-nav__link {
		font-size: 0.8125rem;
		padding-inline: var(--teya-space-xs);
	}
}
