/* ===========================================================
   ÉTICA & COMPLIANCE — Página Institucional

   Usa os mesmos tokens das restantes páginas institucionais
   (amarelo #FFD200, tinta #101828, texto #667085, cantos 20-26px)
   para a página não destoar do conjunto, mantendo desenho próprio.
   =========================================================== */

.sol-ec {
    padding: 44px 0;
    background: #ffffff;
    overflow: hidden;
}

/* ── Cabeçalhos ───────────────────────────────────────────── */

.sol-ec-head,
.sol-ec-section-title {
    max-width: 720px;
    margin-bottom: 30px;
}

.sol-ec-head span,
.sol-ec-section-title span,
.sol-ec-compromisso span,
.sol-ec-canais span {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #667085;
    margin-bottom: 8px;
}

.sol-ec-head h2 {
    font-size: 24px;
    line-height: 1.2;
    color: #101828;
    margin: 0 0 12px;
    font-weight: 800;
}

.sol-ec-head h2::after,
.sol-ec-section-title h3::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    background: #FFD200;
    border-radius: 20px;
    margin-top: 12px;
}

.sol-ec-head p {
    font-size: 14px;
    line-height: 1.8;
    color: #667085;
    margin: 0;
}

.sol-ec-section-title h3 {
    font-size: 22px;
    line-height: 1.3;
    color: #101828;
    margin: 0;
}

/* ── Compromisso ──────────────────────────────────────────── */

.sol-ec-compromisso {
    background: #fcfcfd;
    border: 1px solid #eef2f6;
    border-left: 4px solid #FFD200;
    border-radius: 26px;
    padding: 28px;
    margin-bottom: 36px;
    box-shadow: 0 4px 18px rgba(16, 24, 40, .03);
}

.sol-ec-compromisso h3 {
    font-size: 22px;
    line-height: 1.3;
    color: #101828;
    margin: 0 0 12px;
}

.sol-ec-compromisso p {
    font-size: 14px;
    line-height: 1.8;
    color: #667085;
    margin: 0 0 20px;
    max-width: 860px;
}

.sol-ec-compromisso a {
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #101828;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    transition: .3s ease;
}

.sol-ec-compromisso a:hover {
    transform: translateY(-2px);
}

/* ── Princípios ───────────────────────────────────────────── */

.sol-ec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}

.sol-ec-card {
    background: #fff;
    border: 1px solid #edf1f5;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 6px 20px rgba(16, 24, 40, .03);
    transition: .3s ease;
}

.sol-ec-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 210, 0, .55);
}

.sol-ec-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #FFD200;
    color: #101828;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    margin-bottom: 16px;
}

.sol-ec-card h4 {
    font-size: 15px;
    color: #101828;
    margin: 0 0 8px;
    font-weight: 700;
    line-height: 1.35;
}

.sol-ec-card p {
    font-size: 13px;
    line-height: 1.65;
    color: #667085;
    margin: 0;
}

/* ── Documentos ───────────────────────────────────────────── */

.sol-ec-docs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.sol-ec-docs a,
.sol-ec-docs .sol-ec-doc {
    background: #fff;
    border: 1px solid #edf1f5;
    border-radius: 20px;
    padding: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: .3s ease;
    box-shadow: 0 6px 20px rgba(16, 24, 40, .03);
}

.sol-ec-docs a:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 210, 0, .55);
}

.sol-ec-doc-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: #FFD200;
    color: #101828;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.sol-ec-doc-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #667085;
    margin-bottom: 4px;
}

.sol-ec-docs strong {
    display: block;
    color: #101828;
    font-size: 14.5px;
    margin-bottom: 4px;
    line-height: 1.35;
}

.sol-ec-docs small {
    display: block;
    color: #667085;
    font-size: 12.5px;
    line-height: 1.5;
}

.sol-ec-doc-cta {
    margin-left: auto;
    color: #101828;
    font-size: 12px;
    font-weight: 800;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Documento ainda sem ficheiro: o cartão fica, mas deixa de se fazer passar
   por accionável — não levanta no hover e a etiqueta diz o estado. */
.sol-ec-docs .sol-ec-doc.is-pendente {
    background: #fcfcfd;
    border-style: dashed;
    box-shadow: none;
}

.sol-ec-docs .sol-ec-doc.is-pendente .sol-ec-doc-icon {
    background: #f2f4f7;
    color: #98a2b3;
}

.sol-ec-docs .sol-ec-doc.is-pendente strong {
    color: #475467;
}

.sol-ec-docs .sol-ec-doc.is-pendente .sol-ec-doc-cta {
    background: transparent;
    border: 1px dashed #d0d5dd;
    color: #98a2b3;
    font-weight: 700;
}

/* ── Faixa final ──────────────────────────────────────────── */

.sol-ec-canais {
    background: #101828;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.sol-ec-canais span { color: #FFD200; }

.sol-ec-canais h3 {
    color: #fff;
    font-size: 20px;
    margin: 0 0 8px;
}

.sol-ec-canais p {
    color: #D0D5DD;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.sol-ec-canais-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sol-ec-canais-actions a {
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #FFD200;
    color: #101828;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    transition: .3s ease;
}

.sol-ec-canais-actions a:hover { transform: translateY(-2px); }

/* ── Responsivo ───────────────────────────────────────────── */

@media (max-width: 1100px) {
    .sol-ec-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .sol-ec-docs { grid-template-columns: 1fr; }

    .sol-ec-canais {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .sol-ec { padding: 36px 0; }
    .sol-ec-head h2 { font-size: 20px; }
    .sol-ec-grid { grid-template-columns: 1fr; }

    .sol-ec-compromisso,
    .sol-ec-canais {
        padding: 22px;
        border-radius: 20px;
    }

    .sol-ec-docs a,
    .sol-ec-docs .sol-ec-doc { align-items: flex-start; }

    .sol-ec-doc-cta { display: none; }

    .sol-ec-docs .sol-ec-doc.is-pendente .sol-ec-doc-cta {
        display: inline-block;
        margin-left: 0;
        margin-top: 10px;
        font-size: 11px;
    }
}
