/* ============================================
   LEGAL.CSS - FlowTrading Global
   Estilos para páginas legales y de contenido
============================================ */

@import url('../main.css');
@import url('../layout.css');
@import url('../components.css');

/* Legal Page */
.legal-page {
    min-height: 100vh;
    padding-top: calc(var(--ticker-height) + var(--header-height) + 60px);
    padding-bottom: 60px;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.legal-container h1 {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: var(--text-light-muted);
    margin-bottom: 3rem;
    font-size: 0.9rem;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-gold);
}

.legal-section p {
    color: var(--text-light-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section li {
    color: var(--text-light-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: var(--gold);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--gold-light);
}

/* Light Mode */
body.light-mode .legal-section p,
body.light-mode .legal-section li {
    color: var(--text-dark-secondary);
}

body.light-mode .last-updated {
    color: var(--text-dark-muted);
}

/* FAQ Page Styles */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.faq-container h1 {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    text-align: center;
}

.faq-intro {
    text-align: center;
    color: var(--text-light-muted);
    margin-bottom: 3rem;
}

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.faq-category-btn {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid var(--border-gold);
    color: var(--text-light);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.faq-category-btn:hover,
.faq-category-btn.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-light);
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(212, 175, 55, 0.1);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light-secondary);
    line-height: 1.7;
}

/* Legal Intro - Important Notice Box */
.legal-intro {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

body.light-mode .legal-intro {
    background: rgba(212, 175, 55, 0.15);
    color: var(--text-dark);
}

/* Sub-section headers (h3) */
.legal-section h3 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

body.light-mode .legal-section h3 {
    color: var(--text-dark);
}

/* Strong text inside paragraphs */
.legal-section strong {
    color: var(--gold);
}

body.light-mode .legal-section strong {
    color: var(--gold-dark);
}

/* Contact Info Box */
.contact-info {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

body.light-mode .contact-info {
    background: rgba(0, 0, 0, 0.02);
}

/* Legal Footer */
.legal-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-gold);
    color: var(--text-light-muted);
    font-size: 0.9rem;
}

body.light-mode .legal-footer {
    color: var(--text-dark-muted);
}

/* Nested lists styling */
.legal-section ul ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Emphasis for legal warnings */
.legal-section p strong {
    display: inline;
}

/* Links in legal sections */
.legal-section a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .legal-container h1,
    .faq-container h1 {
        font-size: 2rem;
    }

    .legal-page {
        padding-top: calc(var(--ticker-height) + 80px + 40px);
    }

    .legal-section h2 {
        font-size: 1.2rem;
    }

    .legal-section h3 {
        font-size: 1rem;
    }

    .legal-intro {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .contact-info {
        padding: 1rem;
    }
}
