/**
 * PÁGINA LGPD - LAYOUT MODERNO E PROFISSIONAL
 * Design System para página informativa LGPD
 * Sistema Multi-Cliente - Design Universal
 */

/* ==== VARIÁVEIS CSS UNIVERSAL ==== */
:root {
    /* ==== PALETA NEUTRA UNIVERSAL ==== */
    --lgpd-primary: #2c3e50;
    --lgpd-primary-light: #34495e;
    --lgpd-secondary: #4a5568;
    --lgpd-accent: #5b7280;
    --lgpd-accent-light: #8b9dc3;
    --lgpd-white: #ffffff;
    --lgpd-gray-50: #f9fafb;
    --lgpd-gray-100: #f3f4f6;
    --lgpd-gray-200: #e5e7eb;
    --lgpd-gray-300: #d1d5db;
    --lgpd-gray-400: #9ca3af;
    --lgpd-gray-500: #6c757d;
    --lgpd-gray-600: #495057;
    --lgpd-gray-700: #374151;
    --lgpd-gray-800: #1f2937;
    --lgpd-gray-900: #111827;
    
    /* ==== ESPAÇAMENTOS ==== */
    --lgpd-space-xs: 0.5rem;
    --lgpd-space-sm: 1rem;
    --lgpd-space-md: 1.5rem;
    --lgpd-space-lg: 2rem;
    --lgpd-space-xl: 3rem;
    --lgpd-space-2xl: 4rem;
    --lgpd-space-3xl: 6rem;
    
    /* ==== BORDAS E SOMBRAS ==== */
    --lgpd-radius-sm: 0.375rem;
    --lgpd-radius-md: 0.5rem;
    --lgpd-radius-lg: 0.75rem;
    --lgpd-radius-xl: 1rem;
    --lgpd-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --lgpd-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --lgpd-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --lgpd-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* ==== TRANSIÇÕES ==== */
    --lgpd-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --lgpd-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==== HERO SECTION ==== */
.lgpd-hero {
    background: linear-gradient(135deg, var(--lgpd-gray-50) 0%, var(--lgpd-white) 50%, var(--lgpd-gray-100) 100%);
    padding: 60px 0 50px 0;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.8), 
        0 4px 30px rgba(44, 62, 80, 0.12),
        0 2px 10px rgba(0, 0, 0, 0.05);
}

.lgpd-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(44, 62, 80, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(52, 73, 94, 0.03) 0%, transparent 40%);
    opacity: 1;
}

.lgpd-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--lgpd-space-lg);
}

/* ==== HEADER COM ÍCONE E TEXTO ==== */
.lgpd-hero-header {
    display: flex;
    align-items: center;
    gap: var(--lgpd-space-lg);
    margin-bottom: var(--lgpd-space-xl);
    animation: slideInUp 0.8s ease-out;
}

.lgpd-hero-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(91, 114, 128, 0.1) 0%, rgba(74, 85, 104, 0.1) 100%);
    border: 2px solid var(--lgpd-gray-200);
    border-radius: var(--lgpd-radius-xl);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: var(--lgpd-transition);
    position: relative;
    overflow: hidden;
}

.lgpd-hero-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    transition: var(--lgpd-transition);
}

.lgpd-hero-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: var(--lgpd-accent);
}

.lgpd-hero-icon:hover::before {
    left: 100%;
}

.lgpd-hero-icon i {
    font-size: 2.5rem;
    color: var(--lgpd-accent);
    position: relative;
    z-index: 2;
    transition: var(--lgpd-transition);
}

.lgpd-hero-icon:hover i {
    transform: scale(1.1);
    color: var(--lgpd-primary);
}

.lgpd-hero-text {
    flex: 1;
    text-align: left;
}

.lgpd-hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--lgpd-primary);
    margin: 0 0 var(--lgpd-space-sm) 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.lgpd-hero-subtitle {
    font-size: 1.125rem;
    color: var(--lgpd-gray-600);
    margin: 0;
    line-height: 1.6;
}

