/* ===============================
   LGPD
================================ */

.lgpd-bg {
    position: relative;
    background-image: var(--bg-agora-lei);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 120px;
    padding: 1rem;

    /* fallback se imagem não carregar */
    background-color: var(--primary);

    display: flex;
    align-items: center;
}

/* overlay */
.lgpd-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 57, 84, 0.75);
    border-radius: 0.5rem;
    z-index: 1;
}

.dark-mode .lgpd-bg::before {
    background: rgba(0, 0, 0, 0.75);
}

/* conteúdo acima do overlay */
.lgpd-bg > * {
    position: relative;
    z-index: 2;
}

.dark-mode .lgpd-bg i {
    color: white !important;
}


/* ===============================
   AGORA É LEI
================================ */

.agora-lei-bg {
    position: relative;
    background-image: var(--bg-agora-lei);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 120px;
    padding: 1rem;

    background-color: white;

    display: flex;
    align-items: center;
}

/* overlay */
.agora-lei-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(221, 221, 221, 0.3);
    border-radius: 0.5rem;
    z-index: 1;
}

.dark-mode .agora-lei-bg::before {
    background: rgba(0, 0, 0, 0.7);
}

.agora-lei-bg > * {
    position: relative;
    z-index: 2;
}


/* ===============================
   DARK MODE
================================ */

.dark-mode div.nav-sessoes {
    background: linear-gradient(175deg, #384046 0%, #232628 100%) !important;
}

.dark-mode h3.alep-elas strong {
    color: #C2ABDB !important;
}

.dark-mode .part-cidada svg path,
.dark-mode .item svg path {
    fill: white;
}

.dark-mode .text-primary,
.dark-mode .item p {
    color: rgba(255, 255, 255, 0.671) !important;
}


/* ===============================
   RESPONSIVIDADE
================================ */

@media (max-width: 1024px) {

    .agora-lei-bg,
    .lgpd-bg {
        padding: 1.25rem;
    }

}

/* MOBILE */

@media (max-width: 768px) {

    .agora-lei-bg,
    .lgpd-bg {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }

    .agora-lei-bg img,
    .lgpd-bg img {
        margin: 0 auto;
        max-width: 100%;
        height: auto;
    }

    .agora-lei-bg .flex-1,
    .lgpd-bg .flex-1 {
        margin: 0;
        width: 100%;
    }

}

/* MOBILE PEQUENO */

@media (max-width: 480px) {

    .agora-lei-bg,
    .lgpd-bg {
        padding: 1rem;
        min-height: auto;
    }

}




/* =========================
   MODAL AO VIVO - HOME
========================= */

body.live-modal-open {
    overflow: hidden;
}

/* Overlay principal */
.live-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

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

    padding: 54px 20px 34px;

    background: #0d2a3ec2;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* O JS adiciona a classe flex para abrir a modal */
.live-modal-overlay.flex {
    display: flex;
}

/* Container central da modal */
.live-modal-wrapper {
    position: relative;
    width: 100%;
    max-width: 920px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.live-modal-close {
    position: absolute;
    top: -38px;
    right: 0;
    z-index: 30;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 0;
    min-height: auto;

    background: transparent;
    border: 0;
    border-radius: 0;

    color: rgba(255, 255, 255, 0.96);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
    line-height: 1;

    cursor: pointer;
    box-shadow: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);

    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    transition: opacity 0.2s ease, transform 0.2s ease;
}

.live-modal-close:hover {
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 0.82;
}

.live-modal-close-text {
    color: inherit;
    line-height: 1;
}

.live-modal-close-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    height: auto;

    background: transparent;
    border-radius: 0;

    color: inherit;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;

    transform-origin: center;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.live-modal-close:hover .live-modal-close-icon {
    transform: rotate(90deg);
}

.live-modal-close:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 4px;
}

/* Caixa externa do vídeo */
.live-modal-box {
    width: 100%;

    background: rgba(255, 255, 255, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 14px;

    box-shadow:
        0 24px 70px rgba(32, 74, 104, 0.30),
        0 6px 18px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);

    padding: 13px;
}

/* Frame do vídeo */
.live-modal-video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;

    background: #000;
    overflow: hidden;
    border-radius: 6px;
}

.live-modal-video-frame iframe,
.live-modal-video-fallback {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* Mensagem fallback caso o vídeo não carregue */
.live-modal-video-fallback {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    background: #000000;
    font-size: 15px;
    text-align: center;
    padding: 20px;
}

/* Texto "Estamos transmitindo..." */
.live-modal-social-text {
    width: 100%;
    margin-top: 24px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    text-align: center;

    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.30);
}

.live-modal-social-text .line {
    flex: 1;
    height: 1px;
    max-width: 190px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.82),
        transparent
    );
}

.live-modal-social-text .text {
    white-space: nowrap;
}

.live-modal-social-text .text strong {
    font-weight: 800;
}

/* Links Facebook / YouTube/ Legis Videos */
.live-modal-social-links {
    margin-top: 12px;

    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: center;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;
    color: #ffffff;

    font-size: 32px;
    font-weight: 800;
    line-height: 1;

    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.34);

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        filter 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px) scale(1.025);
    opacity: 0.94;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.18));
}

.social-link i {
    font-size: 42px;
    line-height: 1;
}

.social-facebook span,
.social-youtube span {
    font-family: Arial, Helvetica, sans-serif;
}

/* Responsivo */
@media (max-width: 768px) {
    .live-modal-overlay {
        padding: 74px 16px 30px;
        align-items: flex-start;
    }

    .live-modal-wrapper {
        max-width: 100%;
    }

    .live-modal-close {
        top: -44px;
        right: 0;

        min-height: 30px;
        padding: 7px 12px;

        font-size: 11px;
    }

    .live-modal-close-icon {
        width: 17px;
        height: 17px;
        font-size: 17px;
    }

    .live-modal-box {
        padding: 8px;
        border-radius: 12px;
    }

    .live-modal-video-frame {
        border-radius: 5px;
    }

    .live-modal-social-text {
        margin-top: 22px;
        flex-direction: column;
        gap: 8px;
        font-size: 14px;
        line-height: 1.35;
    }

    .live-modal-social-text .line {
        display: none;
    }

    .live-modal-social-text .text {
        white-space: normal;
        max-width: 320px;
    }

    .live-modal-social-links {
        margin-top: 10px;
        gap: 22px;
    }

    .social-link {
        font-size: 24px;
        gap: 8px;
    }

    .social-link i {
        font-size: 31px;
    }

    .social-link-logo img {
        height: 38px;
        max-width: 140px;
    }
    
    .live-modal-social-links {
        gap: 18px;
    }
}

@media (max-width: 420px) {
    .live-modal-overlay {
        padding-left: 12px;
        padding-right: 12px;
    }

    .live-modal-close {
        right: 0;
    }

    .live-modal-social-links {
        gap: 18px;
    }

    .social-link {
        font-size: 21px;
    }

    .social-link i {
        font-size: 28px;
    }
}

.social-link-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    max-width: 180px;

    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-link-logo:hover {
    transform: scale(1.03);
    opacity: 0.92;
}

.social-link-logo img {
    display: block;
    width: auto;
    height: 52px;
    max-width: 180px;
    object-fit: contain;

    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

.grecaptcha-badge {
    visibility: hidden;
}

.lgpd-button-custom a {
    background-color: #00213d !important;
    color: #ffffff !important;
}

.lgpd-button-custom a:hover {
    background-color: #00182c !important;
}