/**
 * Copyright (c) D Cube Consulting Ltd. All rights reserved.
 */
:root {
    --site-footer-height: 44px;
    --site-footer-bg: var(--background-color-secondary, #f3f2f1);
    --site-footer-text: var(--text-color-main, #0b0c0c);
    --site-footer-link: var(--link, #1d70b8);
    --site-footer-border: var(--primary, #1d70b8);
}

.site-footer-root {
    position: relative;
    z-index: 1020;
}

.site-footer-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1020;
    min-height: var(--site-footer-height);
    background: var(--site-footer-bg);
    border-top: 3px solid var(--site-footer-border);
    color: var(--site-footer-text);
    transform: translateY(0);
    transition: transform 0.35s ease, opacity 0.35s ease;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

.site-footer-bar.is-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.site-footer-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    min-height: var(--site-footer-height);
    padding: 8px 16px;
    font-size: 0.875rem;
    line-height: 1.4;
}

.site-footer-bar__copyright {
    flex: 1 1 auto;
    min-width: 0;
}

.site-footer-bar__links-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-bar__links-list a,
.site-footer-bar__copyright a {
    color: var(--site-footer-link);
    text-decoration: underline;
}

.site-footer-bar__links-list a:hover,
.site-footer-bar__copyright a:hover {
    color: var(--site-footer-text);
}

body.has-site-footer-bar {
    padding-bottom: calc(var(--site-footer-height) + env(safe-area-inset-bottom, 0px));
}

.site-footer-legals-panel {
    position: fixed;
    inset: 0;
    z-index: 1045;
    display: none;
    pointer-events: none;
}

.site-footer-legals-panel.is-open {
    display: block;
    pointer-events: auto;
}

.site-footer-legals-panel__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.site-footer-legals-panel__sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 70vh;
    overflow: auto;
    background: var(--site-footer-bg);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.site-footer-legals-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.site-footer-legals-panel__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.site-footer-legals-panel__close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    padding: 4px 8px;
}

.site-footer-legals-panel__body {
    padding: 12px 16px 20px;
}

.site-footer-legals-panel__copyright {
    margin: 0 0 12px;
}

.site-footer-legals-panel__links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-legals-panel__links li + li {
    margin-top: 10px;
}

.site-footer-legals-panel__links a,
.site-footer-legals-panel__copyright a {
    color: var(--site-footer-link);
    text-decoration: underline;
    font-size: 1rem;
}

.site-footer-legals-nav-item > a.is-active {
    color: var(--yg-floating-menu-active, var(--primary, #1d70b8)) !important;
}

@media (max-width: 767.98px) {
    .site-footer-bar {
        display: none !important;
    }

    body.has-site-footer-bar {
        padding-bottom: 0;
    }

    body.hh-yg-mobile-menu-floating-bar .site-footer-legals-panel.is-open .site-footer-legals-panel__sheet {
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 768px) {
    .site-footer-legals-nav-item {
        display: none !important;
    }

    .site-footer-legals-panel {
        display: none !important;
    }
}
