/*
 * Уведомление об использовании cookie (templates/include/cookie-notice.html) — полоса на всю ширину внизу экрана,
 * на всех страницах. Лежит вне main, поэтому стили перенесённых страниц (.legacy-content) её не задевают.
 * z-index выше шапки и панелей меню (30, static/css/site-nav.css).
 */
.cookie-notice {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    padding: 20px 0 calc(20px + env(safe-area-inset-bottom));
    border-top: 1px solid #282e3e;
    background: var(--color-card);
    box-shadow: 0 -8px 24px rgba(4, 17, 31, .35);
    color: var(--color-text);
}

.cookie-notice[hidden] {
    display: none;
}

.cookie-notice__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
}

.cookie-notice__text {
    margin: 0;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.5;
}

.cookie-notice__link {
    color: var(--color-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-notice__link:hover {
    text-decoration: none;
}

.cookie-notice__accept {
    flex-shrink: 0;
    cursor: pointer;
}

@media (max-width: 640px) {
    .cookie-notice__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cookie-notice__text {
        font-size: 14px;
    }
}
