/* ==========================================================================
   GV alterações (2026-11) — barra de cofinanciamento PRR + páginas legais
   Ficheiro novo: não altera nenhum estilo existente.
   ========================================================================== */

/* --- Barra de cofinanciamento: fixa no fundo, sempre visível --- */
:root {
    --gv-prr-h: 64px;
}

body {
    /* espaço para a barra não tapar o fim do footer */
    padding-bottom: var(--gv-prr-h);
}

.gv-prr-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000; /* abaixo do header fixo e dos pop-ups (9999) */
    height: var(--gv-prr-h);
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .06);
}

.gv-prr-bar__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    height: 100%;
    padding: 8px 16px;
    text-decoration: none;
    color: #2e2e2e;
}

.gv-prr-bar__img {
    display: block;
    height: 100%;
    max-height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.gv-prr-bar__cta {
    font-family: Manrope, sans-serif;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gv-prr-bar__link .gv-prr-bar__cta {
    display: none !important;
}

.gv-prr-bar__link:hover .gv-prr-bar__cta,
.gv-prr-bar__link:focus-visible .gv-prr-bar__cta {
    text-decoration-thickness: 2px;
}

.gv-prr-bar__link:focus-visible {
    outline: 2px solid #2e2e2e;
    outline-offset: -4px;
}

@media only screen and (max-width: 767px) {
    :root {
        --gv-prr-h: 48px;
    }

    .gv-prr-bar__link {
        padding: 6px 12px;
    }

    /* no telemóvel fica só a barra de logos (toda clicável) */
    .gv-prr-bar__cta {
        display: none;
    }
}

/* --- Páginas legais: tabelas e listas dos textos das políticas --- */
.gv-legal-texto table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: .95em;
}

.gv-legal-texto td,
.gv-legal-texto th {
    border: 1px solid rgba(0, 0, 0, .15);
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}

.gv-legal-texto tr:first-child td {
    font-weight: 700;
}

.gv-legal-texto ul {
    padding-left: 20px;
    margin: 8px 0 16px;
}

@media only screen and (max-width: 767px) {
    .gv-legal-texto table {
        display: block;
        overflow-x: auto;
    }
}