/* ==== ESTATÍSTICAS HERO ==== */
.lgpd-hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--lgpd-space-lg);
    margin-top: var(--lgpd-space-xl);
    animation: slideInUp 0.8s ease-out 0.3s both;
}

.lgpd-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--lgpd-space-xs);
    padding: var(--lgpd-space-md);
    background: var(--lgpd-white);
    border: 1px solid var(--lgpd-gray-200);
    border-radius: var(--lgpd-radius-lg);
    min-width: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: var(--lgpd-transition);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.lgpd-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--lgpd-accent), transparent);
    transition: var(--lgpd-transition);
}

.lgpd-stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--lgpd-accent);
}

.lgpd-stat-item:hover::before {
    left: 100%;
    transition: left 0.6s ease;
}

.lgpd-stat-icon {
    font-size: 2rem;
    color: var(--lgpd-accent);
    margin-bottom: var(--lgpd-space-xs);
    transition: var(--lgpd-transition);
}

.lgpd-stat-item:hover .lgpd-stat-icon {
    transform: scale(1.15);
    color: var(--lgpd-primary);
}

.lgpd-stat-label {
    font-size: 0.875rem;
    color: var(--lgpd-gray-600);
    font-weight: 500;
    text-align: center;
}

.lgpd-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--lgpd-primary);
    text-align: center;
}

/* ==== ANIMAÇÕES ==== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==== SEÇÃO PRINCIPAL ==== */
.lgpd-main-section {
    background: var(--lgpd-white);
    padding: var(--lgpd-space-xl) 0 var(--lgpd-space-3xl) 0;
    position: relative;
}

.lgpd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--lgpd-space-lg);
}

/* ==== HEADER DE SEÇÃO ==== */
.lgpd-section-header {
    text-align: center;
    margin-bottom: var(--lgpd-space-2xl);
}

.lgpd-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--lgpd-primary);
    margin: 0 0 var(--lgpd-space-md) 0;
    line-height: 1.2;
}

.lgpd-line-shape {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--lgpd-accent), transparent);
    margin: 0 auto var(--lgpd-space-md);
    border-radius: 2px;
}

/* ==== CARD DE IMAGEM ==== */
.lgpd-image-card {
    background: var(--lgpd-white);
    border: 1px solid var(--lgpd-gray-200);
    border-radius: var(--lgpd-radius-lg);
    padding: var(--lgpd-space-xl);
    margin-bottom: var(--lgpd-space-xl);
    box-shadow: var(--lgpd-shadow-md);
    text-align: center;
    transition: var(--lgpd-transition);
}

.lgpd-image-card:hover {
    box-shadow: var(--lgpd-shadow-lg);
    transform: translateY(-3px);
}

.lgpd-image-card img {
    max-width: 100%;
    height: auto;
    border-radius: var(--lgpd-radius-md);
    box-shadow: var(--lgpd-shadow-sm);
    transition: var(--lgpd-transition);
}

.lgpd-image-card:hover img {
    transform: scale(1.02);
    box-shadow: var(--lgpd-shadow-md);
}

/* ==== CARD DE CONTEÚDO HTML ==== */
.lgpd-content-card {
    background: var(--lgpd-white);
    border: 1px solid var(--lgpd-gray-200);
    border-radius: var(--lgpd-radius-lg);
    padding: var(--lgpd-space-2xl);
    margin-bottom: var(--lgpd-space-xl);
    box-shadow: var(--lgpd-shadow-md);
    transition: var(--lgpd-transition);
}

.lgpd-content-card:hover {
    box-shadow: var(--lgpd-shadow-lg);
    transform: translateY(-2px);
}

/* ==== CONTEÚDO HTML FORMATADO (preserva formatação do admin) ==== */
.lgpd-html-content {
    color: var(--lgpd-gray-700);
    line-height: 1.8;
    font-size: 1rem;
}

/* Preserva formatações do editor HTML do admin */
.lgpd-html-content p {
    margin-bottom: var(--lgpd-space-md);
    text-align: justify;
}

