@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@font-face {
    font-family: 'Panton Narrow Black Italic Caps';
    font-style: normal;
    font-weight: normal;
    src: local('Panton Narrow Black Italic Caps'), url('/fonts/PantonNarrowDemoBlackItalic.woff') format('woff');
}

:root {
    --primary-color: #152f5d;
    --secondary-color: #1a365d;
    --accent-color: #3182ce;
    --text-color: #2d3748;
    --light-bg: #f7fafc;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg); /* Fundo claro para destacar o texto */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================
   HEADER DESKTOP (Padrão Veloci)
   ============================================================ */
header {
    padding: 1rem 0;
    background: white;
    position: fixed; /* Fixo no topo */
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Sombra suave para separar do conteúdo */
}

.container-header {
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0;
    padding: 0 2rem;
    max-width: 1200px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
    min-width: 120px;
}

.logo a {
    background: url('../imgs/H_Preferencial.png'); /* Certifique-se do caminho da imagem */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 80px;
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(21, 47, 93, 0.08);
}

/* ============================================================
   CONTEÚDO DA POLÍTICA (Estilo "Folha de Papel")
   ============================================================ */
.legal-section {
    flex: 1; /* Empurra o footer para baixo */
    max-width: 930px;
    margin: 140px auto 5rem auto; /* 140px topo para não ficar atrás do header fixo */
    padding: 4rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Sombra elegante */
}

.legal-section h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 800;
    position: relative;
    padding-bottom: 1rem;
}

.legal-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

.legal-section p {
    font-size: 1.05rem;
    color: #4a5568;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-section ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    color: #4a5568;
}

.legal-section li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -2px;
}

/* ============================================================
   FOOTER (Padrão Veloci)
   ============================================================ */
footer {
    color: white;
    background-color: #123e7a;
    padding: 3rem 0;
    width: 100%;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    padding: 0 2rem;
}

.footer-section { flex: 1; }

.footer-logo h3 {
    font-family: 'Panton Narrow Black Italic Caps';
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-contact p, .footer-legal p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-links-legal a {
    color: white;
    margin-right: 1rem;
}

/* ============================================================
   HEADER MOBILE (Escondido no Desktop)
   ============================================================ */
.header-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: white;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
    align-items: center;
}

.header-mobile .logo {
    margin-left: 20px;
    width: auto;
}

.header-mobile .logo img {
    height: 35px;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu i {
    font-size: 28px;
    color: var(--primary-color);
}

#mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 10px rgba(0,0,0,0.05);
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#mobile-menu .nav-link {
    text-align: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: block;
}

/* ============================================================
   RESPONSIVIDADE (MOBILE)
   ============================================================ */
@media (max-width: 900px) {
    header { display: none !important; } /* Esconde Desktop */
    .header-mobile { display: flex; }    /* Mostra Mobile */
    
    body { padding-top: 80px; }

    .legal-section {
        margin: 2rem 1rem 3rem 1rem; /* Margens menores no mobile */
        padding: 2rem 1.5rem;       /* Padding interno menor */
    }

    .legal-section h1 { font-size: 2rem; }
    .legal-section h2 { font-size: 1.3rem; }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}