/* ==========================================================================
   Página "Política de Privacidade"
   Layout base em 1920px. Tudo usa em/rem para respeitar o zoom de texto (A+/A-)
   do site, exceto as larguras de colunas, que seguem o grid do layout.
   ========================================================================== */

/* ATENÇÃO: no stylesheet.css do tema os pesos da família LatoWeb não seguem o padrão:
   200 = Regular, 300 = Medium, 500 = Semibold, 400 = Heavy, 700 = Bold, 800 = Black.
   Por isso o texto corrido usa 200 e os destaques usam 300/700. */

/* Itálicos da família LatoWeb (o stylesheet.css do tema só declara os upright) */
@font-face {
    font-family: 'LatoWeb';
    font-style: italic;
    font-weight: 600;
    src: url('fonts/Lato-SemiboldItalic.woff2') format('woff2'),
         url('fonts/Lato-SemiboldItalic.woff') format('woff');
    font-display: swap;
}
@font-face {
    font-family: 'LatoWeb';
    font-style: italic;
    font-weight: 700;
    src: url('fonts/Lato-BoldItalic.woff2') format('woff2'),
         url('fonts/Lato-BoldItalic.woff') format('woff');
    font-display: swap;
}
@font-face {
    font-family: 'LatoWeb';
    font-style: italic;
    font-weight: 800;
    src: url('fonts/Lato-HeavyItalic.woff2') format('woff2'),
         url('fonts/Lato-HeavyItalic.woff') format('woff');
    font-display: swap;
}