.lgpd-html-content h1,
.lgpd-html-content h2,
.lgpd-html-content h3,
.lgpd-html-content h4,
.lgpd-html-content h5,
.lgpd-html-content h6 {
    margin-top: var(--lgpd-space-lg);
    margin-bottom: var(--lgpd-space-md);
    font-weight: 600;
}

.lgpd-html-content ul,
.lgpd-html-content ol {
    margin-bottom: var(--lgpd-space-md);
    padding-left: 2rem !important;
}

.lgpd-html-content ul {
    list-style-type: disc !important;
}

.lgpd-html-content ol {
    list-style-type: decimal !important;
}

.lgpd-html-content li {
    margin-bottom: var(--lgpd-space-xs);
    padding-left: 0.5rem !important;
    list-style-position: outside !important;
}

.lgpd-html-content a {
    color: var(--lgpd-accent);
    text-decoration: none;
    transition: var(--lgpd-transition-fast);
}

.lgpd-html-content a:hover {
    color: var(--lgpd-primary);
    text-decoration: underline;
}

.lgpd-html-content strong {
    font-weight: 600;
}

.lgpd-html-content em {
    font-style: italic;
}

.lgpd-html-content blockquote {
    border-left: 4px solid var(--lgpd-accent);
    padding-left: var(--lgpd-space-lg);
    margin: var(--lgpd-space-lg) 0;
    font-style: italic;
    color: var(--lgpd-gray-600);
}

.lgpd-html-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--lgpd-space-lg);
}

.lgpd-html-content table th,
.lgpd-html-content table td {
    padding: var(--lgpd-space-sm);
    border: 1px solid var(--lgpd-gray-200);
    text-align: left;
}

.lgpd-html-content table th {
    background: var(--lgpd-gray-50);
    font-weight: 600;
    color: var(--lgpd-primary);
}

/* ==== CARD DE PDF ==== */
.lgpd-pdf-card {
    background: var(--lgpd-white);
    border: 1px solid var(--lgpd-gray-200);
    border-radius: var(--lgpd-radius-lg);
    padding: var(--lgpd-space-lg);
    box-shadow: var(--lgpd-shadow-md);
    transition: var(--lgpd-transition);
    position: relative;
    overflow: visible;
}

.lgpd-pdf-card:hover {
    box-shadow: var(--lgpd-shadow-xl);
    transform: translateY(-2px);
}

.lgpd-pdf-header {
    display: flex;
    align-items: center;
    gap: var(--lgpd-space-md);
    margin-bottom: var(--lgpd-space-lg);
    padding-bottom: var(--lgpd-space-md);
    border-bottom: 2px solid var(--lgpd-gray-100);
}

.lgpd-pdf-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--lgpd-accent) 0%, var(--lgpd-secondary) 100%);
    border-radius: var(--lgpd-radius-md);
    color: var(--lgpd-white);
    font-size: 1.5rem;
    transition: var(--lgpd-transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lgpd-pdf-card:hover .lgpd-pdf-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.lgpd-pdf-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--lgpd-primary);
    margin: 0;
}

/* ==== CONTAINER DO PDF ==== */
.lgpd-pdf-container {
    width: 100%;
    min-height: 800px;
    border-radius: var(--lgpd-radius-md);
    overflow: hidden;
    background: var(--lgpd-gray-50);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lgpd-pdf-container object {
    width: 100%;
    height: 100%;
    min-height: 800px;
}

/* ==== MENSAGEM DE FALLBACK DO PDF ==== */
.lgpd-pdf-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--lgpd-space-lg);
    padding: var(--lgpd-space-2xl);
    text-align: center;
    background: var(--lgpd-gray-50);
    border-radius: var(--lgpd-radius-md);
    min-height: 300px;
}

.lgpd-pdf-fallback-icon {
    font-size: 3rem;
    color: var(--lgpd-gray-400);
}

.lgpd-pdf-fallback-text {
    font-size: 1rem;
    color: var(--lgpd-gray-600);
    margin: 0;
    line-height: 1.6;
}

