/* --- Legend Modal Content Styles --- */

.legend-card {
    max-width: 650px;
    margin: 0 auto;
    padding: 25px;
}

.legend-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.legend-header h2 {
    font-size: 2rem;
    color: #2b1f11;
}

.legend-body {
    font-size: 1.1rem;
    line-height: 1.6;
}

.legend-body p {
    margin-bottom: 20px;
}

.legend-section-title {
    margin-bottom: 10px;
    color: #2b1f11;
    text-transform: none;
    font-size: 1.5rem;
}

.legend-subtitle {
    margin-bottom: 15px;
    font-size: 1rem;
}

.legend-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 25px;
    -webkit-overflow-scrolling: touch;
}

@media screen and (max-width: 600px) {
    .legend-header h2 {
        font-size: 1.5rem;
        overflow-wrap: normal;
        word-break: keep-all;
    }
    .legend-table-wrapper {
        -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
        mask-image: linear-gradient(to right, black 85%, transparent 100%);
    }
}

.legend-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 400px;
}

.legend-table th,
.legend-table td {
    text-align: left;
    padding: 8px;
}

.legend-table tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.legend-snippet {
    background: rgba(0, 0, 0, 0.05);
    padding: 10px;
    border-left: 3px solid #c5a059;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Specific overrides for Legend elements within the modal */
.legend-card .btn {
    margin-top: 20px;
}

/* Smart Import Help Notices */
.import-notice {
    padding: 15px;
    border-radius: 2px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    background: rgba(197, 160, 89, 0.1); /* Faint Gold Tint */
    border-left: 4px solid var(--accent-gold);
    color: var(--card-paper-text);
}

.import-notice.warning {
    background: rgba(146, 50, 50, 0.08); /* Faint Red Tint */
    border-left-color: #923232;
}

.import-notice i {
    font-size: 1.1rem;
    margin-top: 2px;
    color: var(--card-paper-text-dim);
}

.import-notice.warning i {
    color: #923232;
}

.import-notice strong {
    color: #7a2a2a; /* Muted Red for emphasis on paper */
}