.pp-page {
    --pp-azul: #0067bb;
    --pp-azul-claro: #007fcc;
    --pp-azul-escuro: #004282;
    --pp-vermelho: #ee2e24;
    --pp-cinza: #ecebeb;
    --pp-rosa: #feb5b5;
    --pp-texto: #1e1e1e;
    --pp-gradiente: linear-gradient(135deg, #007fcc 0%, #014887 100%);

    /* grid do layout (1180px centralizado: índice 345px + 55px de respiro + texto) */
    --pp-w: min(1180px, 100% - 40px);
    --pp-side: 345px;
    --pp-gap: 55px;

    display: block;
    font-family: "LatoWeb", Arial, sans-serif;
    /* 16px no layout de 1920px; nunca abaixo de 14px e respeitando o A+/A- */
    font-size: max(calc(14px * var(--font-scale, 1)), 1.6rem);
    font-weight: 200;
    line-height: 1.6;
    color: var(--pp-texto);
    background: #fff;
    -webkit-text-size-adjust: 100%;
}

.pp-page *,
.pp-page *::before,
.pp-page *::after {
    box-sizing: border-box;
}

/* reset com especificidade zero (:where) para não brigar com os componentes abaixo */
:where(.pp-page) :where(h1, h2, h3, p, ul, ol, li) {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: inherit;
}

/* o style.css do tema fixa font-size: 2rem em a, p, span, li...: aqui herdamos do bloco */
.pp-page li,
.pp-page p,
.pp-page span,
.pp-page label {
    font-size: 1em;
}

.pp-page a {
    font-size: inherit;
    color: var(--pp-azul);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.pp-page a:hover {
    color: var(--pp-azul-escuro);
}

.pp-page :focus-visible {
    outline: 3px solid var(--pp-vermelho);
    outline-offset: 3px;
}

/* ============================== HERO ============================== */

.pp-hero {
    position: relative;
    overflow: hidden;
    padding: 9em 0 28.5em;
    background: linear-gradient(180deg, #2d94dc 0%, #0f78c1 100%);
    color: #fff;
}

.pp-hero__posto {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.pp-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 512px minmax(0, 1fr);
    column-gap: 88px;
    align-items: start;
    width: var(--pp-w);
    margin: 0 auto;
}

.pp-hero__titulo {
    font-size: 4.6em;
    font-style: italic;
    font-weight: 800;
    line-height: 1.38;
    letter-spacing: -0.01em;
    color: #fff;
}

.pp-hero__linha {
    display: block;
}

.pp-hero__selo {
    display: inline-block;
    width: 0.8em;
    height: 0.65em;
    margin-left: -0.12em;
    vertical-align: 0.08em;
}

.pp-hero__texto {
    font-size: 1.125em;
    font-weight: 300;
    line-height: 1.72;
}

.pp-hero__texto p {
    text-align: justify;
}

.pp-hero__texto .pp-hero__meta {
    margin-top: 2.6em;
    text-align: left;
}

.pp-hero__texto a,
.pp-hero__texto a:hover {
    color: #fff;
    text-decoration: none;
}

.pp-hero__texto a:hover {
    text-decoration: underline;
}

/* ============================== CORPO ============================== */

.pp-body {
    display: flow-root;
    padding-bottom: 8em;
    /* cinza até 20px antes da coluna de texto; branco depois */
    background: linear-gradient(
        90deg,
        var(--pp-cinza) calc(50% - var(--pp-w) / 2 + var(--pp-side) + var(--pp-gap) - 20px),
        #fff 0
    );
}

/* cartão azul sobreposto ao hero */
.pp-resumo {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6.3em;
    width: var(--pp-w);
    margin: -12.4em auto 0;
    padding: 4.8em 6em 4.8em 6.25em;
    border-radius: 5em;
    background: linear-gradient(100deg, #007fcc 0%, #004282 100%);
    box-shadow: 0 1.2em 3em rgba(0, 40, 90, 0.18);
    color: #fff;
}

.pp-resumo__icone {
    flex: 0 0 8.125em;
    width: 8.125em;
    height: 8.125em;
}

.pp-resumo__icone svg {
    display: block;
    width: 100%;
    height: 100%;
}

.pp-resumo p {
    font-size: 1.125em;
    font-weight: 300;
    line-height: 1.72;
    text-align: justify;
}

.pp-grid {
    display: grid;
    grid-template-columns: var(--pp-side) minmax(0, 1fr);
    column-gap: var(--pp-gap);
    align-items: start;
    width: var(--pp-w);
    margin: 3.5em auto 0;
}

/* ========================= ÍNDICE LATERAL ========================= */

.pp-side {
    position: sticky;
    top: 2.5em;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 5em);
    margin-top: 5.4em;
}

.pp-side__titulo {
    flex: 0 0 auto;
    margin-bottom: 1.4em;
    font-size: 1.625em;
    font-style: italic;
    font-weight: 700;
    line-height: 1.2;
    color: var(--pp-azul);
}

.pp-side__toggle {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: default;
}

.pp-side__nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 1.9em;
    scrollbar-width: auto;
    scrollbar-color: #d9d9d9 transparent;
}

.pp-side__nav::-webkit-scrollbar {
    width: 1.25em;
}
.pp-side__nav::-webkit-scrollbar-track {
    background: transparent;
}
.pp-side__nav::-webkit-scrollbar-thumb {
    border-radius: 1em;
    background: #d9d9d9;
}
.pp-side__nav::-webkit-scrollbar-thumb:hover {
    background: #c6c6c6;
}

.pp-side__lista li + li {
    margin-top: 0.9em;
}

.pp-side__lista a {
    display: grid;
    grid-template-columns: 3.3em minmax(0, 1fr);
    font-size: 1.125em;
    font-weight: 300;
    line-height: 1.5;
    color: var(--pp-azul);
    text-decoration: none;
    transition: color 0.2s;
}

.pp-side__n {
    padding-right: 0.3em;
    text-align: right;
}

.pp-side__lista a:hover,
.pp-side__lista a:focus-visible {
    color: var(--pp-azul-escuro);
}

.pp-side__lista a.is-active {
    font-weight: 700;
    color: var(--pp-vermelho);
}

/* ============================ CONTEÚDO ============================ */

.pp-guia__titulo {
    margin-bottom: 0.9em;
    font-size: 1.625em;
    font-style: italic;
    font-weight: 700;
    line-height: 1.2;
    color: var(--pp-azul);
}

.pp-guia__lista {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5em 1em;
}

.pp-guia__item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-height: 8.9em;
    padding: 2.4em 1.5em 2em 1.5em;
    border-left: 0.625em solid var(--pp-vermelho);
    background: var(--pp-gradiente);
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, filter 0.2s;
}

.pp-page a.pp-guia__item,
.pp-page a.pp-guia__item:hover {
    color: #fff;
    text-decoration: none;
}

.pp-page a.pp-guia__item:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
}

.pp-guia__item strong {
    font-size: 1.25em;
    font-style: italic;
    font-weight: 700;
    line-height: 1.2;
}

