/* =========================
   PÁGINA - LEGISLAÇÃO
========================= */

.pagina-legislacao {
    max-width: 1320px;
    margin: 0 auto;
    padding: 50px 30px;
}

.legislacao-cabecalho {
    margin-bottom: 30px;
}

.legislacao-cabecalho h1 {
    color: #092444;
    font-size: 38px;
    margin: 0 0 12px;
}

.legislacao-cabecalho p {
    color: #333;
    font-size: 17px;
    margin: 0;
}


/* =========================
   CARDS
========================= */

.legislacao-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.legislacao-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.legislacao-card-cabecalho {
    display: flex;
    align-items: center;
    gap: 18px;

    padding-bottom: 20px;
    margin-bottom: 10px;

    border-bottom: 1px solid #dfe5eb;
}

.legislacao-card-cabecalho h2 {
    color: #092444;
    font-size: 24px;
    margin: 0 0 8px;
}

.legislacao-card-cabecalho p {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}


/* =========================
   ÍCONE
========================= */

.legislacao-icone {
    width: 64px;
    height: 64px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #07579a;
    color: white;

    border-radius: 50%;
    font-size: 30px;
}


/* =========================
   LISTA DE DOCUMENTOS
========================= */

.legislacao-lista {
    margin-top: 8px;
}

.legislacao-documento {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 16px 4px;

    border-bottom: 1px solid #e5e7eb;
}

.legislacao-documento:last-child {
    border-bottom: none;
}

.legislacao-documento span {
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.legislacao-documento a {
    flex-shrink: 0;

    color: #07579a;
    background: white;

    border: 1px solid #07579a;
    border-radius: 6px;

    padding: 8px 12px;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    transition: 0.2s ease;
}

.legislacao-documento a:hover {
    background: #07579a;
    color: white;
}


/* =========================
   SEM DOCUMENTOS
========================= */

.legislacao-vazio {
    padding: 30px 10px;
    text-align: center;
    color: #6b7280;
    font-size: 15px;
}


/* =========================
   AVISO
========================= */

.legislacao-aviso {
    margin-top: 30px;
    padding: 18px 24px;

    display: flex;
    align-items: center;
    gap: 18px;

    background: #eaf4ff;
    border-radius: 12px;

    color: #092444;
}

.legislacao-aviso-icone {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #07579a;
    color: white;

    font-size: 24px;
    font-weight: bold;
}

.legislacao-aviso strong {
    font-size: 17px;
}

.legislacao-aviso p {
    margin: 4px 0 0;
    font-size: 14px;
}


/* =========================
   RESPONSIVO
========================= */

@media (max-width: 900px) {

    .pagina-legislacao {
        padding: 30px 20px;
    }

    .legislacao-cards {
        grid-template-columns: 1fr;
    }

    .legislacao-cabecalho h1 {
        font-size: 32px;
    }
}

@media (max-width: 600px) {

    .legislacao-card {
        padding: 18px;
    }

    .legislacao-card-cabecalho {
        align-items: flex-start;
    }

    .legislacao-icone {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    .legislacao-card-cabecalho h2 {
        font-size: 20px;
    }

    .legislacao-documento {
        flex-direction: column;
        align-items: flex-start;
    }

    .legislacao-documento a {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

.legislacao-documento-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.legislacao-documento-titulo {
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.legislacao-pdf-icone {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    object-fit: contain;
}