.button-red {
    cursor: pointer;
}

.accordion-item:not(:last-child) {
    margin: 0px;
}

.legal-splitcontent__wrapper.adresses .accordion-item.active .accordion-item__content {
    font-size: 14px;
    padding: 24px;
}
.legal-splitcontent__wrapper.adresses .accordion-item__content::before {
    top: -16px;
}

.legal-title__wrapper {
    padding-top: 150px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 189px;
}
.legal-title {
    font-size: 64px;
    line-height: 120%;
    font-weight: 500;
    font-family: 'Oswald';
    text-transform: uppercase;
    letter-spacing: -5px;
    width: 100%;
}
.legal-desc {
    font-size: 48px;
    color: #747D90;
    font-family: 'Oswald';
    line-height: 120%;
    letter-spacing: -1px;
    font-weight: 400;
}
.legal-head__image {
    width: 100%;
    margin-top: 80px;
}

.legal-bot__wrapper {
    padding-top: 80px;
    padding-bottom: 120px;
    display: flex;
    justify-content: flex-end;
}
.legal-bot__text {
    width: 33%;
    margin-right: 180px;
    font-size: 16px;
    color: #000000B2;
    line-height: 170%;
}

.legal-bot__about-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 80px;
}
.legal-bot__about-title {
    font-size: 40px;
    line-height: normal;
    font-weight: 500;
    text-align: center;
}
.legal-bot__about-wrapper .digital-global__quality-wrapper {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    flex-direction: row;
}
.legal-bot__about-wrapper .digital-global__quality {
    width: calc((100% - 48px) / 4);
}

.legal-botfollow__wrapper {
    padding-top: 120px;
    padding-bottom: 200px;
    display: flex;
    gap: 16px;
}
.legal-botfollow__section {
    width: 100%;
    border-radius: 24px;
    height: 416px;
    position: relative;
    padding: 40px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.legal-botfollow__section.red {
    background: #CF141F;
    box-shadow: inset #FFFFFFB2 0px 0px 120px 8px;
}
.legal-botfollow__image {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}
.legal-botfollow__title {
    font-size: 40px;
    line-height: normal;
    font-weight: 500;
}
.legal-botfollow__socials {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.legal-botfollow__social {
    border: 1px solid #D7D9DF;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    justify-content: space-between;
    border-radius: 12px;
    height: 89px;
    color: #475570;
    transition: .4s;
}
.legal-botfollow__social.active {
    background: #CF141F;
    box-shadow: #FFFFFFCC 0px 0px 0px 0px;
    color: white;
    cursor: pointer;
}
.legal-botfollow__social.active .legal-botfollow__social-icon img {
    filter: brightness(100);
}
.legal-botfollow__social-icon img {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(30%) sepia(12%) saturate(1454%) hue-rotate(181deg) brightness(92%) contrast(80%);
    transition: .4s;
}
.legal-botfollow__social-title__wrapper {
    font-size: 14px;
}

.legal-splitcontent__wrapper {
    display: flex;
    padding-bottom: 200px;
}
.legal-splitcontent__section {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}
.legal-mission__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 200px;
    padding-top: 200px;
}
.legal-misson__title {
    font-size: 400px;
    color: white;
    font-family: 'Oswald';
    font-weight: 500;
    text-transform: uppercase;
}
.legal-mission__desc {
    width: 50%;
    font-family: 'eUkraine';
    font-weight: 500;
    font-size: 40px;
    line-height: 100%;
    letter-spacing: -1px;
    text-align: center;
    margin-top: 100px;
}
.legal-mission__desc strong {
    color: red;
}

.legal-adresses__title {
    font-weight: 500;
    font-size: 40px;
    line-height: 100%;
}
.legal-splitcontent__section.title {
    width: 50%;
}
.legal-splitcontent__wrapper.adresses {
    gap: 67px;
}

.legal-partners__wrapper {
    margin-bottom: 120px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.legal-partners__sections-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 40px;
    gap: 16px;
}
.legal-partners__sections-wrapper a {
    transition: .2s;
}
.legal-partners__sections-wrapper a:hover {
    opacity: .5;
}
.legal-partners__title {
    font-weight: 500;
    font-size: 40px;
    line-height: normal;
    text-align: center;
    width: 50%;
}
.legal-partners__partner-desc {
    white-space: break-spaces;
}
.legal-partners__partner-desc p {
    color: #000000B2;
    font-size: 16px;
    font-weight: 400;
}
.legal-partners__partner-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 56px;
    background: white;
    border-radius: 24px;
}
.legal-partners__partner-info img {
    width: auto;
    height: 104px;
    object-fit: contain;
}
.legal-partners__partner-info p {
    font-size: 24px;
    font-weight: 500;
}