.pp-guia__item em {
    margin-top: 0.2em;
    font-size: 0.75em;
    font-style: italic;
    font-weight: 500;
}

/* seções */

.pp-sec {
    margin-top: 3.2em;
    scroll-margin-top: 2em;
}

.pp-sec__titulo {
    margin-bottom: 1em;
    font-size: 2em;
    font-style: italic;
    font-weight: 700;
    line-height: 1.28;
    color: var(--pp-azul);
}

.pp-sec__num {
    margin-right: 0.15em;
}

.pp-sec p {
    margin-bottom: 1.1em;
    text-align: justify;
}

.pp-sec > *:last-child {
    margin-bottom: 0;
}

/* caixa "A quem se aplica?" */
.pp-destaque {
    margin: 1.9em 0;
    padding: 1.2em 1.4em 0.4em;
    border: 2px solid var(--pp-vermelho);
    border-radius: 1.9em;
}

.pp-destaque h3 {
    margin-bottom: 0.5em;
    font-size: 1.5em;
    font-style: italic;
    font-weight: 700;
    line-height: 1.3;
    color: var(--pp-vermelho);
}

/* aviso rosa */
.pp-sec p.pp-aviso {
    margin: 2.2em 0 0;
    padding: 2.8em 1.6em;
    border-radius: 0.5em;
    background: var(--pp-rosa);
}

/* Seção 2: definições (3 colunas) */
.pp-definicoes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7em 1em;
    margin-top: 1.5em;
}

