.legal-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.legal-modal-overlay.is-active {
    display: flex;
}

.legal-modal-box {
    background: #fff;
    border-radius: 16px;
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2.5rem 2rem;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    animation: legalSlideIn 0.25s ease;
}

@keyframes legalSlideIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.legal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-secondary, #666);
    transition: color 0.2s;
}

.legal-close:hover {
    color: var(--brand-accent, #C96A2B);
}

#legal-modal-content p {
    color: var(--text-body, #444);
    line-height: 1.75;
    margin-bottom: 0.5rem;
}

#legal-modal-content a {
    color: var(--brand-accent, #C96A2B);
}