.legal-splitcontent__wrapper.adresses .accordion-item__main {
    padding: 16px 24px;
    display: flex;
    align-items: center;
}
.legal-splitcontent__wrapper.adresses .legal-adresses__accordion-section {
    display: flex;
    align-items: center;
    gap: 18px;
}
.legal-splitcontent__wrapper.adresses .legal-adresses__accordion-section__title {
    font-size: 14px;
}

.legal-problems__wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 72px;
}
.legal-problems__title {
    font-size: 40px;
    font-weight: 500;
}
.legal-problems__wrapper .digital-global__quality-wrapper {
    grid-template-columns: repeat(3, 1fr);
}
.legal-problems__wrapper .digital-global__quality-icon {
    width: 100%;
    height: auto;
    background: transparent;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}
.legal-problems__wrapper .digital-global__quality-icon img {
    background: #CF141F0D;
    width: 72px;
    height: 72px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    flex-shrink: 0;
}
.digital-global__quality-content {
    padding-left: 32px;
    color: #00000099;
}
.digital-global__quality-content li::marker {
    color: #CF141F;
    font-size: 30px;
}

.legal-splitcontent__wrapper.cases {
    padding-top: 200px;
    padding-bottom: 216px;
}
.legal-splitcontent__wrapper.cases .accordion-item__main {
    padding: 16px 24px;
    display: flex;
    align-items: center;
}
.legal-splitcontent__wrapper.cases .accordion-item.active .accordion-item__content {
    padding: 24px;
    display: block;
}
.legal-splitcontent__wrapper.cases .accordion-item.active .accordion-item__content p {
    line-height: 170%;
    font-size: 14px;
    color: #00000099;
    width: fit-content;
}
.legal-splitcontent__wrapper.cases .accordion-item.active .accordion-item__content p {
    margin-bottom: 20px;
}
.legal-splitcontent__wrapper.cases .accordion-item.active .accordion-item__content p:last-child {
    margin: 0px;
}
.legal-splitcontent__wrapper.cases .accordion-item__title {
    max-width: 100%;
}

