/* <editor-fold desc="General"> */
.legal-page .categories-container { padding-top: 40px; }
.legal-page .categories-container .categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 20px;
    padding-bottom:19px;
    border-bottom: 1px solid #f2f2f1;
    list-style: none;
}
.legal-page .categories-container .category {
    display: inline-block;
    flex-shrink: 0;
    border: 1px solid #e3e3e3;
    border-radius: 100px;
}
.legal-page .categories-container .category.current {
    background: #eefff2;
    border-color: #caffd9;
}
.legal-page .categories-container .category a {
    display: block;
    padding: 6px 15px;
    color: #727272;
    font-weight: 500;
    transition: color .3s;
}
.legal-page .categories-container .category:hover a { color: #221f1f; }
.legal-page .categories-container .category.current a { color: #221f1f; }


.legal-page .page-main { display: flex; }

.legal-page .articles-nav {
    width: 324px;
    flex-shrink: 0;
    border-right: 1px solid #f2f2f1;
}
.legal-page .articles-nav .nav-list {
    margin-top: 24px;
    list-style: none;
}
.legal-page .articles-nav .nav-list .item {
    margin: 4px 0;
    padding: 8px 0;
}
.legal-page .articles-nav .nav-list .item a {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 12px;
    padding-right: 20px;
}
.legal-page .articles-nav .nav-list .item .icon-wrapper {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    padding: 7px;
    border: 1px solid transparent;
    border-radius: 4px;
}
.legal-page .articles-nav .nav-list .item.current .icon-wrapper {
    position: relative;
    background: #eefff2;
    border-color: #06ba52;
}
.legal-page .articles-nav .nav-list .item.current .icon-wrapper:before {
    content: "";
    position: absolute;
    left: -13px;
    top: -1px;
    bottom: -1px;
    width: 4px;
    background: #06ba52;
}
.legal-page .articles-nav .nav-list .item .icon-wrapper img { transition: filter .3s; }
.legal-page .articles-nav .nav-list .item a:hover .icon-wrapper img {
    filter: contrast(20);
    -webkit-filter: contrast(20);
}
.legal-page .articles-nav .nav-list .item.current .icon-wrapper img {
    filter: contrast(20);
    -webkit-filter: contrast(20);
}
.legal-page .articles-nav .nav-list .item .title {
    margin-left: 8px;
    color: #727272;
    line-height: 1.5;
    transition: color .3s;
}
.legal-page .articles-nav .nav-list .item > a:hover .title { color: #221f1f; }
.legal-page .articles-nav .nav-list .item.current .title { color: #221f1f; }
/* legacy ? */
.legal-page .articles-nav .nav-list li.has-child > a:after {
    content: "";
    position: absolute;
    top: calc(50% + 3px);
    right: 12px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-top-color: #221f1f;
    transform: translateY(-50%);
    transition: all .3s;
}
.legal-page .articles-nav .nav-list li.has-child.expanded > a:after { transform: translateY(-100%) scale(-1); }
.legal-page .articles-nav .nav-list li.has-child.current > a:after { border-top-color: #fff; }
.legal-page .articles-nav .nav-list li.has-child .title { padding-right: 24px; }
.legal-page .articles-nav .nav-list .children { display: none; }
.legal-page .articles-nav .nav-list li.expanded .children { display: block; }
.legal-page .articles-nav .nav-list .children ul li { padding: 12px 0 0; }
.legal-page .articles-nav .nav-list .children ul li a {
    display: block;
    color: #221f1f;
}
.legal-page .articles-nav .nav-list li.current .children ul li a.current {
    border-color: #221f1f;
    font-weight: 700;
}
/* ? legacy */

.legal-page article {
    width: 100%;
    margin-left: 20px;
    padding: 24px 24px 0;
}
.legal-page article .mobile-back-btn-wrapper {
    display: none;
    padding-bottom: 8px;
}
.legal-page article .mobile-back-btn {
    position: relative;
    display: inline-block;
    padding-left: 40px;
    color: #221f1f;
    font-weight: 700;
    line-height: 40px;
}
.legal-page article .mobile-back-btn:before {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    background: url(../images/icons/left-arrow-24x24.svg) center center no-repeat;
    background-size: contain;
}

.legal-page article .notice {
    position: relative;
    margin-bottom: 20px;
    padding: 8px 12px 8px 56px;
    background: #fffaec;
    border-left: 2px solid #ffa800;
    line-height: 20px;
}
.legal-page article .notice .notice-icon {
    position: absolute;
    top: 8px;
    left: 10px;
}
.legal-page article .notice .title {
    color: #221f1f;
    font-size: 16px;
    font-weight: 700;
}
.legal-page article .notice .description { padding-top: 8px; }

.legal-page article .article-content {
    padding-top: 24px;
    color: #221f1f;
}
.legal-page article .article-content .block:not(:last-of-type) { margin-bottom: 20px; }

@media (max-width: 1300px) {
    .legal-page .articles-nav { width: 284px; }

    .legal-page article { margin-left: 10px; }
}
@media (max-width: 992px) {
    .legal-page .categories-container .categories {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .legal-page .categories-container .category a { padding: 6px 12px; }

    .legal-page .page-main { overflow: hidden; }

    .legal-page .articles-nav {
        position: relative;
        left: 0;
        width: 100%;
        border-right: none;
        transition: left .7s;
    }
    .legal-page article {
        position: relative;
        flex-shrink: 0;
        left: 0;
        margin-left: 0;
        padding-left: 0;
        transition: left .7s;
    }
    .legal-page .page-main.-mobile-article .articles-nav,
    .legal-page .page-main.-mobile-article article {
        left: -100%;
    }

    .legal-page .articles-nav .nav-list { max-width: 324px; }
    .legal-page .articles-nav .nav-list .item a { padding-right: 24px; }
    .legal-page .articles-nav .nav-list .item a:after {
        content: "";
        position: absolute;
        top: 50%;
        right: 0;
        width: 16px;
        height: 16px;
        background: url(../images/icons/right-arrow-16x16.svg) center center no-repeat;
        background-size: contain;
        transform: translateY(-50%);
        transition: filter .3s;
    }
    .legal-page .articles-nav .nav-list .item a:hover:after {
        filter: contrast(20);
        -webkit-filter: contrast(20);
    }
    .legal-page .articles-nav .nav-list .item.current a:after {
        filter: contrast(20);
        -webkit-filter: contrast(20);
    }

    .legal-page article .mobile-back-btn-wrapper { display: block; }

    /* LEGACY ?*/
}
@media (max-width: 768px) {
    .legal-page .categories-container { padding-top: 20px; }
    .legal-page .categories-container .categories {
        padding-top: 15px;
        padding-bottom: 12px;
    }

    .legal-page .articles-nav .nav-list .item { padding: 12px 0; }
    .legal-page .articles-nav .nav-list .item a { padding-left: 0; }
    .legal-page .articles-nav .nav-list .item .icon-wrapper {
        width: 24px;
        height: 24px;
        padding: 0;
    }
    .legal-page .articles-nav .nav-list .item.current .icon-wrapper {
        background: none;
        border: none;
    }
    .legal-page .articles-nav .nav-list .item.current .icon-wrapper:before { display: none; }

    .legal-page article { padding: 8px 0 0; }

    .legal-page article .article-content { padding-top: 16px; }
    .legal-page article .article-content .block:not(:last-of-type) { margin-bottom: 16px; }
}
@media (max-width: 576px) {
    .legal-page .articles-nav .nav-list { max-width: 100%; }

    .legal-page article .notice { padding: 8px 12px; }
    .legal-page article .notice .notice-icon {
        position: static;
        float: left;
        margin-right: 10px;
    }
}
/* </editor-fold> */
/* <editor-fold desc="Constructor | Licenses table"> */
.legal-page article .licenses-table table {
    border-spacing: 0;
    line-height: 20px;
}
.legal-page article .licenses-table table td {
    padding: 12px 10px;
    border-bottom: 1px solid #d2d2d2;
}
.legal-page article .licenses-table table td:first-child { padding-left: 0; }
.legal-page article .licenses-table table td:last-child { padding-right: 0; }
.legal-page article .licenses-table table span {
    display: block;
    color: #221f1f;
    font-weight: 700;
}
.legal-page article .licenses-table table thead td:nth-child(2) { width: 26%; }
.legal-page article .licenses-table table thead td:nth-child(3) { width: 25%; }
.legal-page article .licenses-table table thead td:nth-child(4) { width: 18%; }
.legal-page article .licenses-table table thead td:nth-child(5) { width: 29%; }

@media (max-width: 768px) {
    .legal-page article .licenses-table {
        width: 100%;
        overflow-x: auto;
    }
    .legal-page article .licenses-table table { min-width: 670px; }
}
/* </editor-fold> */
/* <editor-fold desc="Constructor | Carousel block"> */
.legal-page article .carousel-block { padding-top: 20px; }
.legal-page article .carousel-container {
    position: relative;
    max-width: 772px;
}
.legal-page article .carousel-container .item { height: 494px; }
.legal-page article .carousel-container .item .img-wrapper {
    position: relative;
    top: 50%;
    width: 184px;
    height: 282px;
    margin: 0 20px;
    border: 1px solid #d2d2d2;
    transform: translateY(-50%);
}
.legal-page article .carousel-container .slick-current.item .img-wrapper {
    width: 324px;
    height: 100%;
}
.legal-page article .carousel-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 772px;
    margin: 0 auto;
    padding: 20px 0 0;
    list-style: none;
}
.legal-page article .carousel-nav li { display: inline-block; }
.legal-page article .carousel-nav .slick-btn {
    display: inline-block;
    width: 32px;
    height: 32px;
    margin: 0 3px;
    background: url(../images/carousel-icon-prev.svg) center center no-repeat;
    cursor: pointer;
}
.legal-page article .carousel-nav .slick-btn.next { transform: rotate(180deg); }
.legal-page article .carousel-nav li.pagination {
    width: 32px;
    height: 32px;
    margin: 0 3px;
    color: #221f1f;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    cursor: pointer;
}
.legal-page article .carousel-nav li.pagination.active {
    background: #00883a;
    color: #fff;
}

@media (max-width: 1300px) {
    .legal-page article .carousel-container { max-width: 632px; }
    .legal-page article .carousel-container .item { height: 430px; }
    .legal-page article .carousel-container .item .img-wrapper {
        width: 154px;
        margin: 0 10px;
    }
    .legal-page article .carousel-container .slick-current.item .img-wrapper { width: 282px; }
}
/* </editor-fold> */
/* <editor-fold desc="Constructor | Form Violation"> */
.legal-page article .form-violation { margin-top: 32px; }
.legal-page article .form-violation .form-title {
    font-weight: 900;
    line-height: 1.5;
}
/* </editor-fold> */
/* <editor-fold desc="Constructor | Form Unacceptable behavior"> */
.legal-page article .form-unacceptable-behavior {
    position: relative;
    margin-top: 32px;
}
.legal-page article .form-unacceptable-behavior .form-title {
    font-weight: 900;
    line-height: 1.5;
}
.legal-page article .form-unacceptable-behavior .user-full-name .input-wrapper.f-check { padding-top: 4px; }
.legal-page article .form-unacceptable-behavior .user-full-name .input-wrapper.f-check.error { padding-top: 4px; }
.legal-page article .form-unacceptable-behavior a { font-weight: inherit; }
.legal-page article .form-unacceptable-behavior .user-contacts .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.legal-page article .form-unacceptable-behavior .user-contacts .row .input-wrapper { width: calc(50% - 8px); }

.legal-page article .form-unacceptable-behavior .user-full-name,
.legal-page article .form-unacceptable-behavior .user-contacts {
    display: none;
}

.legal-page article .form-unacceptable-behavior .upload-block { padding-top: 4px; }
.legal-page article .form-unacceptable-behavior .upload-block .upload-dropzone-files-list .file { margin-bottom: 8px; }
.legal-page article .form-unacceptable-behavior .upload-block .error-msg { display: none; }
.legal-page article .form-unacceptable-behavior .upload-popup-btn {
    display: inline-block;
    padding: 8px 16px 8px 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-decoration: none;
}
.legal-page article .form-unacceptable-behavior .upload-popup-btn:before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    background: url(../images/icons/icon-upload.svg) center center no-repeat;
    background-size: 100%;
    vertical-align: bottom;
}
.legal-page article .form-unacceptable-behavior .form-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: #fff;
    border-radius: 16px;
    opacity: .5;
    cursor: wait;
    z-index: 3;
}

@media (max-width: 768px) {
    .legal-page article .form-unacceptable-behavior { margin-top: 24px; }

    .legal-page article .form-unacceptable-behavior .user-contacts .row { padding-bottom: 0; }
    .legal-page article .form-unacceptable-behavior .user-contacts .row .input-wrapper {
        width: 100%;
        padding-top: 16px;
    }
}
/* </editor-fold> */
/* <editor-fold desc="Constructor | Form Unacceptable behavior | Upload popup"> */
.legal-page article .popup.upload-popup { width: 746px; }
.legal-page article .popup.upload-popup .popup-header {
    display: flex;
    align-items: center;
}
.legal-page article .popup.upload-popup .popup-title { margin: 0; }
.legal-page article .popup.upload-popup .btn-wrapper {
    display: none;
    padding-top: 24px;
}
.legal-page article .popup.upload-popup .btn.upload-popup-confirm {
    max-width: 153px;
    width: 100%;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .legal-page article .popup.upload-popup { width: 95%; }
}
/* </editor-fold> */
/* <editor-fold desc="Upload DropZone"> */
.upload-dropzone-container.input-block { padding-top: 0; }

.upload-dropzone-files-list .file {
    display: flex;
    align-items: center;
    padding: 8px;
    color: #221f1f;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.286;
    word-break: break-all;
}
.upload-dropzone-files-list .file:before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-right: 8px;
    background: url(../images/icons/icon-backup.svg) center center no-repeat;
    filter: contrast(3);
}
.upload-dropzone-files-list .file .remove {
    display: inline-block;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-left: auto;
    background: url(../images/icons/icon-delete-outline.svg) center center no-repeat;
    background-size: 24px 24px;
}

.upload-dropzone-container .upload-dropzone-files-list .file:not(:last-child) { margin-bottom: 8px; }
.upload-dropzone-container .upload-dropzone-files-list .file:last-child { margin-bottom: 24px; }

.upload-dropzone-container .upload-dropzone {
    padding: 45px 12px;
    border-radius: 8px;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='8' ry='8' stroke='%23707070' stroke-width='1' stroke-dasharray='10%2c 10' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
    text-align: center;
}
.upload-dropzone-container .upload-dropzone.-over {
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='8' ry='8' stroke='%2306ba52' stroke-width='1' stroke-dasharray='10%2c 10' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
    background-color: #e7f9ee;
}
.upload-dropzone-container .upload-dropzone .icon {
    width: 32px;
    height: 32px;
    margin: 0 auto;
    background: url(../images/icons/icon-backup.svg) center center no-repeat;
}
.upload-dropzone-container .upload-dropzone .dropzone-desc {
    margin: 0;
    padding-top: 24px;
}
.upload-dropzone-container .upload-dropzone .dropzone-desc a {
    color: #086bff;
    font-weight: inherit;
}
.upload-dropzone-container .upload-dropzone .dropzone-limits {
    padding-top: 12px;
    color: #7a7979;
}
/* </editor-fold> */
/* <editor-fold desc="Lightbox"> */
.legal-page .article-content p > img { cursor: zoom-in; }

#rp-lightbox {
    position: fixed;
    display: none;
    align-items: center;
    justify-content: center;
    inset: 0;
    background: #28282880;
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 99999;
}
#rp-lightbox.prepare-anim { display: flex; }
#rp-lightbox.active {
    display: flex;
    opacity: 1;
}
#rp-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    will-change: transform;
    transform-origin: center center;
}
#rp-lightbox img.zoomed {
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    position: absolute;
    cursor: grab;
}

