/* Citadel — footer legal links & modals */

.citadel-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.75rem;
    margin-top: 0.85rem;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.citadel-footer-legal-btn,
.citadel-footer-legal a.citadel-footer-legal-btn {
    background: none;
    border: none;
    padding: 0;
    color: #64748b;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
    font: inherit;
}

.citadel-footer-legal-btn:hover {
    color: #f59e0b;
}

.citadel-footer-legal-sep {
    color: #334155;
    user-select: none;
}

.citadel-legal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.citadel-legal-backdrop.is-open {
    display: flex;
}

.citadel-legal-modal {
    width: 100%;
    max-width: 38rem;
    max-height: min(85vh, 680px);
    background: rgba(10, 18, 35, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.citadel-legal-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.citadel-legal-modal-body {
    padding: 1.25rem 1.5rem 1.5rem;
    overflow-y: auto;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #94a3b8;
}

.citadel-legal-modal-body h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #e2e8f0;
    margin: 1.25rem 0 0.5rem;
}

.citadel-legal-modal-body h3:first-child {
    margin-top: 0;
}

.citadel-legal-modal-body p {
    margin-bottom: 0.75rem;
}

.citadel-legal-modal-body ul {
    margin: 0.5rem 0 0.75rem 1.1rem;
    list-style: disc;
}

.citadel-legal-modal-body li {
    margin-bottom: 0.35rem;
}

.citadel-legal-modal-body a {
    color: #f59e0b;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.citadel-legal-close {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.citadel-legal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
