.license-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--card-bg, #ffffff);
    color: var(--text-main, #1f1f1f);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 3000;
    max-width: 90%;
    width: 400px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color, #e0e0e0);
}

.license-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.license-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--accent, #1a73e8);
    display: inline-block;
}

.license-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-main);
}

.license-footer {
    text-align: right;
}

.license-close-btn {
    background: var(--accent, #1a73e8);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.license-close-btn:hover {
    opacity: 0.9;
}

.license-trigger {
    cursor: pointer;
    color: var(--accent, #1a73e8);
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
}

body.dark-mode .license-trigger {
    color: #8ab4f8 !important;
}
