/* Trade Pulse Technologies — Legal Pages Styles */

.legal-page {
    padding: 10rem 0 6rem;
}

.legal-page h1 {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.legal-page .last-updated {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.toc {
    background: var(--secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    border: 1px solid var(--border);
}

.toc h2 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc ul li {
    margin-bottom: 0.5rem;
}

.toc ul li a {
    color: var(--text);
    opacity: 0.8;
}

.toc ul li a:hover {
    opacity: 1;
    color: var(--accent);
}

.legal-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.legal-section h2 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.legal-section h3 {
    color: var(--text);
    margin: 1.5rem 0 1rem;
    font-size: 1.2rem;
}

.legal-section p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.legal-section ul {
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-section ul li {
    margin-bottom: 0.5rem;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    z-index: 1001;
    width: 0;
    transition: width 0.1s linear;
}

.print-button {
    background: var(--secondary);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    margin-bottom: 2rem;
}

.print-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

@media print {
    nav, footer, .back-to-top, .progress-bar, .print-button, .toc {
        display: none !important;
    }
    .legal-page { padding-top: 0; }
    body { background: #fff; color: #000; }
    .legal-section { border: 1px solid #ddd; }
}