#rp-lightbox.desktop img {
    transition: opacity 0.2s;
    cursor: zoom-in;
}
#rp-lightbox.desktop img.zoomed {
    position: absolute;
    top: 0;
    left: 0;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    transition: none;
    cursor: grab;
}
#rp-lightbox.desktop img.zoomed:active { cursor: grabbing; }

#rp-lightbox.mobile img {
    touch-action: none;
    transition: transform .1s linear;
}

#rp-lightbox .lightbox-close {
    position: absolute;
    display: block;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: #221f1f;
    transition: background-color .3s;
    cursor: pointer;
}
#rp-lightbox .lightbox-close * { cursor: pointer; }
#rp-lightbox .lightbox-close path { transition: stroke .3s; }
#rp-lightbox .lightbox-close:hover { background: #eaeaea; }
#rp-lightbox .lightbox-close:hover path { stroke: #221f1f; }
#rp-lightbox .lightbox-spinner {
    display: none;
    position: absolute;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #fff;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* </editor-fold> */

/*todo: прибрати це діло, коли стилі попапу переїдуть до style.css*/
.popup {
    width: 469px;
    padding: 32px;
    border-radius: 8px;
}
.popup .popup-close {
    padding: 0;
    background: none;
    border-radius: 0;
}
.popup .popup-close:hover { background: #eaeaea; }
.popup .popup-close:hover svg path { stroke: #221f1f; }
.popup .form-title { padding-bottom: 24px; }
.popup .popup-container { padding-top: 24px; }
.popup .form-v3 .input-block { padding-top: 0; }
.popup .form-v3 .btn-wrapper { padding-top: 8px; }
.popup .personal-data-agreement {
    max-width: 400px;
    padding-top: 16px;
    color: #585757;
}

@media (max-width: 576px) {
    .popup {
        width: 95%;
        padding: 20px;
    }
}
