/**
 * Loja do Chope - Páginas Legais
 * Estilos para FAQ, Termos, Privacidade e Comodato
 * Compatível com tema Strute
 */

:root {
    --ldc-primary: #f59e0b;      /* Amber 500 - Cerveja */
    --ldc-primary-light: #fcd34d; /* Amber 300 */
    --ldc-secondary: #1f2937;     /* Gray 800 */
    --ldc-bg-dark: #111827;       /* Gray 900 */
    --ldc-text: #d1d5db;          /* Gray 300 */
    --ldc-text-light: #f3f4f6;    /* Gray 100 */
    --ldc-border: #374151;        /* Gray 700 */
    --ldc-danger: #ef4444;        /* Red 500 */
}

/* ========================================
   Container Principal
   ======================================== */
.ldc-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    color: var(--ldc-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.75;
}

/* ========================================
   Header
   ======================================== */
.ldc-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.ldc-header .ldc-icon {
    font-size: 4rem;
    color: var(--ldc-primary);
    margin-bottom: 1rem;
    display: block;
}

.ldc-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

@media (max-width: 640px) {
    .ldc-title {
        font-size: 1.75rem;
    }
}

.ldc-highlight {
    color: var(--ldc-primary);
}

.ldc-subtitle {
    font-size: 1.125rem;
    color: #9ca3af;
    font-weight: 600;
}

.ldc-divider {
    width: 6rem;
    height: 4px;
    background: var(--ldc-primary);
    border: none;
    border-radius: 9999px;
    margin: 1.5rem auto 0;
}

/* ========================================
   Seções
   ======================================== */
.ldc-section {
    margin-bottom: 3rem;
}

.ldc-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ldc-primary-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ldc-section-title i {
    color: var(--ldc-primary);
}

/* ========================================
   FAQ Accordion
   ======================================== */
.ldc-faq-item {
    background: var(--ldc-secondary);
    border-left: 4px solid var(--ldc-primary);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.ldc-faq-item:hover {
    background: #2d3748;
}

.ldc-faq-question {
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.ldc-faq-question h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ldc-text-light);
    margin: 0;
    flex: 1;
}

.ldc-icon-toggle {
    color: var(--ldc-primary);
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.ldc-icon-toggle.open {
    transform: rotate(45deg);
}

.ldc-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 1.25rem;
}

.ldc-faq-item.active .ldc-faq-answer {
    padding-bottom: 1.25rem;
}

.ldc-faq-answer p {
    margin-bottom: 0.75rem;
}

.ldc-faq-answer p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Content Box (Termos, Privacidade, Comodato)
   ======================================== */
.ldc-content-box {
    background: var(--ldc-secondary);
    border-left: 4px solid var(--ldc-primary);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
    .ldc-content-box {
        padding: 1.25rem;
    }
}

.ldc-h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ldc-primary-light);
    border-bottom: 2px solid var(--ldc-border);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ldc-h2:first-of-type {
    margin-top: 0;
}

.ldc-h2 i {
    color: var(--ldc-primary);
}

.ldc-h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ldc-text-light);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ========================================
   Listas
   ======================================== */
.ldc-list {
    list-style: none;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.ldc-list li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.ldc-list li::before {
    content: '•';
    color: var(--ldc-primary);
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

.ldc-list-numbered {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.ldc-list-numbered li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.ldc-list-numbered li::marker {
    color: var(--ldc-primary);
    font-weight: bold;
}

/* ========================================
   Boxes de Destaque
   ======================================== */
.ldc-alert-box {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--ldc-danger);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.ldc-alert-box p {
    margin: 0;
    color: #fca5a5;
}

.ldc-highlight-box {
    background: rgba(79, 70, 229, 0.2);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
    text-align: center;
}

.ldc-highlight-box p {
    margin: 0;
    color: #fff;
}

.ldc-clause-box {
    background: rgba(55, 65, 81, 0.5);
    border-left: 4px solid var(--ldc-primary);
    padding: 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.ldc-clause-box h3 {
    margin-top: 0;
    color: var(--ldc-text-light);
}

.ldc-clause-box p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Links
   ======================================== */
.ldc-page-container a {
    color: var(--ldc-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ldc-page-container a:hover {
    color: var(--ldc-primary-light);
    text-decoration: underline;
}

/* ========================================
   Strong/Bold
   ======================================== */
.ldc-page-container strong {
    color: var(--ldc-primary);
    font-weight: 600;
}

/* ========================================
   HR
   ======================================== */
.ldc-hr {
    border: none;
    border-top: 1px solid var(--ldc-border);
    margin: 2rem 0;
}

/* ========================================
   Data/Footer
   ======================================== */
.ldc-date-update {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.ldc-date-footer {
    font-style: italic;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 2rem;
    border-top: 1px solid var(--ldc-border);
    padding-top: 1rem;
    text-align: center;
}

/* ========================================
   Responsividade
   ======================================== */
@media (max-width: 768px) {
    .ldc-page-container {
        padding: 1rem 0.75rem;
    }
    
    .ldc-header .ldc-icon {
        font-size: 3rem;
    }
    
    .ldc-section-title {
        font-size: 1.25rem;
    }
    
    .ldc-h2 {
        font-size: 1.25rem;
    }
    
    .ldc-faq-question h3 {
        font-size: 0.9rem;
    }
}

/* ========================================
   Compatibilidade com Tema Strute
   ======================================== */
.strute-theme .ldc-page-container,
.theme-strute .ldc-page-container {
    /* Herda estilos do tema se necessário */
}

/* Remove estilos padrão de páginas WordPress */
.ldc-page-container p {
    margin-bottom: 1rem;
}

.ldc-page-container ul,
.ldc-page-container ol {
    margin-bottom: 1rem;
}
