/**
 * Юридические страницы — стиль главной FC Mechta.
 */

body.mechta-legal-page {
	background: var(--mechta-black, #000);
	color: var(--mechta-white, #fff);
}

body.mechta-legal-page .site-header,
body.mechta-legal-page #site-header,
body.mechta-legal-page .oceanwp-theme #site-header,
body.mechta-legal-page #footer.site-footer,
body.mechta-legal-page footer.site-footer {
	display: none !important;
}

/* ——— Top bar ——— */

.mechta-legal-bar {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(10, 10, 10, 0.92);
	backdrop-filter: blur(10px);
}

.mechta-legal-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 20px;
	box-sizing: border-box;
	min-height: 72px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.mechta-legal-bar__logo {
	display: block;
	flex-shrink: 0;
	line-height: 0;
}

.mechta-legal-bar__logo img {
	display: block;
	width: auto;
	height: 36px;
	max-width: 140px;
	object-fit: contain;
}

.mechta-legal-bar__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	align-items: center;
	justify-content: flex-end;
	margin-left: auto;
}

.mechta-legal-bar__phone {
	font-family: var(--mechta-font-display);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none !important;
	color: var(--mechta-white) !important;
	white-space: nowrap;
}

.mechta-legal-bar__phone:hover {
	color: var(--mechta-accent) !important;
}

.mechta-legal-bar__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid var(--mechta-white);
	background: transparent;
	font-family: var(--mechta-font-display);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none !important;
	color: var(--mechta-white) !important;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease;
}

.mechta-legal-bar__cta:hover,
.mechta-legal-bar__cta:focus-visible {
	background: var(--mechta-accent);
	border-color: var(--mechta-accent);
	color: var(--mechta-black) !important;
}

.mechta-legal-bar__social {
	display: block;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	line-height: 0;
	text-decoration: none !important;
	transition: opacity 0.2s ease;
}

.mechta-legal-bar__social:hover,
.mechta-legal-bar__social:focus-visible {
	opacity: 0.75;
}

.mechta-legal-bar__social img {
	display: block;
	width: 40px;
	height: 40px;
}

/* ——— Article ——— */

.mechta-legal {
	padding: 48px 0 80px;
}

/* Ширина и поля — от .mechta-container (не перебивать width: 100%) */
.mechta-legal__inner {
	box-sizing: border-box;
}

.mechta-legal__eyebrow {
	margin: 0 0 16px;
}

.mechta-legal__eyebrow a {
	font-family: var(--mechta-font-body);
	font-size: 14px;
	font-weight: 400;
	text-decoration: none !important;
	color: #ababab !important;
	transition: color 0.2s ease;
}

.mechta-legal__eyebrow a:hover {
	color: var(--mechta-accent) !important;
}

body.mechta-legal-page h1.mechta-legal__title {
	margin: 0 0 40px;
	font-family: var(--mechta-font-display) !important;
	font-size: clamp(36px, 6vw, 64px) !important;
	font-weight: 700 !important;
	line-height: 0.95 !important;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--mechta-white) !important;
}

/* ——— Content (в т.ч. Elementor) ——— */

.mechta-legal__content {
	max-width: none;
	width: 100%;
	font-family: var(--mechta-font-body);
	font-size: 16px;
	line-height: 1.65;
	color: #d4d4d4;
}

.mechta-legal__content .elementor,
.mechta-legal__content .elementor-section,
.mechta-legal__content .elementor-container,
.mechta-legal__content .elementor-widget-wrap,
.mechta-legal__content .elementor-widget,
.mechta-legal__content .elementor-widget-container {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

.mechta-legal__content .elementor-section.elementor-section-boxed > .elementor-container {
	max-width: none !important;
}

.mechta-legal__content h1,
.mechta-legal__content h2,
.mechta-legal__content h3,
.mechta-legal__content h4,
.mechta-legal__content h5,
.mechta-legal__content h6,
.mechta-legal__content .elementor-heading-title {
	font-family: var(--mechta-font-display) !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--mechta-white) !important;
}