.pp-definicoes li {
    padding: 1.5em 1.5em 1.7em;
    background: var(--pp-cinza);
    font-size: 0.875em;
    line-height: 1.65;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.pp-definicoes strong {
    font-weight: 700;
}

/* caixas cinza recuadas (seções 3, 5 e 8) */
.pp-caixas {
    margin: 1.6em 0 1.8em 6.25em;
}

.pp-caixas li {
    padding: 1.5em 1.6em 1.6em;
    background: var(--pp-cinza);
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.pp-caixas li + li {
    margin-top: 0.75em;
}

.pp-caixas strong {
    font-weight: 700;
}

.pp-caixas--compactas li {
    padding-top: 1.25em;
    padding-bottom: 1.25em;
}

/* Seção 4: tabela de finalidades */
.pp-tabela {
    width: 100%;
    margin: 1.8em 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.pp-tabela th {
    padding: 2.5em 1em;
    border-right: 1em solid #fff;
    border-bottom: 0.6em solid #fff;
    background: linear-gradient(100deg, #007fcc 0%, #014887 100%);
    font-size: 0.9375em;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    color: #fff;
}

.pp-tabela th:last-child {
    border-right: 0;
}

.pp-tabela td {
    position: relative;
    padding: 1.7em 1.4em 1.7em 1.5em;
    border-bottom: 0.4em solid #fff;
    background: var(--pp-cinza);
    font-size: 0.875em;
    line-height: 1.65;
    text-align: justify;
    vertical-align: top;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* divisória vertical entre colunas, com folga em cima e embaixo */
.pp-tabela td + td {
    padding-left: 1.8em;
    background:
        linear-gradient(#4b9ada, #4b9ada) no-repeat left center / 2px calc(100% - 2.2em),
        var(--pp-cinza);
}

/* Seção 6: cartões em 2 colunas */
.pp-cartoes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25em;
    margin: 1.6em 0 1.8em;
}

.pp-cartoes li {
    padding: 1.6em 1.6em 1.8em;
    background: var(--pp-cinza);
}

.pp-sec .pp-cartoes h3 {
    margin-bottom: 1.1em;
    font-size: 0.9375em;
    font-weight: 700;
    line-height: 1.5;
    text-align: justify;
}

.pp-sec .pp-cartoes p {
    margin: 0;
    font-size: 0.875em;
    line-height: 1.65;
}

/* fechamento: botões DPA */
.pp-dpa {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25em;
    margin: 2.2em 0 2.2em;
}

.pp-dpa li {
    display: flex;
}

.pp-page .pp-dpa a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 9.5em;
    padding: 1.6em 1.5em;
    background: linear-gradient(100deg, #007fcc 0%, #004282 100%);
    font-size: 0.875em;
    line-height: 1.65;
    text-align: justify;
    color: #fff;
    text-decoration: underline;
    transition: filter 0.2s;
}

.pp-page .pp-dpa a:hover {
    color: #fff;
    filter: brightness(1.12);
}

.pp-sec p.pp-atualizacao {
    margin-bottom: 0;
    text-align: left;
}

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

@media only screen and (max-width: 1180px) {
    .pp-page {
        --pp-side: 270px;
        --pp-gap: 40px;
    }

    .pp-hero__grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
        column-gap: 48px;
    }

    .pp-resumo {
        gap: 3em;
        padding-left: 3.5em;
        padding-right: 3.5em;
    }

    .pp-definicoes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* índice vira bloco recolhível acima do conteúdo; sem rolagem fixa */
@media only screen and (max-width: 960px) {
    .pp-hero {
        padding: 12em 0 14em;
    }

    .pp-hero__grid {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 2em;
    }

    .pp-hero__titulo {
        font-size: 3.6em;
    }

    .pp-hero__texto {
        font-size: 1em;
        line-height: 1.7;
    }

    .pp-body {
        background: #fff;
    }

    .pp-resumo {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.6em;
        margin-top: -7em;
        padding: 3em 2.2em;
        border-radius: 2.2em;
    }

    .pp-resumo__icone {
        flex-basis: 5.5em;
        width: 5.5em;
        height: 5.5em;
    }

    .pp-resumo p {
        font-size: 1em;
    }

    .pp-grid {
        display: block;
        margin-top: 2.4em;
    }

    .pp-side {
        position: static;
        max-height: none;
        margin: 0 0 2.4em;
        background: var(--pp-cinza);
    }

    .pp-side__titulo {
        margin: 0;
    }

    .pp-side__toggle {
        position: relative;
        padding: 1em 3em 1em 1em;
        cursor: pointer;
    }

    .pp-side__toggle::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 1.2em;
        width: 0.6em;
        height: 0.6em;
        border-right: 3px solid var(--pp-azul);
        border-bottom: 3px solid var(--pp-azul);
        transform: translateY(-70%) rotate(45deg);
        transition: transform 0.2s;
    }

    .pp-side__toggle[aria-expanded="true"]::after {
        transform: translateY(-30%) rotate(-135deg);
    }

    .pp-side__nav {
        max-height: 60vh;
        padding: 0 1em 1.2em;
    }

    .pp-side.is-collapsed .pp-side__nav {
        display: none;
    }

    .pp-sec {
        scroll-margin-top: 10em;
    }

    .pp-caixas {
        margin-left: 0;
    }
}

@media only screen and (max-width: 768px) {
    .pp-hero {
        padding: 11em 0 12em;
    }

    .pp-guia__item {
        min-height: 7em;
        padding: 1.6em 1em 1.4em 1em;
    }

    .pp-hero__titulo {
        font-size: 3.2em;
    }

    .pp-guia__lista {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pp-sec__titulo {
        font-size: 1.65em;
    }

    .pp-cartoes,
    .pp-dpa {
        grid-template-columns: minmax(0, 1fr);
    }

    .pp-sec p,
    .pp-definicoes li,
    .pp-caixas li,
    .pp-hero__texto p,
    .pp-resumo p,
    .pp-cartoes h3 {
        text-align: left;
        hyphens: none;
        -webkit-hyphens: none;
    }

    /* tabela vira lista de cartões */
    .pp-tabela,
    .pp-tabela tbody,
    .pp-tabela tr,
    .pp-tabela td {
        display: block;
        width: 100%;
    }

    .pp-tabela thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .pp-tabela tr {
        margin-bottom: 0.75em;
        padding: 0.5em 0;
        background: var(--pp-cinza);
    }

    .pp-tabela td,
    .pp-tabela td + td {
        padding: 0.9em 1.3em;
        border: 0;
        background: none;
        text-align: left;
        hyphens: none;
        -webkit-hyphens: none;
    }

    .pp-tabela td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.2em;
        font-size: 0.85em;
        font-weight: 700;
        color: var(--pp-azul);
    }
}

@media only screen and (max-width: 560px) {
    .pp-definicoes {
        grid-template-columns: minmax(0, 1fr);
    }

    .pp-hero__titulo {
        font-size: 2.8em;
    }
}

@media only screen and (max-width: 400px) {
    .pp-guia__lista {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pp-page * {
        transition: none !important;
    }
}
