/* ============================================================
   SUPORT EXPRESS - LEGAL PAGES
   Stylesheet profissional para documentos LGPD
   ============================================================ */

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

:root {
    --azul-primario: #0066CC;
    --azul-escuro: #003B7A;
    --cinza-texto: #1F2937;
    --cinza-medio: #4B5563;
    --cinza-claro: #6B7280;
    --cinza-muito-claro: #9CA3AF;
    --bg-claro: #F9FAFB;
    --bg-medio: #F3F4F6;
    --branco: #FFFFFF;
    --borda: #E5E7EB;
    --azul-suave: #EFF6FF;
    --amarelo-suave: #FEF3C7;
    --vermelho-suave: #FEE2E2;
    --verde-suave: #D1FAE5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--cinza-texto);
    background: var(--bg-claro);
    -webkit-font-smoothing: antialiased;
}

/* HEADER */
.site-header {
    background: var(--branco);
    border-bottom: 1px solid var(--borda);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-header .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-header .logo-link img {
    height: 40px;
    width: auto;
}

.site-header nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.site-header nav a {
    color: var(--cinza-medio);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.15s;
}

.site-header nav a:hover {
    color: var(--azul-primario);
}

/* CONTAINER */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #003B7A 0%, #0066CC 100%);
    color: white;
    padding: 5rem 0 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* CARDS DE DOCUMENTOS */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.doc-card {
    background: var(--branco);
    border: 1px solid var(--borda);
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: var(--cinza-texto);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.doc-card:hover {
    border-color: var(--azul-primario);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.1);
    transform: translateY(-3px);
}

.doc-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.doc-card h3 {
    color: var(--azul-escuro);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.doc-card p {
    color: var(--cinza-medio);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.doc-card .link-arrow {
    color: var(--azul-primario);
    font-weight: 600;
    font-size: 0.95rem;
}

.doc-card .badge {
    display: inline-block;
    background: var(--bg-medio);
    color: var(--cinza-medio);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.doc-card .badge.atualizado {
    background: var(--verde-suave);
    color: #065F46;
}

/* SEÇÃO INFO */
.info-section {
    background: var(--branco);
    border-top: 1px solid var(--borda);
    padding: 4rem 0;
    margin-top: 4rem;
}

.info-section h2 {
    color: var(--azul-escuro);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.info-section p {
    color: var(--cinza-medio);
    font-size: 1.05rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1rem auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-item {
    text-align: center;
}

.info-item .info-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.info-item h4 {
    color: var(--azul-escuro);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.info-item p {
    font-size: 0.9rem;
    color: var(--cinza-claro);
}

/* DOCUMENTO INTERNO */
.doc-page {
    background: var(--branco);
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.doc-content {
    background: var(--branco);
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.doc-content .doc-header {
    border-bottom: 2px solid var(--azul-primario);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.doc-content .doc-tipo {
    color: var(--cinza-claro);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.doc-content h1 {
    color: var(--azul-escuro);
    font-size: 2rem;
    font-weight: 700;
    margin: 2.5rem 0 1.25rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--azul-primario);
}

.doc-content h1.first {
    margin-top: 1rem;
}

.doc-content h2 {
    color: var(--azul-primario);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

.doc-content h3 {
    color: var(--cinza-texto);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
}

.doc-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--cinza-medio);
}

.doc-content p.lead {
    font-size: 1.1rem;
    color: var(--cinza-texto);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.doc-content ul, .doc-content ol {
    margin: 0 0 1rem 1.5rem;
    color: var(--cinza-medio);
}

.doc-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.doc-content strong {
    color: var(--cinza-texto);
    font-weight: 600;
}

/* TABELAS */
.doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    background: var(--branco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.doc-content th {
    background: var(--azul-escuro);
    color: white;
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.doc-content td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--borda);
    vertical-align: top;
    color: var(--cinza-medio);
}

.doc-content tr:nth-child(even) td {
    background: var(--bg-claro);
}

.doc-content tr:last-child td {
    border-bottom: none;
}

/* CALLOUTS */
.callout {
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border-left: 4px solid;
}

.callout.info {
    background: var(--azul-suave);
    border-color: #3B82F6;
}

.callout.warning {
    background: var(--amarelo-suave);
    border-color: #F59E0B;
}

.callout.danger {
    background: var(--vermelho-suave);
    border-color: #EF4444;
}

.callout.success {
    background: var(--verde-suave);
    border-color: #10B981;
}

.callout strong {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.callout.info strong { color: #1E40AF; }
.callout.warning strong { color: #92400E; }
.callout.danger strong { color: #991B1B; }
.callout.success strong { color: #065F46; }

/* DEFINIÇÕES */
.definicao {
    margin: 0.75rem 0 0.75rem 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-claro);
    border-left: 3px solid var(--azul-primario);
    border-radius: 4px;
}

.definicao .termo {
    font-weight: 700;
    color: var(--azul-escuro);
}

/* CÓDIGO */
.doc-content code {
    background: var(--bg-medio);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.9em;
    color: #DC2626;
    border: 1px solid var(--borda);
}

.email-destaque {
    display: block;
    background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
    color: #60A5FA;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1.05rem;
    margin: 1rem 0;
    text-align: center;
    text-decoration: none;
    transition: transform 0.15s;
}

.email-destaque:hover {
    transform: translateY(-1px);
}

/* CONTATO DPO */
.contato-dpo {
    background: linear-gradient(135deg, #003B7A 0%, #0066CC 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.contato-dpo h2 {
    color: white !important;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
}

.contato-dpo p {
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 0.5rem;
}

.contato-dpo a {
    color: #BFDBFE;
    text-decoration: none;
    font-weight: 500;
}

.contato-dpo a:hover {
    text-decoration: underline;
}

.contato-dpo .item {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

/* DOWNLOAD PDF */
.download-pdf {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--azul-primario);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.15s;
    margin-top: 1rem;
}

.download-pdf:hover {
    background: var(--azul-escuro);
    transform: translateY(-1px);
}

/* FOOTER */
.site-footer {
    background: var(--azul-escuro);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 2rem 0;
    margin-top: 4rem;
}

.site-footer .container {
    max-width: 1100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.site-footer h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.site-footer p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer ul {
    list-style: none;
    padding: 0;
}

.site-footer li {
    margin-bottom: 0.5rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.site-footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom strong {
    color: white;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .doc-content {
        padding: 2rem 1.5rem;
    }

    .doc-content h1 {
        font-size: 1.5rem;
    }

    .doc-content h2 {
        font-size: 1.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .docs-grid {
        grid-template-columns: 1fr;
    }

    .site-header nav {
        display: none;
    }
}

/* PRINT */
@media print {
    .site-header,
    .site-footer,
    .download-pdf {
        display: none !important;
    }

    body {
        background: white;
    }

    .doc-content {
        box-shadow: none;
        padding: 0;
    }
}
