* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.container {
	height: auto !important;
	min-height: 100dvh;
}

/* ШАПКА (как на странице новостей/записи) */
.legal-head {
	width: 100%;
	height: 91px;
	border: 1px solid #3c3c3c;
	background-color: transparent;
	display: flex;
	align-items: center;
	gap: 48px;
}

.back {
	width: 91px;
	height: 91px;
	border: 1px solid #3c3c3c;
	background-color: #161616;
	cursor: pointer;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.4s ease;
}

.back:hover {
	background-color: #202020;
}

.back img {
	transform: rotate(90deg);
}

.legal-head .legal-h-title {
	margin: 0;
	color: white;
	font-family: "Vetrino";
	font-size: 42px;
	font-weight: 400;
}

@media (max-width: 640px) {
	.legal-head {
		gap: 20px;
	}
	.legal-head .legal-h-title {
		font-size: 24px;
		line-height: 1.1;
		padding-right: 14px;
	}
}

/* КОНТЕНТ */
.legal-wrap {
	border-left: 1px solid #3c3c3c;
	border-right: 1px solid #3c3c3c;
	border-bottom: 1px solid #3c3c3c;
	padding: 44px;
	display: flex;
	justify-content: center;
}

@media (max-width: 640px) {
	.legal-wrap {
		padding: 22px 14px;
	}
}

.legal-panel {
	width: 100%;
	max-width: 900px;
	background-color: #161616;
	border: 1px solid #2f2f2f;
	border-radius: 14px;
	padding: 40px;
}

@media (max-width: 640px) {
	.legal-panel {
		padding: 24px 18px;
	}
}

.legal-panel .doc-title {
	color: white;
	font-family: "Vetrino";
	font-size: 30px;
	font-weight: 400;
	line-height: 1.2;
	margin-bottom: 10px;
}

.legal-panel .doc-meta {
	color: #6c6c6c;
	font-family: "SF Pro Display";
	font-size: 14px;
	font-weight: 400;
	padding-bottom: 22px;
	margin-bottom: 26px;
	border-bottom: 1px solid #2f2f2f;
}

.legal-panel h2 {
	color: white;
	font-family: "SF Pro Display";
	font-size: 19px;
	font-weight: 600;
	margin-top: 30px;
	margin-bottom: 12px;
}

.legal-panel h2:first-of-type {
	margin-top: 0;
}

.legal-panel p {
	color: #adadad;
	font-family: "SF Pro Display";
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	margin-bottom: 14px;
}

.legal-panel ul {
	margin: 0 0 14px 0;
	padding-left: 22px;
}

.legal-panel li {
	color: #adadad;
	font-family: "SF Pro Display";
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	margin-bottom: 8px;
}

.legal-panel a {
	color: #e0e0e0;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.4s ease;
}

.legal-panel a:hover {
	color: white;
}

.legal-panel b,
.legal-panel strong {
	color: #e6e6e6;
	font-weight: 600;
}

.legal-panel .doc-note {
	margin-top: 30px;
	padding: 16px 18px;
	background-color: #1c1c1c;
	border: 1px solid #2f2f2f;
	border-radius: 10px;
	color: #8a8a8a;
	font-size: 14px;
	line-height: 1.6;
}