.legal-documents__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    padding-bottom: 160px;
}
.legal-documents {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: stretch;
}
.legal-documents.half {
    overflow: hidden;
    height: 255px;
    transition: .4s;
    position: relative;
}
.legal-documents.half::after {
    content: '';
    background: linear-gradient(0deg, #eef1f7, transparent);
    width: 100%;
    height: 100%;
    position: absolute;
    transition: .4s;
}
.legal-documents.half.full {
    height: auto;
}
.legal-documents.half.full::after {
    opacity: 0;
    pointer-events: none;
}
.legal-documents__title {
    font-size: 40px;
    font-weight: 500;
    text-align: center;
    line-height: normal;
}
.legal-document {
    background: white;
    padding: 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    justify-content: flex-start;
    height: 100%;
}
.legal-document__header {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 500;
    font-size: 16px;
}
.legal-document__header svg {
    flex-shrink: 0;
}
.legal-document__desc {
    font-size: 14px;
    color: #00000099;
}

.button-red {
    font-family: 'eUkraine';
    font-weight: 500;
    width: fit-content;
}

.legal-adresses__wrapper .legal-adresses {
    padding: 32px;
    background: white;
    border-radius: 16px;
    display: flex;
}
.legal-adresses__wrapper .legal-adresses .legal-adresses__section:nth-child(1) {
    width: 30%;
    flex-shrink: 0;
    box-sizing: border-box;
}
.legal-adresses__wrapper .legal-adresses .legal-adresses__section:nth-child(2) {
    width: 70%;
    flex-shrink: 0;
    box-sizing: border-box;
}
.legal-adresses__wrapper .legal-adresses__section:nth-child(1) p {
    font-size: 24px;
    font-weight: 500;
    word-wrap: break-word;
}
.legal-adresses__wrapper .legal-adresses__section:nth-child(2) p {
    white-space: break-spaces;
    line-height: 170%;
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    .legal-partners__title {
        font-size: 24px;
        width: 100%;
    }
    .legal-partners__sections-wrapper {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
    }
    .legal-partners__partner-info {
        display: flex;
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }
    .legal-adresses__wrapper .legal-adresses {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .legal-partners__section {
        padding: 0px 60px;
    }
    .legal-partners__partner-info p {
        font-size: 15px;
        width: 80%;
        text-align: center;
    }
    .legal-title__wrapper {
        display: flex;
        flex-direction: column;
        gap: 32px;
        text-align: center; 
        padding-top: 120px;
    }
    .legal-title {
        font-size: 40px;
        letter-spacing: -3px;
    }
    .legal-desc {
        font-size: 32px;
    }
    .legal-head__image {
        margin-top: 32px;
        height: 240px;
        object-fit: cover;
        border-radius: 24px;
    }
    .legal-bot__text {
        width: 100%;
        margin: 0px;
        text-align: center;
    }
    .legal-bot__wrapper {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .legal-bot__about-title {
        display: none;
    }
    .legal-bot__about-wrapper .digital-global__quality-wrapper {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .legal-bot__about-wrapper .digital-global__quality {
        width: calc(50% - 8px);
    }
    .legal-botfollow__wrapper {
        display: flex;
        flex-direction: column;
        padding-bottom: 120px;
        margin-top: 120px;
    }
    .legal-botfollow__image {
        width: 202px;
        margin-top: -60px;
    }
    .legal-botfollow__section.red {
        height: 207px;
        position: relative;
        box-shadow: inset white 0px 0px 20px 2px;
    }
    .legal-botfollow__title:not(.mobile) {
        display: none;
    }
    .legal-botfollow__title.mobile {
        display: block!important;
        font-size: 24px;
        text-align: center;
        color: white;
        position: absolute;
        bottom: 35px;
        background: linear-gradient(0deg, #d32a34 50%, transparent);
        width: 80%;
        margin-left: 30px;
    }
    .legal-botfollow__section {
        padding: 0px;
        background: transparent;
        height: auto;
    }
    .legal-botfollow__socials {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .legal-botfollow__socials > a {
        background: white;
        border: none;
        border-radius: 16px;
        width: calc((100% - 20px) / 3);
    }
    .legal-botfollow__social {
        border: none;
    }
    .legal-splitcontent__wrapper {
        display: flex;
        flex-direction: column;
        gap: 32px;
        padding-bottom: 150px;
    }
    .legal-pravovsim__title {
        font-size: 24px;
    }
    .legal-splitcontent__section:not(.mobile) .button-red {
        display: none;
    }
    .legal-splitcontent__wrapper.adresses .accordion-item__main {
        gap: 32px;
    }
    .button-red.mobile {
        display: flex!important;
        margin-top: 32px;
    }

    .legal-adresses__wrapper .legal-adresses .legal-adresses__section:nth-child(1),
    .legal-adresses__wrapper .legal-adresses .legal-adresses__section:nth-child(2) {
        width: 100%;
    }

    .legal-mission__wrapper {
        padding-top: 0;
        padding-bottom: 130px;
    }
    .legal-misson__title {
        font-size: 100px;
    }
    .legal-mission__desc {
        font-size: 24px;
        margin-top: 20px;
        width: 80%;
        font-weight: 500;
        line-height: 160%;
    }
    .legal-splitcontent__wrapper.adresses {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 33px;
        padding-bottom: 120px;
    }
    .legal-splitcontent__section.title {
        width: 100%;
    }
    .legal-adresses__title {
        font-size: 24px;
        text-align: center;
        line-height: 160%;
    }
    .legal-problems__wrapper {
        gap: 24px;
    }
    .legal-problems__title {
        font-size: 24px;
        text-align: center;
    }
    .legal-problems__wrapper .digital-global__quality-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .legal-problems__wrapper .digital-global__quality-wrapper .digital-global__quality {
        width: 100%;
    }
    .legal-problems__wrapper .digital-global__quality-icon img {
        width: 40px;
        height: 40px;
        padding: 5px;
    }
    .digital-global__quality-title {
        font-weight: 500;
    }
    .legal-splitcontent__wrapper.cases {
        padding: 120px 0;
    }

    .legal-documents__title {
        font-size: 24px;
    }
    .legal-documents__wrapper {
        gap: 32px;
        padding-bottom: 120px;
    }
    .legal-documents {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    .legal-documents__wrapper .button-red {
        min-width: 0px;
    }
}