.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: var(--bg-card);
    border: 1px solid var(--silver-border);
    padding: 20px;
    border-radius: 16px;
    display: none;
    z-index: 5000;
    backdrop-filter: blur(12px)
}

.cookie-banner.show {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center
}

.cookie-banner-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .05);
    font-size: 28px;
    flex-shrink: 0;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: none;
    place-items: center;
    z-index: 6000
}

.cookie-modal.show {
    display: grid
}

.cookie-panel {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 16px;
    max-width: 420px;
    width: 90%;
    border: 1px solid var(--silver-border)
}

.cookie-panel {
    position: relative;
}

.cookie-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--silver-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.cookie-close:hover {
    color: #fff;
}

/* Responsive cookie policy */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden
}

@media (max-width:768px) {
    .top-bar {
        padding: 7px 12px
    }

    .top-bar-content {
        gap: 8px;
        line-height: 1.35
    }

    .top-bar-content>span {
        min-width: 0;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical
    }

    .top-bar-link {
        flex: 0 0 auto;
        white-space: nowrap
    }

    .navbar {
        height: auto;
        min-height: 68px
    }

    .nav-container {
        min-height: 68px;
        padding: 10px 16px;
        gap: 12px
    }

    .brand-logo {
        min-width: 0;
        gap: 8px
    }

    .logo-icon {
        width: 34px;
        height: 34px;
        flex: 0 0 34px
    }

    .logo-title {
        font-size: 1.2rem
    }

    .logo-subtitle {
        font-size: .46rem;
        letter-spacing: 1.7px
    }

    .nav-container>.btn {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 9px 12px;
        font-size: .68rem
    }

    .legal-page {
        padding: 32px 0 60px;
        min-height: 0
    }

    .legal-page .container {
        width: min(100% - 24px, var(--max-width, 1200px))
    }

    .back-link {
        margin-bottom: 16px;
        font-size: .82rem
    }

    .legal-card {
        width: 100%;
        max-width: none;
        padding: 24px 18px;
        border-radius: 14px
    }

    .legal-header {
        padding-bottom: 18px;
        margin-bottom: 22px
    }

    .subheading {
        display: block;
        font-size: .62rem;
        line-height: 1.5;
        letter-spacing: 1.6px
    }

    .legal-title {
        font-size: clamp(1.7rem, 8vw, 2.1rem);
        line-height: 1.15
    }

    .legal-body h2 {
        font-size: 1.15rem;
        line-height: 1.3;
        margin: 24px 0 10px
    }

    .legal-body p,
    .legal-body ul {
        font-size: .88rem;
        line-height: 1.65
    }

    .size-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch
    }

    .size-table {
        min-width: 560px;
        font-size: .78rem
    }

    .size-table th,
    .size-table td {
        padding: 10px 12px;
        vertical-align: top
    }

    .footer {
        padding: 34px 0 22px
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px
    }

    .legal-links {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 16px
    }

    .scroll-top-btn {
        width: 44px;
        height: 44px;
        right: 14px;
        bottom: max(14px, env(safe-area-inset-bottom))
    }

    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        padding: 16px;
        border-radius: 14px;
        gap: 12px;
        align-items: stretch;
        flex-direction: column;
        max-height: calc(100svh - 20px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch
    }

    .cookie-banner.show {
        display: flex
    }

    .cookie-banner-icon {
        width: 44px;
        height: 44px;
        font-size: 22px
    }

    .cookie-content p {
        font-size: .78rem;
        line-height: 1.5
    }

    .cookie-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px
    }

    .cookie-actions .btn {
        width: 100%;
        min-height: 44px
    }

    .cookie-modal {
        padding: 10px;
        overflow-y: auto
    }

    .cookie-panel {
        width: min(100%, 430px);
        max-width: 100%;
        max-height: calc(100svh - 20px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 22px 17px;
        border-radius: 14px
    }

    .cookie-panel h2 {
        padding-right: 32px;
        font-size: 1.25rem;
        line-height: 1.25
    }

    .cookie-panel p,
    .cookie-panel label {
        font-size: .86rem;
        line-height: 1.5
    }

    .cookie-panel input[type=checkbox] {
        width: 18px;
        height: 18px;
        vertical-align: middle;
        margin-right: 6px
    }

    .cookie-panel .btn {
        width: 100%;
        min-height: 44px
    }

    .cookie-close {
        top: 8px;
        right: 10px;
        width: 42px;
        height: 42px;
        font-size: 1.8rem
    }
}

@media(max-width:420px) {
    .top-bar-content>span {
        -webkit-line-clamp: 1
    }

    .logo-subtitle {
        display: none
    }

    .nav-container>.btn {
        font-size: .62rem;
        padding: 8px 9px
    }

    .legal-page .container {
        width: calc(100% - 18px)
    }

    .legal-card {
        padding: 20px 14px
    }

    .legal-title {
        font-size: 1.65rem
    }

    .legal-body p,
    .legal-body ul {
        font-size: .84rem
    }

    .cookie-banner {
        left: 7px;
        right: 7px;
        bottom: max(7px, env(safe-area-inset-bottom));
        padding: 13px
    }

    .cookie-panel {
        padding: 20px 14px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important
    }
}