/* ==================================================
   AVISO +18 — tela escura por cima de tudo, com a
   caixa no mesmo estilo dos formulários do site.
================================================== */

/* Enquanto o aviso existir, a página atrás não rola */
body:has(.aviso18) {
    overflow: hidden;
}

.aviso18 {
    position: fixed;
    inset: 0;
    z-index: 9999;                          /* por cima de tudo, inclusive header e flash */
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(4, 6, 10, .94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    overflow-y: auto;                       /* celular deitado: dá para rolar o aviso */
    font-family: 'Montserrat', system-ui, sans-serif;
}

.aviso18-caixa {
    position: relative;
    width: 100%;
    max-width: 520px;
    padding: 40px 32px 30px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background: #0D1118;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .05),
        0 40px 90px -30px rgba(0, 0, 0, 1);
    color: #C9CED6;
    text-align: center;
}

/* Fio dourado no topo da caixa (igual ao do footer) */
.aviso18-caixa::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    width: 60%;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .75), transparent);
    box-shadow: 0 0 12px rgba(212, 175, 55, .45);
}

/* Selo "18+" */
.aviso18-selo {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border: 2px solid var(--hoForte);
    border-radius: 50%;
    box-shadow:
        0 0 0 6px color-mix(in srgb, var(--hoForte) 12%, transparent),
        0 0 24px -4px var(--hoForte);
    color: #FFFFFF;
    font-family: 'Outfit', 'Montserrat', system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
}

.aviso18-titulo {
    margin: 0 0 16px;
    color: #FFFFFF;
    font-family: 'Outfit', 'Montserrat', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.aviso18-titulo span {
    display: block;
    margin-top: 4px;
    color: #7F8A9A;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.aviso18-texto {
    margin: 0 0 12px;
    font-size: .9rem;
    line-height: 1.6;
}

.aviso18-texto strong {
    color: #FFFFFF;
}

.aviso18-en {
    margin-bottom: 28px;
    color: #7F8A9A;
    font-size: .8rem;
    line-height: 1.5;
}

/* ---------- Botões ---------- */

.aviso18-botoes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.aviso18-sair,
.aviso18-entrar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 24px;
    border-radius: 12px;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease,
                filter .2s ease, transform .2s ease, box-shadow .2s ease;
}

.aviso18-sair {
    border: 1px solid rgba(255, 255, 255, .16);
    background: transparent;
    color: #9AA4B2;
}

.aviso18-sair:hover {
    border-color: rgba(255, 255, 255, .35);
    color: #FFFFFF;
}

/* Entrar: botão cheio na cor do site (igual ao do login) */
.aviso18-entrar {
    flex: 1;
    min-width: 220px;
    border: 0;
    background: var(--hoForte);
    color: #FFFFFF;
    box-shadow: 0 10px 24px -12px var(--hoForte);
}

.aviso18-entrar:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px -12px var(--hoForte);
}

.aviso18-sair:focus-visible,
.aviso18-entrar:focus-visible {
    outline: 2px solid #F4F6FA;
    outline-offset: 3px;
}

/* ---------- Celular ---------- */

@media (max-width: 480px) {
    .aviso18-caixa {
        padding: 32px 20px 22px;
    }
    .aviso18-titulo {
        font-size: 1.3rem;
    }
    .aviso18-botoes {
        flex-direction: column-reverse;     /* "Entrar" fica em cima, mais fácil de alcançar */
    }
    .aviso18-sair,
    .aviso18-entrar {
        flex: none;                         /* em coluna, o "flex: 1" achataria o botão */
        width: 100%;
        min-width: 0;
    }
}
