/* ==========================================================================
   POLICIES.CSS - Estilos para Páginas Legais
   ========================================================================== */

/* ==========================================================================
   NAVEGAÇÃO DAS PÁGINAS LEGAIS
   ========================================================================== */
.navbar-policies,
.navbar-terms {
    background: var(--secondary-color);
    box-shadow: 0 2px 10px var(--shadow-medium);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.navbar-policies .container,
.navbar-terms .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-policies .navbar-brand,
.navbar-terms .navbar-brand {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 700;
    font-size: var(--font-size-lg);
    font-family: var(--font-display);
}

.navbar-policies .navbar-brand:hover,
.navbar-terms .navbar-brand:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.navbar-policies .navbar-nav,
.navbar-terms .navbar-nav {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-policies .nav-link,
.navbar-terms .nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.navbar-policies .nav-link:hover,
.navbar-terms .nav-link:hover {
    color: var(--primary-color);
    background: rgba(255, 204, 0, 0.1);
    text-decoration: none;
}

/* ==========================================================================
   LAYOUT PRINCIPAL DAS PÁGINAS LEGAIS
   ========================================================================== */
.policies-page,
.terms-page {
    min-height: 100vh;
    background: var(--bg-light);
    font-family: var(--font-primary);
}

.policies-main,
.terms-main {
    padding: var(--spacing-2xl) 0;
    min-height: calc(100vh - 200px);
}

.policies-header,
.terms-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-xl) 0;
    background: var(--background-color);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px var(--shadow-light);
}

.policies-header h1,
.terms-header h1 {
    color: var(--secondary-color);
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.last-update {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    font-style: italic;
    margin: 0;
}

/* ==========================================================================
   CONTEÚDO DAS PÁGINAS LEGAIS
   ========================================================================== */
.policies-content,
.terms-content {
    background: var(--background-color);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px var(--shadow-light);
    line-height: 1.7;
    max-width: none;
    margin: 0;
}

.policy-content,
.terms-content {
    font-size: var(--font-size-base);
    color: var(--text-dark);
}

/* Seções */
.policy-section,
.terms-section {
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border-light);
}

.policy-section:last-of-type,
.terms-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.policy-section h2,
.terms-section h2 {
    color: var(--secondary-color);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.policy-section h2::before,
.terms-section h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
}

.policy-section h3,
.terms-section h3 {
    color: var(--secondary-color);
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin: var(--spacing-xl) 0 var(--spacing-md) 0;
}

.policy-section h4,
.terms-section h4 {
    color: var(--text-dark);
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin: var(--spacing-lg) 0 var(--spacing-sm) 0;
}

.policy-section h5,
.terms-section h5 {
    color: var(--text-dark);
    font-size: var(--font-size-base);
    font-weight: 600;
    margin: var(--spacing-md) 0 var(--spacing-sm) 0;
}

.policy-section h6,
.terms-section h6 {
    color: var(--text-dark);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin: var(--spacing-md) 0 var(--spacing-xs) 0;
}

/* Parágrafos */
.policy-section p,
.terms-section p {
    margin-bottom: var(--spacing-md);
    text-align: justify;
    color: var(--text-dark);
    line-height: 1.8;
}

/* Listas */
.policy-section ul,
.policy-section ol,
.terms-section ul,
.terms-section ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-xl);
}

.policy-section li,
.terms-section li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
    color: var(--text-dark);
}

.policy-section ul li::marker,
.terms-section ul li::marker {
    color: var(--primary-color);
}

.policy-section ol li::marker,
.terms-section ol li::marker {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Links */
.policy-section a,
.terms-section a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: underline;
    transition: var(--transition-fast);
}

.policy-section a:hover,
.terms-section a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Destaques */
.policy-section strong,
.terms-section strong {
    color: var(--secondary-color);
    font-weight: 700;
}

.policy-section em,
.terms-section em {
    color: var(--text-light);
    font-style: italic;
}

/* Seções especiais */
.policy-section .highlight,
.terms-section .highlight {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.1), rgba(0, 153, 102, 0.1));
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    margin: var(--spacing-lg) 0;
}

.policy-section .warning,
.terms-section .warning {
    background: rgba(220, 53, 69, 0.1);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid #dc3545;
    margin: var(--spacing-lg) 0;
}

.policy-section .info,
.terms-section .info {
    background: rgba(23, 162, 184, 0.1);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid #17a2b8;
    margin: var(--spacing-lg) 0;
}

/* Footer das políticas */
.policy-footer,
.terms-footer {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    text-align: center;
    border-top: 2px solid var(--primary-color);
}

.policy-footer p,
.terms-footer p {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.policy-footer p:last-child,
.terms-footer p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   FOOTER DAS PÁGINAS LEGAIS
   ========================================================================== */
.policies-footer,
.terms-footer {
    background: var(--secondary-color);
    color: var(--text-white);
    padding: var(--spacing-xl) 0;
    margin-top: auto;
}

.policies-footer .footer-content,
.terms-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.policies-footer .footer-content p,
.terms-footer .footer-content p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: var(--transition-fast);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
}

.footer-links a:hover {
    color: var(--primary-color);
    background: rgba(255, 204, 0, 0.1);
    text-decoration: none;
}

/* ==========================================================================
   TABELA DE CONTEÚDOS (OPCIONAL)
   ========================================================================== */
.table-of-contents {
    background: var(--bg-light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-2xl);
    border: 1px solid var(--border-light);
}

.table-of-contents h3 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-lg);
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: var(--spacing-sm);
}

.table-of-contents a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.table-of-contents a:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    text-decoration: none;
}

/* ==========================================================================
   RESPONSIVIDADE ESPECÍFICA
   ========================================================================== */
@media (max-width: 768px) {
    .policies-content,
    .terms-content {
        padding: var(--spacing-lg);
    }
    
    .policies-header,
    .terms-header {
        padding: var(--spacing-lg);
    }
    
    .policies-header h1,
    .terms-header h1 {
        font-size: var(--font-size-3xl);
    }
    
    .policy-section h2,
    .terms-section h2 {
        font-size: var(--font-size-xl);
    }
    
    .policies-footer .footer-content,
    .terms-footer .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .navbar-policies .container,
    .navbar-terms .container {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .navbar-policies .navbar-nav,
    .navbar-terms .navbar-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .policies-main,
    .terms-main {
        padding: var(--spacing-lg) 0;
    }
    
    .policies-content,
    .terms-content {
        padding: var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    
    .policy-section,
    .terms-section {
        margin-bottom: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }
    
    .policy-section ul,
    .policy-section ol,
    .terms-section ul,
    .terms-section ol {
        padding-left: var(--spacing-lg);
    }
} 