/* ===== SAEZ.LAW AI ASSISTANT v3.0 ===== */

.saez-ai-legal-v3 {
    padding: 56px 0;
    color: #1f2328;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__inner {
    max-width: 1180px;
    margin: 0 auto;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__intro {
    max-width: 840px;
    margin: 0 auto 28px;
    text-align: center;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__eyebrow {
    margin: 0 0 8px;
    color: #2f3f58;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__intro h2 {
    margin: 0 0 12px;
    font-size: 40px;
    line-height: 1.1;
    color: #2a313b;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__intro-text p {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.6;
    color: #2f3f58;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__mini {
    font-size: 15px !important;
    color: #5f6770 !important;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 26px;
    align-items: start;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__chat,
.saez-ai-legal-v3 .saez-ai-legal-v3__box {
    background: #fff;
    border: 1px solid #ddd6ca;
    padding: 22px;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__chathead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e9e0d1;
    color: #2a313b;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__chathead span {
    font-size: 13px;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__chathead span::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    animation: saez-pulse 2s infinite;
}

@keyframes saez-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

.saez-ai-legal-v3 .saez-ai-legal-v3__messages {
    min-height: 320px;
    max-height: 520px;
    overflow: auto;
    padding: 16px;
    border: 1px solid #e9e0d1;
    background: #fcfbf8;
    scroll-behavior: smooth;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__row {
    display: flex;
    margin: 0 0 14px;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__row.user {
    justify-content: flex-end;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__bubble {
    max-width: 84%;
    padding: 14px 16px;
    line-height: 1.6;
    font-size: 15px;
    word-break: break-word;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__row.bot .saez-ai-legal-v3__bubble {
    background: #f4efe8;
    color: #2a313b;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__row.user .saez-ai-legal-v3__bubble {
    background: #2f3f58;
    color: #fff;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__bubble p {
    margin: 0 0 10px;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__bubble p:last-child {
    margin-bottom: 0;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__bubble strong {
    font-weight: 700;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__bubble a {
    color: inherit;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__quick {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__quickbtn {
    background: #fff;
    border: 1px solid #ddd6ca;
    color: #2f3f58;
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    text-align: left;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__quickbtn:hover,
.saez-ai-legal-v3 .saez-ai-legal-v3__quickbtn:focus {
    background: #f4efe8;
    border-color: #cbbfae;
    outline: none;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__inputrow {
    display: flex;
    gap: 10px;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__input {
    flex: 1;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid #ddd6ca;
    font-size: 15px;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__input:focus {
    outline: 2px solid rgba(47, 63, 88, 0.08);
    border-color: #2f3f58;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__send {
    min-width: 150px;
    border: 0;
    background: #2f3f58;
    color: #fff;
    font-weight: 700;
    padding: 0 16px;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__send:hover,
.saez-ai-legal-v3 .saez-ai-legal-v3__send:focus {
    background: #394c6b;
    outline: none;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__send:disabled,
.saez-ai-legal-v3 .saez-ai-legal-v3__quickbtn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__side {
    display: grid;
    gap: 18px;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__box h3 {
    margin: 0 0 12px;
    color: #2a313b;
    font-size: 24px;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__box p,
.saez-ai-legal-v3 .saez-ai-legal-v3__box li {
    color: #2f3f58;
    line-height: 1.7;
    font-size: 16px;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__box ul {
    margin: 0;
    padding-left: 20px;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__box--accent {
    background: #f4efe8;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__cta {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 16px;
    background: #2f3f58;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__cta:hover,
.saez-ai-legal-v3 .saez-ai-legal-v3__cta:focus {
    background: #394c6b;
    outline: none;
}

.saez-ai-legal-v3 .saez-ai-legal-v3__disclaimer {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.7;
}

.saez-ai-legal-v3 .saez-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.saez-ai-legal-v3 .saez-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    background: #8a9ab0;
    animation: saez-bounce 1.2s infinite ease-in-out;
}

.saez-ai-legal-v3 .saez-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.saez-ai-legal-v3 .saez-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes saez-bounce {
    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    40% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

@media (max-width: 980px) {
    .saez-ai-legal-v3 .saez-ai-legal-v3__grid {
        grid-template-columns: 1fr;
    }

    .saez-ai-legal-v3 .saez-ai-legal-v3__intro h2 {
        font-size: 34px;
    }
}

@media (max-width: 640px) {
    .saez-ai-legal-v3 {
        padding: 34px 0 44px;
    }

    .saez-ai-legal-v3 .saez-ai-legal-v3__intro h2 {
        font-size: 28px;
    }

    .saez-ai-legal-v3 .saez-ai-legal-v3__intro-text p {
        font-size: 17px;
    }

    .saez-ai-legal-v3 .saez-ai-legal-v3__inputrow {
        flex-direction: column;
    }

    .saez-ai-legal-v3 .saez-ai-legal-v3__send {
        min-height: 48px;
        width: 100%;
    }

    .saez-ai-legal-v3 .saez-ai-legal-v3__bubble {
        max-width: 92%;
    }
}
