@import url('theme.css');
/* Footer */
[dir] .footer {
    margin: 0;
    padding: 0;
}

.footer-main {
    background-color: #FFFFFF;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.footer-signup {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 1.25rem 6.25rem 1.25rem;
    background-color: var(--gray_150)
}

.footer-signup__text {
    display: flex;
    flex-direction: column;
}

.footer-signup__text-title,
.footer-signup__text-subtitle {
    font-weight: var(--font-bold);
    line-height: 1.33;
    letter-spacing: var(--letter-spacing);
    font-size: 1.5rem;
    text-align: center;
}

.footer-signup__button {
   margin-top: 2.313rem;
}

[dir] .footer-signup__button-text {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    font-size: 16px;
    font-weight: var(--font-bold);
    padding: 0 24px;
    height: 40px;
}

.footer-nav {
    margin-bottom: 0.75rem;
    padding: 0.4rem 1.25rem 0 1.25rem;
}

.footer-nav__logo {
    width: 112px;
    height: 20px;
    background-size: 112px 20px;
    background-repeat: no-repeat;
    margin-top: 2.188rem;
    margin-bottom: 3.25rem;
}

[dir] .footer-nav__list {
    list-style: none;
    padding-inline-start: 0;
    margin-bottom: 0;
}

.footer-nav__item {
    font-weight: var(--font-bold);
    margin: 2.125rem 0;
    display: flex;
    align-items: center;
    position: relative;
    justify-content: space-between;
}

.footer-nav__list > .footer-nav__item:last-of-type {
    border-top: 1px solid var(--gray_200);
    padding-top: 1rem;
    padding-right: 0;
    flex-basis: auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    margin-left: auto;
}

.footer-nav__item:last-of-type > a {
    padding: 1.063rem 0;
}

.footer-nav__corporate-link {
    display: flex;
    align-items: center;
}

.footer-nav__text {
    position: relative;
    width: 100%;
    font-size: 1rem;
}

.footer-nav__icon::after {
    display: inline-block;
    content: ' ';
    position: absolute;
    right: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background-size: 24px;
    transition: transform 400ms ease-in-out;
}

.footer-nav__icon-dev::after {
    display: inline-block;
    content: ' ';
    position: relative;
    margin-left: auto;
    width: 24px;
    height: 24px;
    background-size: 24px;
}

/* Submenu */