.mechta-legal__content h1,
.mechta-legal__content h2,
.mechta-legal__content .elementor-widget-heading h2 {
	margin: 2em 0 0.75em !important;
	font-size: 28px !important;
}

.mechta-legal__content h3,
.mechta-legal__content .elementor-widget-heading h3 {
	margin: 1.6em 0 0.6em !important;
	font-size: 22px !important;
}

.mechta-legal__content h4 {
	margin: 1.4em 0 0.5em !important;
	font-size: 18px !important;
}

.mechta-legal__content p,
.mechta-legal__content .elementor-widget-text-editor p,
.mechta-legal__content li,
.mechta-legal__content .elementor-widget-text-editor li {
	font-family: var(--mechta-font-body) !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.65 !important;
	color: #d4d4d4 !important;
}

.mechta-legal__content p {
	margin: 0 0 1em !important;
}

.mechta-legal__content ul,
.mechta-legal__content ol {
	margin: 0 0 1.25em !important;
	padding-left: 1.25em !important;
}

.mechta-legal__content li {
	margin: 0 0 0.4em !important;
}

.mechta-legal__content a {
	color: var(--mechta-accent) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mechta-legal__content a:hover {
	color: #e8ff66 !important;
}

.mechta-legal__content strong,
.mechta-legal__content b {
	font-weight: 600 !important;
	color: var(--mechta-white) !important;
}

.mechta-legal__content table {
	width: 100%;
	margin: 0 0 1.5em;
	border-collapse: collapse;
	font-size: 14px;
}

.mechta-legal__content th,
.mechta-legal__content td {
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	text-align: left;
	vertical-align: top;
	color: #d4d4d4;
}

.mechta-legal__content th {
	background: rgba(255, 255, 255, 0.06);
	font-family: var(--mechta-font-display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--mechta-white);
}

.mechta-legal__content figure,
.mechta-legal__content img {
	max-width: 100%;
	height: auto;
}

/* Футер: якоря на главную */
body.mechta-legal-page .mechta-footer {
	margin-top: 0;
}

@media (max-width: 767px) {
	/* Логотип + соцсети в ряд; телефон и CTA ниже на всю ширину */
	.mechta-legal-bar__inner {
		flex-wrap: wrap;
		align-items: center;
		min-height: 0;
		gap: 12px 10px;
		padding-top: 14px;
		padding-bottom: 14px;
	}

	.mechta-legal-bar__logo {
		order: 1;
		margin-right: auto;
	}

	.mechta-legal-bar__logo img {
		height: 32px;
		max-width: 120px;
	}

	.mechta-legal-bar__actions {
		display: contents;
	}

	.mechta-legal-bar__social {
		order: 2;
		width: 36px;
		height: 36px;
	}

	.mechta-legal-bar__social img {
		width: 36px;
		height: 36px;
	}

	.mechta-legal-bar__phone {
		order: 3;
		width: 100%;
		font-size: 18px;
	}

	.mechta-legal-bar__cta {
		order: 4;
		width: 100%;
		min-height: 44px;
		font-size: 18px;
	}

	.mechta-legal {
		padding: 28px 0 56px;
	}

	body.mechta-legal-page h1.mechta-legal__title {
		margin-bottom: 24px;
		font-size: clamp(28px, 9vw, 40px) !important;
		line-height: 1 !important;
	}

	.mechta-legal__content,
	.mechta-legal__content p,
	.mechta-legal__content li {
		font-size: 15px !important;
	}

	.mechta-legal__content h1,
	.mechta-legal__content h2,
	.mechta-legal__content .elementor-widget-heading h2 {
		font-size: 22px !important;
	}

	.mechta-legal__content h3,
	.mechta-legal__content .elementor-widget-heading h3 {
		font-size: 18px !important;
	}

	.mechta-legal__content table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.mechta-legal__content th,
	.mechta-legal__content td {
		padding: 10px 12px;
		font-size: 13px;
	}
}
