@font-face {
    font-family: "Roboto Legal";
    src: url("/bitrix/templates/belmash/css/fonts/Roboto-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Roboto Legal";
    src: url("/bitrix/templates/belmash/css/fonts/Roboto-Medium.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Roboto Legal";
    src: url("/bitrix/templates/belmash/css/fonts/Roboto-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

.legal-document {
    color: #171717;
    font-family: "Roboto Legal", Roboto, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.legal-document p {
    margin: 0 0 14px;
    font: inherit;
}

.legal-document__title {
    margin: 0 0 12px;
    font-family: "Roboto Legal", Roboto, Arial, sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.15;
}

.legal-document__revision {
    margin-bottom: 22px !important;
    color: #5d6672;
}

.legal-document__section {
    margin: 30px 0 14px;
    color: #171717;
    font-family: "Roboto Legal", Roboto, Arial, sans-serif;
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 700;
    line-height: 1.25;
}

.legal-document__subsection {
    font-weight: 600 !important;
}

.legal-document__bullet {
    position: relative;
    padding-left: 22px;
}

.legal-document__bullet::before {
    position: absolute;
    left: 4px;
    content: "–";
}

.legal-document a {
    color: #005baa;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-document__approval-title {
    margin-top: 16px;
    font-weight: 700;
}

.legal-document__previous {
    margin: 0 0 28px;
    padding: 14px 18px;
    border: 1px solid #dce2e8;
    border-radius: 10px;
    background: #f7f9fb;
}

.legal-document__previous summary {
    color: #005baa;
    cursor: pointer;
    font-weight: 600;
}

.legal-document__previous[open] summary {
    margin-bottom: 18px;
}

.legal-document__previous h2 {
    font-family: "Roboto Legal", Roboto, Arial, sans-serif;
    font-weight: 700;
}

.legal-document__previous p,
.legal-document__previous li {
    font-family: "Roboto Legal", Roboto, Arial, sans-serif;
    font-weight: 400;
}

.legal-document__table-wrap {
    margin: 20px 0 28px;
    overflow-x: auto;
}

.legal-document table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.legal-document th,
.legal-document td {
    padding: 12px 14px;
    border: 1px solid #cfd6dd;
    vertical-align: top;
    text-align: left;
}

.legal-document th {
    background: #eef3f7;
    font-weight: 700;
}

.legal-consent-section {
    scroll-margin-top: 24px;
}

.bm-legal-consents {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    font-family: "Roboto Legal", Roboto, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.35;
}

.bm-legal-consent {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    cursor: pointer;
}

.bm-legal-consent input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #005baa;
}

.bm-legal-consent a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body #ns-cookiesaccept.bm-cookie-consent {
    box-sizing: border-box !important;
    position: fixed !important;
    left: 12px !important;
    bottom: 12px !important;
    z-index: 100001 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
    align-items: center !important;
    width: min(660px, calc(100% - 24px)) !important;
    max-width: none !important;
    padding: 10px 12px !important;
    color: #fff !important;
    background: #1a4f99 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .24) !important;
    font-family: "Roboto Legal", Roboto, Arial, sans-serif !important;
}

.bm-cookie-consent__text {
    font-size: 12px;
    line-height: 1.35;
}

.bm-cookie-consent__text a {
    color: #fff;
    text-decoration: underline;
}

.bm-cookie-consent__choices {
    display: flex;
    gap: 6px;
    align-items: center;
    white-space: nowrap;
}

.bm-cookie-consent__button {
    min-height: 32px;
    padding: 6px 10px;
    border: 0;
    border-radius: 5px;
    color: #171717;
    background: #fff;
    cursor: pointer;
    font: 600 11px/1.2 "Roboto Legal", Roboto, Arial, sans-serif;
}

.bm-cookie-consent__button--secondary {
    color: #fff;
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}

.bm-legal-dialog {
    width: min(900px, calc(100% - 24px));
    height: min(760px, calc(100% - 24px));
    padding: 0;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .35);
}

.bm-legal-dialog::backdrop {
    background: rgba(0, 0, 0, .55);
}

.bm-legal-dialog__close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-size: 24px;
}

.bm-legal-dialog iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 700px) {
    .legal-document {
        font-size: 14px;
    }

    body #ns-cookiesaccept.bm-cookie-consent {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        left: 50% !important;
        right: auto !important;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        transform: translateX(-50%) !important;
    }

    .bm-cookie-consent__choices {
        display: grid;
        grid-template-columns: 1fr 1fr;
        white-space: normal;
    }

    .bm-cookie-consent__button {
        width: 100%;
    }
}
