/* Legal Page Styles */

.legal-section {
    padding: 3rem 0 5rem;
    background-color: rgba(25, 25, 25, 0.98);
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #3a3a3a;
}

.legal-header h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.last-updated {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 5px;
    padding: 1.5rem;
}

/* Table of Contents */
.legal-toc {
    background: #222222;
    padding: 1rem;
    border-radius: 3px;
    margin-bottom: 1.5rem;
    border: 1px solid #333;
}

.legal-toc h3 {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-toc ol {
    margin: 0;
    padding-left: 1.2rem;
}

.legal-toc li {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.2rem;
    line-height: 1.4;
}

.legal-toc a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-toc a:hover {
    color: var(--primary-color);
}

/* Legal Blocks */
.legal-block {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #2a2a2a;
}

.legal-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-block h2 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #3a3a3a;
}

.legal-block p {
    font-size: 0.55rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.6rem;
    text-align: justify;
    hyphens: auto;
}

.legal-block p strong {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.legal-subitem {
    padding-left: 1rem;
    font-size: 0.5rem !important;
    border-left: 2px solid #333;
    margin-left: 0.5rem;
}

/* Important Notices */
.legal-important {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    padding: 0.5rem;
    font-size: 0.55rem !important;
    color: rgba(220, 53, 69, 0.8) !important;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.8rem;
    border-radius: 3px;
}

.legal-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    padding: 0.5rem;
    font-size: 0.55rem !important;
    color: rgba(255, 193, 7, 0.8) !important;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.8rem;
    border-radius: 3px;
}

/* FAQ Items */
.faq-item {
    background: #222222;
    border: 1px solid #333;
    border-radius: 3px;
    padding: 0.6rem;
    margin-bottom: 0.5rem;
}

.faq-item h4 {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.faq-item p {
    font-size: 0.5rem !important;
    margin-bottom: 0 !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Footer notes */
.legal-footer-note {
    font-size: 0.5rem !important;
    font-style: italic;
    color: rgba(255, 255, 255, 0.4) !important;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #333;
}

.legal-version {
    font-size: 0.45rem !important;
    color: rgba(255, 255, 255, 0.3) !important;
    text-align: right;
    margin-top: 0.5rem;
}

/* Scrollbar Styling */
.legal-content::-webkit-scrollbar {
    width: 5px;
}

.legal-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.legal-content::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 2px;
}

.legal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-section {
        padding: 2rem 0;
    }

    .legal-content {
        padding: 1rem;
    }

    .legal-header h1 {
        font-size: 1.1rem;
    }

    .legal-block h2 {
        font-size: 0.7rem;
    }

    .legal-block p {
        font-size: 0.5rem;
    }

    .faq-item h4 {
        font-size: 0.55rem;
    }

    .faq-item p {
        font-size: 0.45rem !important;
    }

    .legal-subitem {
        font-size: 0.45rem !important;
    }
}

/* Print Styles */
@media print {
    .legal-section {
        background: white;
        padding: 0;
    }

    .legal-content {
        background: white;
        border: none;
        max-width: 100%;
    }

    .legal-block p,
    .legal-block h2,
    .faq-item h4,
    .faq-item p {
        color: black !important;
    }

    .navbar,
    .footer {
        display: none;
    }
}
