@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
        body { font-family: 'Inter', sans-serif; scroll-behavior: smooth; }
        .page-section { display: none; }
        .page-section.active { display: block; animation: fadeIn 0.6s ease-out; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
        
        .logo-fallback { 
            background: #14532d; 
            color: white; 
            display: flex; 
            flex-direction: column; 
            align-items: center; 
            justify-content: center; 
            border-radius: 1rem; 
            width: 64px; 
            height: 64px; 
            font-weight: 900; 
            font-size: 0.6rem; 
            border: 2px solid rgba(255,255,255,0.2); 
            line-height: 1;
        }

        .highlight-card {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .highlight-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
        }

/* ========================================================================== */
/* AJUSTES RESPONSIVOS / PREVENÇÃO DE OVERFLOW HORIZONTAL                     */
/* ========================================================================== */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

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

img, iframe, video, svg {
    max-width: 100%;
}

#busca, #doctors-list, #results-info, #pagination-controls {
    min-width: 0;
    max-width: 100%;
}

#doctors-list > div,
#doctors-list h3,
#doctors-list span,
#doctors-list p,
#doctors-list a {
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    #busca > div {
        width: 100%;
        max-width: 100%;
    }

    #results-info {
        flex-wrap: wrap;
        gap: .5rem 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #pagination-controls {
        flex-wrap: wrap;
        padding-left: .5rem;
        padding-right: .5rem;
    }

    #page-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ========================================================================== */
/* LGPD / PREFERÊNCIAS DE PRIVACIDADE                                         */
/* ========================================================================== */
.lgpd-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1000;
    max-width: 980px;
    margin: 0 auto;
    background: rgba(5, 46, 22, .98);
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 1.5rem;
    box-shadow: 0 24px 60px rgba(0,0,0,.24);
    padding: 1.25rem;
}

.lgpd-banner[hidden], .lgpd-modal[hidden] { display: none !important; }

.lgpd-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.lgpd-banner__text { flex: 1; min-width: 0; }
.lgpd-banner__text p { margin: .35rem 0 0; color: rgba(255,255,255,.78); font-size: .82rem; line-height: 1.55; }
.lgpd-banner__text a { color: #bbf7d0; text-decoration: underline; text-underline-offset: 3px; }

.lgpd-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.lgpd-btn {
    border: 0;
    border-radius: .85rem;
    padding: .78rem 1rem;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: pointer;
}
.lgpd-btn--primary { background: #fff; color: #14532d; }
.lgpd-btn--secondary { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.16); }
.lgpd-btn--ghost { background: transparent; color: #bbf7d0; border: 1px solid rgba(187,247,208,.3); }

.lgpd-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0,0,0,.5);
    display: grid;
    place-items: center;
    padding: 1rem;
}
.lgpd-modal__panel {
    width: min(620px, 100%);
    max-height: min(760px, 90vh);
    overflow-y: auto;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 30px 80px rgba(0,0,0,.3);
    padding: 1.5rem;
}
.lgpd-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
}
.lgpd-switch { position: relative; width: 48px; height: 28px; flex: 0 0 auto; }
.lgpd-switch input { opacity: 0; width: 0; height: 0; }
.lgpd-slider { position: absolute; inset: 0; background: #d1d5db; border-radius: 999px; transition: .2s; }
.lgpd-slider::before { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.lgpd-switch input:checked + .lgpd-slider { background: #15803d; }
.lgpd-switch input:checked + .lgpd-slider::before { transform: translateX(20px); }
.lgpd-switch input:disabled + .lgpd-slider { opacity: .75; cursor: not-allowed; }

.privacy-content h3 { margin-top: 2rem; margin-bottom: .65rem; font-size: 1.1rem; font-weight: 900; color: #14532d; }
.privacy-content p, .privacy-content li { color: #4b5563; line-height: 1.75; font-size: .95rem; }
.privacy-content ul { margin: .75rem 0 0 1.2rem; list-style: disc; }
.privacy-content a { color: #15803d; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 767px) {
    .lgpd-banner { left: .75rem; right: .75rem; bottom: .75rem; padding: 1rem; border-radius: 1.2rem; }
    .lgpd-banner__inner { flex-direction: column; align-items: stretch; }
    .lgpd-actions { width: 100%; }
    .lgpd-btn { flex: 1 1 100%; }
    .lgpd-modal__panel { padding: 1.1rem; border-radius: 1.2rem; }
}
