/**
 * Etiquetado de sistemas de IA — Reglamento (UE) 2024/1689, art. 50.
 */

.ai-interaction-notice {
    padding: 8px 14px;
    background: #F6EEEA;
    border-bottom: 1px solid #E4D4CE;
    color: #3F1618;
}

.ai-interaction-notice p {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
}

.ai-interaction-notice a {
    color: #582020;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ai-gen-badge {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
    margin: 0 0 6px;
    font-size: 10px;
    line-height: 1.4;
    color: #5C4038;
}

.ai-gen-badge__mark {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    background: #582020;
    color: #F4F1EA;
}

.ai-gen-badge__note a {
    color: #582020;
    font-weight: 700;
}

.at-chat-fab-ia {
    position: absolute;
    top: -3px;
    right: -3px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 2px 4px;
    border-radius: 6px;
    background: #F4F1EA;
    color: #582020;
    line-height: 1;
}

.at-chat-msg.bot {
    display: flex;
    flex-direction: column;
}

.chat-ai-notice {
    background: #F6EEEA;
    border: 1px solid #E4D4CE;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 13px;
    color: #3F1618;
    margin-bottom: 16px;
    line-height: 1.5;
}

.chat-ai-notice a {
    color: #582020;
    font-weight: 700;
}

.chat-bubble-bot .ai-gen-badge,
.chat-bubble-bot .ai-bot-output {
    text-align: left;
}

.legal-inventory {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0 1.5rem;
    font-size: 0.875rem;
}

.legal-inventory th,
.legal-inventory td {
    border: 1px solid #E4D4CE;
    padding: 0.7rem 0.8rem;
    vertical-align: top;
    text-align: left;
}

.legal-inventory th {
    background: #F6EEEA;
    color: #3F1618;
    font-weight: 700;
}

.legal-inventory td strong {
    color: #1A1715;
}

.legal-callout {
    border-left: 3px solid #582020;
    background: #F6EEEA;
    padding: 0.9rem 1rem;
    margin: 1.25rem 0 1.5rem;
}

.legal-callout p {
    margin-bottom: 0;
    color: #3F1618;
}

.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.5rem 0 0.65rem;
    color: #1A1715;
}

html[data-theme="dark"] .ai-interaction-notice {
    background: var(--bg-3, #2A2422);
    border-bottom-color: var(--ln, #3A3430);
    color: var(--t, #F4F1EA);
}

html[data-theme="dark"] .ai-interaction-notice a,
html[data-theme="dark"] .ai-gen-badge__note a {
    color: #E8C9C0;
}

html[data-theme="dark"] .ai-gen-badge {
    color: var(--t-3, #C4B8B0);
}

html[data-theme="dark"] .ai-gen-badge__mark {
    background: #F4F1EA;
    color: #582020;
}

.chat-page .ai-interaction-notice {
    border: 1px solid #E4D4CE;
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 14px 18px;
}

.chat-page .ai-interaction-notice p {
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 720px) {
    .legal-inventory {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
