.login-legal {
    position: fixed;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12.5px;
    color: #6a655d;
    z-index: 1;
}

.login-legal button {
    background: none;
    border: none;
    color: #8a8478;
    font-size: 12.5px;
    padding: 4px 6px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.login-legal button:hover { color: #ff9d5c; }

.login-legal .sep { color: #4a463f; }

#legalOverlay {
    position: fixed;
    inset: 0;
    z-index: 9600;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px);
}

#legalOverlay.visible {
    display: flex;
    animation: winOpen .18s ease both;
}

.legal-panel {
    width: min(680px, 100%);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: #16181d;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
    overflow: hidden;
}

.legal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    color: #ece8e0;
    font-size: 14px;
    font-weight: 600;
}

.legal-close {
    background: none;
    border: none;
    color: #9a978f;
    font-size: 18px;
    width: 32px;
    height: 28px;
    border-radius: 6px;
}

.legal-close:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.legal-body {
    overflow-y: auto;
    padding: 22px;
    color: #ded9d0;
    font-size: 14px;
    line-height: 1.65;
}

.legal-body h1,
.legal-content h1 { font-size: 22px; margin-bottom: 14px; }

.legal-body h2,
.legal-content h2 {
    font-size: 15px;
    margin: 20px 0 8px;
    color: var(--accent, #ff7a3c);
}

.legal-body p,
.legal-content p { margin-bottom: 11px; }

.legal-body ul,
.legal-content ul { margin: 8px 0 12px 22px; }

.legal-body li,
.legal-content li { margin-bottom: 4px; }

.legal-note {
    background: rgba(255, 122, 60, .12);
    border-left: 3px solid var(--accent, #ff7a3c);
    border-radius: 6px;
    padding: 10px 13px;
    font-size: 12.5px;
    color: #d8cfc2 !important;
}
