.agreement {
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-align: left;
 
}

.agreement__item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 5px;
	cursor: pointer;
}

.agreement input[type='checkbox'] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	flex-shrink: 0;
}

.agreement input[type='checkbox'] + span {
	flex-shrink: 0;
	display: block;
	position: relative;
	width: 24px;
	height: 24px;
	min-width: 24px;
	background-color: #E8E8E8;
	border: none;
	border-radius: 2px;
}

.agreement input[type='checkbox'] + span::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	width: 16px;
	height: 16px;
	background-image: url(../img/check.svg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	opacity: 0;
	transition:
		opacity 0.3s ease,
		transform 0.3s ease;
	filter: brightness(0.4);
}

.agreement input[type='checkbox']:checked + span::before {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.agreement__text,
.agreement p {
	margin: 0;
	font-size: 12px;
	line-height: 120%;
	color: rgba(0, 0, 0, 0.4);
	font-weight: 400;
	letter-spacing: -0.03em;
}

.agreement a {
	color: inherit;
	text-decoration: underline;
}

.agreement--dark .agreement__text,
.agreement--dark .agreement p {
	color: rgba(255, 255, 255, 0.4);
}

.agreement--dark input[type='checkbox'] + span {
	background-color: #dcdee0;
}

@media screen and (max-width: 1200px) {
	.agreement__text,
	.agreement p {
		font-size: 11px;
	}
}

@media screen and (max-width: 768px) {
	.agreement p br {
		display: none;
	}

	.agreement__item {
	}
}
