/**
 * Юридические страницы: политика конфиденциальности.
 */

.legal-page {
	padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.legal-hero {
	position: relative;
	padding: clamp(1.65rem, 4vw, 2.35rem) 0 clamp(1.5rem, 3.5vw, 2.15rem);
	margin-bottom: clamp(1.35rem, 3vw, 2rem);
	overflow: hidden;
	color: #fff;
}

.legal-hero__bg {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(135deg, rgba(0, 55, 55, 0.92) 0%, rgba(0, 121, 121, 0.55) 50%, rgba(20, 28, 32, 0.94) 100%),
		radial-gradient(ellipse 80% 60% at 100% 0%, rgba(242, 208, 107, 0.12) 0%, transparent 55%);
	z-index: 0;
}

.legal-hero__shell {
	position: relative;
	z-index: 1;
}

.legal-breadcrumbs__list {
	list-style: none;
	margin: 0 0 0.75rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	font-family: "Manrope", system-ui, sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
}

.legal-breadcrumbs__item {
	color: rgba(255, 255, 255, 0.55);
}

.legal-breadcrumbs__item:not(:last-child)::after {
	content: "/";
	margin-left: 0.5rem;
	color: rgba(255, 255, 255, 0.35);
}

.legal-breadcrumbs__link {
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
}

.legal-breadcrumbs__link:hover {
	color: #f2d06b;
}

.legal-breadcrumbs__item--current {
	color: rgba(255, 255, 255, 0.92);
}

.legal-hero__inner {
	max-width: 40rem;
}

.legal-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 0.85rem;
	padding: 0.35rem 0.85rem;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #f2d06b;
	background: rgba(242, 208, 107, 0.12);
	border: 1px solid rgba(242, 208, 107, 0.35);
	border-radius: 999px;
}

.legal-hero__title {
	margin: 0 0 0.65rem;
	font-family: "Manrope", system-ui, sans-serif;
	font-size: clamp(1.65rem, 4vw, 2.35rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.legal-hero__lead {
	margin: 0;
	font-size: clamp(0.95rem, 2vw, 1.08rem);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.82);
}

.legal-hero__meta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0.85rem 0 0;
	font-size: 0.82rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.65);
}

.legal-page__body {
	padding-top: 0.25rem;
}

.legal-layout {
	display: grid;
	grid-template-columns: minmax(12rem, 16rem) 1fr;
	gap: clamp(1.25rem, 3vw, 2rem);
	align-items: start;
}

.legal-toc {
	position: sticky;
	top: calc(var(--header-h-mobile, 64px) + 1rem);
	padding: 1.1rem 1rem;
	background: #fff;
	border-radius: 16px;
	border: 1px solid rgba(0, 121, 121, 0.14);
	box-shadow: 0 8px 28px rgba(61, 68, 73, 0.06);
}

.legal-toc__title {
	margin: 0 0 0.65rem;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #007979;
}

.legal-toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: legal-toc;
}

.legal-toc__list li {
	margin: 0;
}

.legal-toc__link {
	display: block;
	padding: 0.4rem 0;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--slider-ash, #3d4449);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.legal-toc__link:hover,
.legal-toc__link:focus-visible {
	color: #007979;
	border-bottom-color: rgba(0, 121, 121, 0.25);
}

.legal-document {
	min-width: 0;
}

.legal-section {
	margin-bottom: 1.35rem;
	padding: 1.35rem 1.25rem;
	background: #fff;
	border-radius: 18px;
	border: 1px solid rgba(0, 121, 121, 0.1);
	box-shadow: 0 6px 24px rgba(61, 68, 73, 0.05);
	scroll-margin-top: calc(var(--header-h-mobile, 64px) + 1rem);
}

.legal-section__title {
	margin: 0 0 0.85rem;
	padding-bottom: 0.65rem;
	font-family: "Manrope", system-ui, sans-serif;
	font-size: clamp(1.02rem, 2.2vw, 1.15rem);
	font-weight: 800;
	color: var(--slider-ash, #3d4449);
	border-bottom: 2px solid rgba(242, 208, 107, 0.45);
}

.legal-section__body p {
	margin: 0 0 0.75rem;
	font-size: 0.92rem;
	line-height: 1.65;
	color: var(--color-muted, #5c6468);
}

.legal-section__body p:last-child {
	margin-bottom: 0;
}

.legal-section__body a {
	color: #007979;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.legal-section__body a:hover {
	color: #006060;
}

.legal-section__list {
	margin: 0.5rem 0 0.75rem;
	padding-left: 1.25rem;
}

.legal-section__list li {
	margin-bottom: 0.45rem;
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--color-muted, #5c6468);
}

.legal-section__list li::marker {
	color: #007979;
}

.legal-notice {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	margin-top: 1.5rem;
	padding: 1rem 1.1rem;
	font-size: 0.85rem;
	line-height: 1.55;
	color: #5c6468;
	background: linear-gradient(135deg, rgba(0, 121, 121, 0.06) 0%, rgba(242, 208, 107, 0.1) 100%);
	border-radius: 14px;
	border: 1px dashed rgba(0, 121, 121, 0.22);
}

.legal-notice i {
	flex-shrink: 0;
	margin-top: 0.15rem;
	font-size: 1.1rem;
	color: #007979;
}

.legal-notice p {
	margin: 0;
}

.legal-editor {
	margin-top: 1.5rem;
}

@media (min-width: 901px) {
	.legal-toc {
		top: calc(var(--header-h, 72px) + 1.25rem);
	}

	.legal-section {
		scroll-margin-top: calc(var(--header-h, 72px) + 1.25rem);
	}
}

@media (max-width: 900px) {
	.legal-layout {
		grid-template-columns: 1fr;
	}

	.legal-toc {
		position: static;
	}
}
