.agreement {
    width: 100%;
}

/* Animação de entrada dos cards */
.agreement > div > article {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.agreement > div > article.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.agreement article {
    width: 100%;
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 40px;
    overflow: hidden;
}

.agreement h1 {
    color: var(--text-color-black);
    font-weight: 600;
    font-size: 32px;
    line-height: 100%;
    letter-spacing: 0%;
    max-width: 432px;
    margin-bottom: 16px;
    max-width: 876px;
}

.agreement h2 {
    font-weight: 600;
    font-size: 20px;
    line-height: 150%;
    letter-spacing: 0%;
    color: var(--text-color-secondary);
    margin: 0;
    max-width: 876px;
}

.agreement svg {
    width: 24px;
    height: 24px;
    min-width: 24px;
    color: var(--text-color-secondary);
    margin-top: 4px;
}

.agreement hr {
    max-width: 264px;
    width: 100%;
    height: 2.5px;
    border: none;
    background-color: var(--background-color-secondary);
    margin: 24px 0;
    display: block;
    margin-left: 12px;
    opacity: 1;
}

.agreement p {
    color: var(--text-color-black);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0%;
    max-width: 876px;
}

.agreement div article p {
    font-weight: 600;
    color: var(--text-color-dark);
    margin-left: 32px;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.agreement div article strong {
    font-weight: 800;
}

.agreement > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding: 44px 0 74px;
    background-color: var(--primary-color-light);
    margin-top: 20px;
}

.agreement div article header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
}

.agreement div article span {
    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0%;
    color: var(--text-color-tertiary);
}

.agreement-card-text {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    text-overflow: ellipsis;
    max-height: 145px;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0;
}

.agreement-card-text.expanded {
    -webkit-line-clamp: unset;
    max-height: 2000px;
    overflow: visible;
}

.see-more {
    color: var(--text-color-tertiary, #1570ef);
    cursor: pointer;
    padding: 0 8px 0 18px;
    border-radius: 4px;
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: none;
    pointer-events: auto;
    overflow: visible;
    transition: color 0.2s, bottom 0.2s;

    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0%;
}

.see-more::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    z-index: -1;
    background: linear-gradient(
        to left,
        var(--primary-color-light, #fff) 85%,
        rgba(255, 255, 255, 0.01) 100%
    );
    pointer-events: none;
}

@media (max-width: 768px) {
    .agreement article {
        padding: 0 24px;
    }

    .agreement > div {
        gap: 48px;
        padding: 56px 0 40px;
        margin-top: 32px;
    }

    .agreement h1 {
        margin-bottom: 24px;
    }

    .agreement hr {
        max-width: 244px;
        margin: 16px 0;
        margin-left: 24px;
    }

    .agreement div article header {
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 0;
    }

    .agreement p {
        text-align: justify;
    }
}
