/* Legal Document Styles - ChatOnCloud */
/* Seguindo o design elegante do site original */

/* Variáveis CSS do site original */
:root {
    --primary-color: #4361ee;
    --secondary-color: #d877ca;
    --terciary-color: #686efe;
    --quaternary-color: #303435;
    --btn-gradient: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    --btn-gradient-hover: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    --btn-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.3);
    --btn-radius: 1.875rem;
    --transition-transform: transform 0.3s ease;
}

/* Ajuste no body para páginas legais */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Espaço para o header fixo */
}

/* Header específico para páginas legais */
header {
    background-color: var(--primary-color) !important;
    backdrop-filter: none !important;
}

header .nav-menu a {
    color: #fff !important;
}

header .nav-menu a:hover {
    color: var(--secondary-color) !important;
}

header .nav-menu .btn-teste-gratis {
    background: var(--btn-gradient) !important;
    color: #fff !important;
}

header .nav-menu .btn-teste-gratis:hover {
    background: var(--btn-gradient-hover) !important;
    transform: translateY(-2px);
}

/* Container principal das páginas legais */
.legal-document {
    background-color: #f8f8f8;
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

/* Botão de voltar */
.back-to-home {
    margin-bottom: 2rem;
    text-align: left;
    padding-left: 0; /* Manter alinhado à esquerda do container maior */
}

.btn-back {
    display: inline-flex;
    align-items: center;
    background: var(--btn-gradient);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: var(--btn-radius);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: var(--btn-shadow);
    transition: var(--transition-transform), background 0.3s ease;
}

.btn-back:hover {
    background: var(--btn-gradient-hover);
    transform: translateY(-2px);
    color: #fff;
}

.legal-content {
    max-width: 1200px; /* Container maior */
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.1);
    padding: 3rem;
    line-height: 1.7;
}

/* Container interno para texto centralizado como col-8 */
.legal-content-inner {
    max-width: 66.666667%; /* Equivale a col-8 (8/12) */
    margin: 0 auto;
    width: 100%;
}

/* Tipografia seguindo o padrão do site */
.legal-content h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 0.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

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

.legal-content .subtitle {
    color: #666;
    font-size: 1.3rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Roboto', sans-serif;
}

/* Meta informações do documento */
.document-meta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    border-radius: 10px;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    color: #666;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Seções do documento */
.legal-section {
    margin-bottom: 3.5rem;
    background: rgba(255, 255, 255, 0.3);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(67, 97, 238, 0.05);
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: 'Roboto', sans-serif;
    position: relative;
    padding-bottom: 0.5rem;
}

.legal-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 1px;
}

.legal-section h3 {
    color: var(--terciary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-family: 'Roboto', sans-serif;
}

.legal-section h4 {
    color: var(--quaternary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
    font-family: 'Roboto', sans-serif;
}

.legal-section p {
    color: #555;
    margin-bottom: 1.2rem;
    text-align: justify;
    font-size: 1rem;
    line-height: 1.7;
}

/* Listas estilizadas */
.legal-section ul, .legal-section ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-section li {
    color: #555;
    margin-bottom: 0.8rem;
    line-height: 1.7;
    position: relative;
}

.legal-section ul li::before {
    content: '●';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -1.2rem;
}

/* Cards especiais */
.company-info, .contact-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1.5rem 0;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-info:hover, .contact-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.12);
}

.company-info h3, .contact-info h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Footer do documento */
.document-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--terciary-color) 100%);
    color: #fff;
    padding: 2rem;
    margin-top: 3rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.2);
}

.document-footer p {
    margin-bottom: 0.5rem;
    color: #fff;
}

.document-footer ul {
    margin-bottom: 1rem;
    list-style: none;
    padding: 0;
}

.document-footer li {
    margin-bottom: 0.3rem;
    color: #fff;
}

.copyright {
    font-weight: 600;
    color: #fff;
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.language-note, .legal-note {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Animações suaves */
.legal-content {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivo - Tablet */
@media (max-width: 768px) {
    .legal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .legal-content-inner {
        max-width: 90%; /* Mais largura no tablet */
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-content .subtitle {
        font-size: 1.1rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.3rem;
    }
    
    .legal-section h4 {
        font-size: 1.1rem;
    }
    
    .legal-section ul,
    .legal-section ol {
        padding-left: 1.5rem;
    }
    
    .document-meta {
        padding: 1.2rem;
    }
}

/* Responsivo - Mobile */
@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }
    
    .legal-content {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
        border-radius: 15px;
    }
    
    .legal-content-inner {
        max-width: 100%; /* Largura total no mobile */
    }
    
    .legal-content h1 {
        font-size: 1.8rem;
    }
    
    .legal-content .subtitle {
        font-size: 1rem;
    }
    
    .document-meta {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .document-footer {
        padding: 1.5rem;
    }
    
    .legal-section p {
        font-size: 0.95rem;
    }
}

/* Melhorias para acessibilidade */
.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.legal-section a:hover {
    border-bottom-color: var(--primary-color);
}

.legal-section a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Estilos para impressão */
@media print {
    .legal-document {
        background: none;
        padding: 0;
    }
    
    .legal-content {
        box-shadow: none;
        border-radius: 0;
        padding: 1rem;
        margin: 0;
        max-width: 100%;
    }
    
    .legal-section {
        page-break-inside: avoid;
    }
    
    .legal-section h2 {
        page-break-after: avoid;
    }
    
    .document-footer {
        background: #f0f0f0 !important;
        color: #000 !important;
        box-shadow: none;
    }
    
    .document-footer p,
    .document-footer li {
        color: #000 !important;
    }
} 