.legal-footer {
    border-top: 1px solid rgba(18, 35, 59, 0.14);
    background: rgba(255, 255, 255, 0.82);
    padding: 18px 0;
}

.legal-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.legal-footer__copy {
    color: #4e6077;
    font-size: 0.875rem;
}

.legal-footer__links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.legal-footer__links a,
.legal-link-btn {
    color: #29486a;
    text-decoration: none;
}

.legal-footer__links a:hover,
.legal-link-btn:hover {
    color: #10233b;
    text-decoration: underline;
}

.legal-link-btn {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

body.cookie-consent-open {
    overflow: hidden;
}

.cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 1200;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 23, 41, 0.62);
    backdrop-filter: blur(2px);
}

.cookie-consent__card {
    position: relative;
    width: min(620px, 100%);
    border: 2px solid rgba(18, 35, 59, 0.24);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 22px 56px rgba(16, 35, 59, 0.35);
    padding: 18px;
    animation: cookie-pop 0.22s ease-out;
}

.cookie-consent[data-blocking="false"] {
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
}

.cookie-consent[data-blocking="false"] .cookie-consent__backdrop {
    display: none;
}

.cookie-consent[data-blocking="false"] .cookie-consent__card {
    width: min(470px, calc(100vw - 32px));
    pointer-events: auto;
    border-width: 1px;
    box-shadow: 0 18px 42px rgba(16, 35, 59, 0.2);
}

.cookie-consent__title {
    margin: 0 0 8px;
    font-size: 1.08rem;
    color: #10233b;
    font-weight: 700;
}

.cookie-consent__lead {
    margin: 0 0 8px;
    color: #c03b1f;
    font-size: 0.9rem;
    font-weight: 600;
}

.cookie-consent__text {
    margin: 0;
    color: #4e6077;
    font-size: 0.94rem;
    line-height: 1.42;
}

.cookie-consent__text a {
    color: #1b7cff;
}

.cookie-consent__controls {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cookie-btn {
    border-radius: 11px;
    border: 1px solid rgba(18, 35, 59, 0.2);
    background: #fff;
    color: #1f3655;
    padding: 9px 12px;
    font-size: 0.9rem;
    line-height: 1.1;
    cursor: pointer;
}

.cookie-btn:hover {
    background: #f5f9ff;
}

.cookie-btn--primary {
    background: linear-gradient(135deg, #ff6a2c, #1b7cff);
    color: #fff;
    border: 0;
}

.cookie-btn--primary:hover {
    filter: brightness(1.05);
}

.cookie-btn--link {
    border: 0;
    background: transparent;
    color: #29486a;
    padding-left: 0;
}

.cookie-panel {
    margin-top: 10px;
    border-top: 1px dashed rgba(18, 35, 59, 0.22);
    padding-top: 10px;
}

.cookie-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.9rem;
    color: #304663;
}

.cookie-row + .cookie-row {
    margin-top: 6px;
}

.cookie-switch {
    width: 40px;
    height: 22px;
}

@keyframes cookie-pop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
