/* Legal Modal Styles */
.legal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.legal-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.legal-modal-content {
    background: #fff;
    width: 90%;
    max-width: 800px;
    height: 85vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.legal-modal-overlay.show .legal-modal-content {
    transform: scale(1);
}

.legal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color, #2C5F2D);
    margin: 0;
    font-family: var(--font-serif, serif);
}

.legal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

.legal-close:hover {
    color: #333;
}

.legal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
}

.legal-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.legal-body ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-footer {
    padding: 1rem 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.legal-footer button {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    background: var(--primary-color, #2C5F2D);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.legal-footer button:hover {
    background: var(--primary-dark, #1e4220);
}

/* Dark Mode Support */
[data-theme="dark"] .legal-modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
}

[data-theme="dark"] .legal-header,
[data-theme="dark"] .legal-footer {
    border-color: #333;
}

[data-theme="dark"] .legal-header h2 {
    color: #eee;
}

[data-theme="dark"] .legal-body {
    color: #ccc;
}
