
:root {
    --fundo: #070b14;
    --fundo-card: #101725;
    --fundo-secundario: #0c1220;
    --dourado: #d6b36a;
    --azul: #c9a45b;
    --texto: #f5f7fb;
    --texto-secundario: #99a5b8;
    --borda: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    background: var(--fundo);
    color: var(--texto);
    font-family: "DM Sans", sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(1180px, 90%);
    margin: 0 auto;
}

/* CABEÇALHO */

.cabecalho {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 11, 20, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--borda);

    .cabecalho-conteudo {
        min-height: 82px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 25px;
    }
}

.logo {
    font-family: "Manrope", sans-serif;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;

    span {
        color: var(--dourado);
    }
}

.navegacao {
    display: flex;
    align-items: center;
    gap: 30px;

    a {
        color: var(--texto-secundario);
        font-size: 14px;
        transition: 0.3s;

        &:hover {
            color: var(--dourado);
        }
    }

    .botao-voltar {
        padding: 11px 20px;
        border: 1px solid rgba(214, 179, 106, 0.4);
        border-radius: 8px;
        color: var(--dourado);

        &:hover {
            background: var(--dourado);
            color: var(--fundo);
        }
    }
}

/* INTRODUÇÃO */

.introducao {
    padding: 90px 0 65px;
    max-width: 800px;

    .etiqueta {
        display: inline-block;
        padding: 7px 13px;
        border: 1px solid rgba(214, 179, 106, 0.3);
        border-radius: 50px;
        color: var(--dourado);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 2px;
    }

    h1 {
        margin-top: 25px;
        font-family: "Manrope", sans-serif;
        font-size: clamp(35px, 6vw, 58px);
        line-height: 1.15;
        letter-spacing: -2px;

        span {
            color: var(--dourado);
        }
    }

    > p {
        margin-top: 22px;
        color: var(--texto-secundario);
        font-size: 16px;
        max-width: 700px;
    }
}

.informacoes-documento {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;

    span {
        color: var(--texto-secundario);
        font-size: 12px;
    }
}

/* DOCUMENTO */

.documento-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: start;
    gap: 45px;
    padding-bottom: 100px;
}

.indice {
    position: sticky;
    top: 110px;
    padding: 25px;
    background: var(--fundo-card);
    border: 1px solid var(--borda);
    border-radius: 14px;

    h2 {
        margin-bottom: 20px;
        font-family: "Manrope", sans-serif;
        font-size: 15px;
    }

    nav {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    a {
        padding: 9px 10px;
        border-radius: 6px;
        color: var(--texto-secundario);
        font-size: 12px;
        transition: 0.3s;

        &:hover {
            background: rgba(214, 179, 106, 0.08);
            color: var(--dourado);
        }
    }
}

.documento {
    min-width: 0;
    padding: 40px;
    background: var(--fundo-card);
    border: 1px solid var(--borda);
    border-radius: 16px;

    section {
        padding: 0 0 38px;
        margin-bottom: 38px;
        border-bottom: 1px solid var(--borda);
        scroll-margin-top: 110px;

        &:last-of-type {
            border-bottom: none;
            margin-bottom: 0;
        }
    }

    .numero {
        display: inline-block;
        margin-bottom: 12px;
        color: var(--dourado);
        font-family: "Manrope", sans-serif;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 2px;
    }

    h2 {
        margin-bottom: 18px;
        font-family: "Manrope", sans-serif;
        font-size: 24px;
        font-weight: 800;
    }

    h3 {
        margin: 25px 0 10px;
        color: var(--dourado);
        font-family: "Manrope", sans-serif;
        font-size: 16px;
    }

    p {
        margin-bottom: 16px;
        color: var(--texto-secundario);
        font-size: 14px;
        text-align: justify;
    }

    ul {
        margin: 15px 0 20px;
        padding-left: 22px;

        li {
            margin-bottom: 9px;
            padding-left: 5px;
            color: var(--texto-secundario);
            font-size: 14px;

            &::marker {
                color: var(--dourado);
            }
        }
    }
}

/* CONTATO */

.contato-documento {
    margin-top: 25px;
    padding: 25px;
    background: var(--fundo-secundario);
    border: 1px solid var(--borda);
    border-left: 3px solid var(--dourado);
    border-radius: 8px;

    h3 {
        margin-top: 12px;

        &:first-child {
            margin-top: 0;
        }
    }

    p {
        margin-bottom: 5px;
    }
}

/* AVISO FINAL */

.aviso-final {
    margin-top: 35px;
    padding: 22px;
    background: rgba(57, 120, 215, 0.08);
    border: 1px solid rgba(57, 120, 215, 0.25);
    border-radius: 10px;

    p {
        margin: 0;
        color: var(--texto);
        font-size: 13px;
    }
}

/* BOTÕES */

.acoes-documento {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 35px;

    a,
    button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 0 22px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        transition: 0.3s;
    }

    .botao-principal {
        background: var(--dourado);
        color: var(--fundo);

        &:hover {
            background: #e8c982;
            transform: translateY(-2px);
        }
    }

    .botao-imprimir {
        background: transparent;
        border: 1px solid var(--borda);
        color: var(--texto);

        &:hover {
            border-color: var(--dourado);
            color: var(--dourado);
        }
    }
}

/* RODAPÉ */

.rodape {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 40px 5%;
    background: var(--fundo-secundario);
    border-top: 1px solid var(--borda);
    text-align: center;

    .logo {
        font-size: 23px;
    }

    p {
        color: var(--texto-secundario);
        font-size: 12px;
    }

    div {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    div a {
        color: var(--texto-secundario);
        font-size: 12px;
        transition: 0.3s;

        &:hover {
            color: var(--dourado);
        }
    }
}

/* RESPONSIVIDADE */

@media (max-width: 850px) {
    .documento-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .indice {
        position: static;

        nav {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
        }
    }

    .introducao {
        padding-top: 65px;
    }
}

@media (max-width: 550px) {
    .cabecalho {
        .cabecalho-conteudo {
            min-height: 70px;
        }
    }

    .logo {
        font-size: 21px;
    }

    .navegacao {
        gap: 12px;

        > a:first-child {
            display: none;
        }

        .botao-voltar {
            padding: 9px 12px;
            font-size: 12px;
        }
    }

    .introducao {
        padding: 55px 0 40px;

        h1 {
            font-size: 37px;
        }

        > p {
            font-size: 14px;
        }
    }

    .documento {
        padding: 24px 18px;

        h2 {
            font-size: 21px;
        }

        p,
        ul li {
            font-size: 13px;
        }
    }

    .indice {
        padding: 20px;

        nav {
            grid-template-columns: 1fr;
        }
    }

    .acoes-documento {
        flex-direction: column;

        a,
        button {
            width: 100%;
        }
    }
}

/* IMPRESSÃO */

@media print {
    body {
        background: #fff;
        color: #000;
    }

    .cabecalho,
    .indice,
    .acoes-documento,
    .rodape {
        display: none !important;
    }

    .container {
        width: 100%;
    }

    .introducao {
        padding: 20px 0;
    }

    .documento-layout {
        display: block;
        padding: 0;
    }

    .documento {
        padding: 0;
        background: #fff;
        border: none;

        h2,
        h3,
        .numero {
            color: #000;
        }

        p,
        ul li {
            color: #333;
        }

        section {
            break-inside: avoid;
        }
    }

    .aviso-final,
    .contato-documento {
        background: #fff;
        border: 1px solid #ccc;
    }
}
