@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --text: #fff;
    --text-grey: #babbb7;
    --text-grey-dark: #767a7e;
    --bg-btn: #24262a;
    --dark: #0a0d0e;
}

/* ===== page base ===== */

html {
    overflow-x: hidden;
    overflow-y: hidden;
    height: 100%;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100%;
}

body.admin-bar .header_wrapp,
body.admin-bar .header_bg,
body.admin-bar .legal-page,
body.admin-bar .legal-page--single {
    overflow: visible !important;
}

.wrapper,
.site,
.site-content,
.main,
main {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

.header_wrapp {
    height: auto !important;
    min-height: 0 !important;
    background-image: none !important;
    background-size: initial !important;
    background-position: initial !important;
    background-repeat: repeat !important;
}

.legal-page--single {
    background: #f7f7f7;
    overflow: visible !important;
}
.legal-page,
.legal-page--single,
.legal-page-section,
.legal-page-container,
.legal-page-content {
    min-height: 0;
    max-height: none;
    height: auto;
}
.legal-page-section {
    padding: 72px 0 120px;
}

.legal-page-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.legal-page-title {
    font-family: 'Gilroy', sans-serif;
    font-size: 56px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 72px;
}

.legal-page-content {
    max-width: 100%;
    color: var(--dark);
    overflow: visible !important;
}

.legal-page-content,
.legal-page-content * {
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box;
}

.legal-page-content p,
.legal-page-content li,
.legal-page-content h2,
.legal-page-content h3,
.legal-page-content h4 {
    font-family: 'EB Garamond', serif;
    color: var(--dark);
    word-break: break-word;
    overflow-wrap: break-word;
}

.legal-page-content p,
.legal-page-content li {
    font-size: 22px;
    line-height: 1.35;
    margin-bottom: 12px;
}

.legal-page-content h2,
.legal-page-content h3,
.legal-page-content h4 {
    font-size: 30px;
    line-height: 1.2;
    margin: 30px 0 16px;
}

.legal-page-content ul,
.legal-page-content ol {
    margin: 0 0 20px 24px;
}

/* ===== footer fixes ===== */

.footer {
    overflow-x: hidden;
}

.footer_bottom {
    align-items: center;
}

.footer_legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
}

.footer_legal a {
    white-space: normal;
    word-break: break-word;
}

/* ===== tablet ===== */

@media (max-width: 850px) {
    .legal-page-section {
        padding: 40px 0 72px;
    }

    .legal-page-title {
        font-size: 38px;
        margin-bottom: 40px;
    }

    .legal-page-content p,
    .legal-page-content li {
        font-size: 18px;
    }

    .legal-page-content h2,
    .legal-page-content h3,
    .legal-page-content h4 {
        font-size: 24px;
    }
}

/* ===== mobile ===== */

@media (max-width: 530px) {
    .header_wrapp {
        height: auto !important;
        min-height: 0 !important;
    }

    .header {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .header_bg {
        min-height: auto !important;
    }

    .header_logo-link {
        height: 40px;
    }

    .header_nav {
        align-items: center;
    }

    .header_lang {
        font-size: 14px;
    }

    .container,
    .legal-page-container {
        width: 100%;
        max-width: 100%;
        padding-left: 14px;
        padding-right: 14px;
        box-sizing: border-box;
    }

    .legal-page-section {
        padding: 24px 0 48px;
    }

    .legal-page-title {
        font-size: 24px;
        line-height: 1.15;
        margin-bottom: 24px;
    }

    .legal-page-content p,
    .legal-page-content li {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .legal-page-content h2,
    .legal-page-content h3,
    .legal-page-content h4 {
        font-size: 18px;
        line-height: 1.25;
        margin: 20px 0 10px;
    }

    .legal-page-content ul,
    .legal-page-content ol {
        margin: 0 0 16px 18px;
    }

    .footer_bottom {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 14px;
        text-align: center;
    }

    .footer_copy {
        flex: unset;
        width: 100%;
        text-align: center;
    }

    .footer_legal {
        flex: unset;
        width: 100%;
        justify-content: center;
        align-items: center;
        gap: 10px 14px;
        text-align: center;
    }

    .footer_socials {
        flex: unset;
        width: 100%;
        justify-content: center;
    }
}