[dir] .footer-submenu {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.footer-submenu > .footer-submenu__item {
    margin: 1.625rem 0;
}

.footer-submenu > .footer-submenu__item:last-of-type {
    margin: 0.25rem 0;
}

.footer-submenu__text {
    font-size: 1rem;
    font-weight: var(--font-normal);
    font-stretch: normal;
    letter-spacing: var(--letter-spacing-none);
}

.footer-nav__main-text {
    cursor: pointer;
    user-select: none;
}

.footer-nav__main-text a {
    color: #1B1E26;
}

/* Hover and focus state */

[dir] .footer-submenu-active {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

.footer-nav-active::after {
   transform: rotate(180deg);
   transition: transform 400ms ease-in-out;
}

.footer-info {
    margin: 0 1.25rem;
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-bottom: 1px solid var(--gray_200);
}

.footer-info__links {
    display: flex;
}

.footer-info__links > a {
    color: var(--text-600);
}

.footer-info__links > a:hover,
.footer-info__links > a:focus {
    color: var(--text-600);
}

.footer-info__text {
    font-size: 0.875rem;
    font-weight: var(--font-bold);
    line-height: 1.43;
}

.footer-info__text--about-us {
    margin-right: 1.25rem;
}

.footer-info__text--language {
    display: flex;
    align-items: center;
}

.footer-info__text--language::before {
    display: inline-block;
    content: ' ';
    width: 20px;
    height: 20px;
    background-size: 20px;
    margin-right: 0.25rem;
}

/* Legal section */
.footer-legal {
    margin: 1.25rem 0 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    height: 47px; 
}

.footer-legal__text {
    font-size: 0.813rem;
}

.footer-legal__text-link {
    margin-bottom: 0.625rem;
}

.footer-legal__text-link > a {
    font-size: 0.875rem;
}

.footer-legal__terms-of-use {
    margin-right: 1.25rem;
}

[dir] .scroll-to-top {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 100px;
    right: 1rem;
    width: 64px;
    height: 64px;
    border: 1px solid var(--gray_300);
    border-radius: 0;
    background-color: #FFFFFF;
    cursor: pointer;
    opacity: 0;
    transform: translateY(100px);
    transition: all 500ms ease;
}

[dir] .scroll-to-top:hover {
    border-color: var(--text-600);
}

.scroll-to-top__logo {
    display: flex;
    align-items: center;
}

.scroll-to-top__logo::after {
    display: inline-block;
    content: ' ';
    width: 32px;
    height: 32px;
    background-size: 32px;
}

/* Tablet */

@media only screen and (min-width: 768px) {
    .footer-signup {
        padding: 3.5rem 14rem;
    }

    .footer-signup__text {
        flex-direction: row;
    }

    .footer-signup__text-title,
    .footer-signup__text-subtitle {
        font-size: 1.5rem;
    }

    .footer-signup__button {
        margin-top: 1rem;
    }

    [dir] .footer-signup__button-text {
        font-size: 0.75rem;
        height: 32px;
        padding: 0 21px;
    }

    .footer-nav {
        padding: 0 2.5rem;
    }
    
    .footer-nav__logo {
        margin-bottom: 2.188rem;
    }

    [dir] .footer-nav__list {
        padding: 0.56rem 0;
    }

    .footer-nav__list > .footer-nav__item:last-of-type {
        padding-top: 0.875rem;
        margin-top: 0.5rem;
    }

    .footer-info {
        margin: 0 2.5rem;
    }

    .footer-legal {
        margin-left: 2.5rem;
    }

    .footer-legal__privacy-policy {
        margin-right: 0.25rem;
    }
}

/* Desktop */

@media only screen and (min-width: 1024px) {
    .footer-signup {
        padding: 7.5rem 4rem;
    }

    .footer-signup__text {
        flex-direction: column;
        align-items: center;
    }

    .footer-signup__text-title,
    .footer-signup__text-subtitle {
        font-weight: var(--font-bold);
        font-size: 3rem;
    }

    .footer-signup__button {
        margin: 2rem 8.75rem 0 8.875rem;
    }

    [dir] .footer-signup__button-text {
        font-size: 1.375rem;
        padding: 0 40px;
        height: 64px;
    }

    .footer-info {
        margin: 0 auto;
        width: 94%;
        padding: 15px 0 !important;
        max-width: 1440px;       
    }

    .footer-info__text {
        font-size: 1rem;
        line-height: 1.5;
    }

    .footer-info__text--language::before {
        width: 24px;
        height: 24px;
        background-size: 24px;
        margin-right: 0.5rem;
    }

    .footer-nav__icon::after {
        content: none;
    }

    .footer-nav__list > .footer-nav__item:last-of-type {
        border-top: none;
        padding-top: 0;
        padding-right: 0;
        margin-top: 0;
        margin-left: auto;
        justify-content: flex-start;
    }

    .footer-nav__item:last-of-type > a {
        padding: 0;
        margin-bottom: 20px;
    }

    .footer-nav__text {
        font-size: 1.125rem;
    }

    [dir] .footer-submenu {
        display: block;
    }

    .footer-submenu > .footer-submenu__item {
        padding-left: 0;
        margin: 1rem 0;
    }

    .footer-nav__icon-dev::after {
        top: auto;
        right: auto;
        bottom: 0;
        margin-left: 0.375rem;
    }

    .footer-nav__corporate-link {
        margin-bottom: 20px;
    }

    .footer-nav {
        margin: 0 auto;
        width: 100%;
        max-width: 1440px;
        padding: 0 40px;
    }

    .footer-nav__logo {
        margin: 3.188rem 0;
    }

    [dir] .footer-nav__list {
        position: relative;
        display: flex;
        justify-content: flex-start;
        margin-bottom: 0;
        margin-top: 1.5rem;
    }

    .footer-nav__item {
        flex-basis: 240px;
        flex-grow: 0;
        flex-shrink: 1;
        align-self: stretch;
        display: flex;
        align-items: flex-start;
        padding: 0 2.5rem 3.063rem 0;
        font-size: 1rem;
        margin: 0;
    }

    .footer-submenu__text {
        font-size: 1rem;
    }

    .footer-legal {
        flex-direction: row-reverse;
        justify-content: space-between;
        margin: 0 auto;
        width: 100%;
        max-width: 1440px;
        padding: 16px 40px 68px;
    }
    
    .footer-legal__wrapper { 
        width: 100%;
    }

    .footer-legal__text,
    .footer-legal__text-link > a {
        font-size: 1rem;
    }  
}

@media only screen and (min-width: 1366px) {

    .footer-signup {
        padding: 7.5rem 15rem;
    }

    .footer-legal {
        background-color: #FFFFFF;
    }
}

@media only screen and (min-width: 1480px) {
    .footer-nav,
    .footer-info,
    .footer-legal {
        margin: 0 auto;
        width: 100%;
        max-width: 1440px;
        padding: 0;
    }

    .footer-legal {
        padding-top: 16px;
        padding-bottom: 68px;
    }
}

@media only screen and (min-width: 1920px) {
    .footer-signup {
        padding: 7.5rem 20rem;
    }
}