/* ==========================================================================
   Portal Transparência (Section VII)
   ========================================================================== */

.portal {
    padding: var(--section-pad-xl) 0;
    background-color: var(--color-white);
    overflow: hidden;
    position: relative;
}

.portal__inner {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
}

/* ===== Coluna de texto ===== */

.portal__content {
    flex: 0 0 clamp(420px, 29.2vw, 560px);
    display: flex;
    flex-direction: column;
    gap: var(--gap-card);
}

.portal__label {
    display: flex;
    align-items: center;
    gap: clamp(10px, 0.63vw, 12px);
    font-family: var(--font-text);
    font-weight: 400;
    font-size: var(--fs-label);
    line-height: 1.7;
    letter-spacing: -0.01em;
    color: #252B37;
}

.portal__line {
    display: inline-block;
    width: var(--line-width);
    height: 0;
    border-top: 1px solid var(--color-primary);
    flex-shrink: 0;
}

.portal__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-section-lg);
    line-height: 1.19;
    color: #252B37;
}

.portal__description {
    font-family: var(--font-text);
    font-weight: 400;
    font-size: var(--fs-body);
    line-height: 1.7;
    letter-spacing: -0.01em;
    color: #414651;
}

/* ===== Checklist ===== */

.portal__checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 0.42vw, 8px);
}

.portal__checklist-item {
    display: flex;
    align-items: flex-start;
    gap: clamp(10px, 0.63vw, 12px);
    font-family: var(--font-text);
    font-weight: 400;
    font-size: var(--fs-body);
    line-height: 1.7;
    letter-spacing: -0.01em;
    color: #414651;
}

.portal__checklist-item svg {
    flex-shrink: 0;
    margin-top: 4px;
}

/* ===== CTA ===== */

.portal__cta-wrapper {
    padding: clamp(6px, 0.42vw, 8px);
    align-self: flex-start;
    border-radius: 16px;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(302.1deg, rgba(21, 94, 239, 0.39) 24.57%, rgba(21, 94, 239, 0) 70.33%) border-box;
}

.portal__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 0.63vw, 12px);
    padding: var(--cta-pad-y) var(--cta-pad-x);
    background: #1F3A5F;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--cta-font);
    line-height: 1.33;
    border-radius: 12px;
    transition: background var(--transition-fast);
    white-space: nowrap;
}

.portal__cta:hover {
    background: #2a4f7a;
}

.portal__cta svg {
    width: var(--cta-icon);
    height: var(--cta-icon);
}

/* ===== Devices image ===== */

.portal__devices {
    flex: 1;
    min-width: 0;
}

.portal__devices-img {
    display: block;
    width: 100%;
    height: auto;
}

@media (min-width: 769px) {
    .portal__inner {
        --portal-visual-w: clamp(400px, 38vw, 620px);
        gap: var(--gap-lg);
    }

    .portal__content {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - var(--portal-visual-w) - var(--gap-lg));
    }

    .portal__devices {
        flex: 0 0 var(--portal-visual-w);
        width: var(--portal-visual-w);
        max-width: 620px;
    }
}

/* ===== Responsivo ===== */

@media (max-width: 768px) {
    .portal__inner {
        flex-direction: column;
        gap: 40px;
    }

    .portal__content {
        display: contents;
    }

    .portal__devices { order: 1; }
    .portal__label { order: 2; align-self: center; }
    .portal__title { order: 3; align-self: center; text-align: center; }
    .portal__description { order: 4; align-self: center; text-align: center; }
    .portal__checklist { order: 5; align-self: stretch; }
    .portal__cta-wrapper { order: 6; }

    .portal__devices {
        width: 85%;
        max-width: 408px;
        align-self: center;
    }

    .portal__cta-wrapper {
        align-self: center;
    }

    .portal__cta {
        padding: 16px 24px;
        white-space: normal;
        text-align: center;
    }
}
