
/* v23-v24: legal, cookie banner, polish and final cleanup */
.legal-footer {
    margin: 22px 0 0;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,.82);
    box-shadow: var(--shadow);
    display: flex;
    gap: 12px 18px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: .92rem;
}
.legal-footer nav { display:flex; gap: 12px 16px; flex-wrap: wrap; }
.legal-footer a { color: var(--brand-dark); font-weight: 700; }
.cookie-consent {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    max-width: 860px;
    margin: 0 auto;
    z-index: 20000;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.96);
    box-shadow: 0 26px 80px rgba(15, 23, 42, .22);
    display: none;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(14px);
}
.cookie-consent.open { display: flex; }
.cookie-consent strong { display:block; margin-bottom: 5px; color: var(--text); }
.cookie-consent p { color: var(--muted); line-height:1.5; margin:0; }
.cookie-actions { display:flex; gap:10px; flex-wrap: wrap; flex:0 0 auto; }
.cookie-actions .ghost-btn, .cookie-actions .primary-btn { white-space: nowrap; }
.clean-empty-state {
    padding: 26px;
    border-radius: 22px;
    border: 1px dashed var(--line-strong);
    background: rgba(247,250,255,.8);
    color: var(--muted);
    text-align:center;
}
body.dark-mode .legal-footer,
body.dark-mode .cookie-consent,
body.dark-mode .clean-empty-state {
    background: rgba(20, 28, 44, .94) !important;
    border-color: rgba(148, 163, 184, .20) !important;
    color: #aebbd0 !important;
    box-shadow: 0 24px 70px rgba(0,0,0,.34) !important;
}
body.dark-mode .legal-footer a,
body.dark-mode .cookie-consent strong { color: #edf3ff !important; }
body.dark-mode .cookie-consent p { color: #aebbd0 !important; }
@media (max-width: 720px) {
    .cookie-consent { align-items: stretch; flex-direction: column; left: 10px; right: 10px; bottom: 10px; }
    .cookie-actions { width:100%; }
    .cookie-actions button, .cookie-actions a { flex:1; justify-content:center; }
    .legal-footer { flex-direction: column; align-items: flex-start; }
}