.lgpd-pdf-download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--lgpd-accent) 0%, var(--lgpd-secondary) 100%);
    color: var(--lgpd-white);
    text-decoration: none;
    border-radius: var(--lgpd-radius-md);
    font-weight: 600;
    transition: var(--lgpd-transition);
    box-shadow: var(--lgpd-shadow-md);
}

.lgpd-pdf-download-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--lgpd-shadow-lg);
    color: var(--lgpd-white);
}

.lgpd-pdf-download-link i {
    font-size: 1.25rem;
}

/* ==== ESTADO VAZIO ==== */
.lgpd-empty-state {
    text-align: center;
    padding: var(--lgpd-space-3xl) var(--lgpd-space-lg);
}

.lgpd-empty-icon {
    font-size: 4rem;
    margin-bottom: var(--lgpd-space-lg);
}

.lgpd-empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--lgpd-gray-600);
    margin: 0 0 var(--lgpd-space-md) 0;
}

.lgpd-empty-text {
    font-size: 1rem;
    color: var(--lgpd-gray-500);
    margin: 0;
}

/* ==== SEPARADOR DECORATIVO ==== */
.lgpd-separator {
    display: flex;
    align-items: center;
    gap: var(--lgpd-space-md);
    margin: var(--lgpd-space-2xl) 0;
}

.lgpd-separator-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--lgpd-gray-300), transparent);
}

/* ==== RESPONSIVIDADE ==== */
@media (max-width: 768px) {
    .lgpd-hero {
        padding: 40px 0 40px 0;
        min-height: auto;
    }
    
    .lgpd-hero-header {
        flex-direction: column;
        text-align: center;
        gap: var(--lgpd-space-md);
    }
    
    .lgpd-hero-icon {
        width: 70px;
        height: 70px;
    }
    
    .lgpd-hero-icon i {
        font-size: 2rem;
    }
    
    .lgpd-hero-text {
        text-align: center;
    }
    
    .lgpd-hero-title {
        font-size: 2rem;
    }
    
    .lgpd-hero-subtitle {
        font-size: 1rem;
    }
    
    .lgpd-hero-stats {
        flex-wrap: wrap;
        gap: var(--lgpd-space-md);
    }
    
    .lgpd-stat-item {
        min-width: 120px;
        flex: 1 1 calc(50% - var(--lgpd-space-md));
    }
    
    .lgpd-section-title {
        font-size: 1.75rem;
    }
    
    .lgpd-main-section {
        padding: var(--lgpd-space-xl) 0;
    }
    
    .lgpd-content-card {
        padding: var(--lgpd-space-lg);
    }
    
    .lgpd-image-card {
        padding: var(--lgpd-space-md);
    }
    
    .lgpd-pdf-card {
        padding: var(--lgpd-space-md);
    }
    
    .lgpd-pdf-container {
        min-height: 600px;
    }
    
    .lgpd-pdf-container object {
        min-height: 600px;
    }
}

@media (max-width: 576px) {
    .lgpd-hero-icon {
        width: 60px;
        height: 60px;
    }
    
    .lgpd-hero-icon i {
        font-size: 1.75rem;
    }
    
    .lgpd-hero-title {
        font-size: 1.75rem;
    }
    
    .lgpd-hero-stats {
        flex-direction: column;
    }
    
    .lgpd-stat-item {
        width: 100%;
        flex: 1 1 100%;
    }
    
    .lgpd-section-title {
        font-size: 1.5rem;
    }
    
    .lgpd-html-content {
        font-size: 0.9375rem;
    }
    
    .lgpd-pdf-header {
        flex-direction: column;
        text-align: center;
    }
    
    .lgpd-pdf-container {
        min-height: 500px;
    }
    
    .lgpd-pdf-container object {
        min-height: 500px;
    }
}

/* ==== ACESSIBILIDADE ==== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Melhor contraste para leitores de tela */
.lgpd-html-content a:focus,
.lgpd-pdf-download-link:focus {
    outline: 2px solid var(--lgpd-accent);
    outline-offset: 2px;
}

