.agreement {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.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: #dcdcdc;
    border: none;
}

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

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

.agreement__text,
.agreement p {
    margin: 0;
    font-size: 9px;
    line-height: 110%;
    color: #e8e8e8;
    font-weight: 400;
    letter-spacing: -0.03em;
}

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

.agreement--dark .agreement__text,
.agreement--dark .agreement p {
    color: #e8e8e8;
}

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

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

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