/* Legal Pages Specific Styles */
.legal-content {
    background-color: var(--bg-dark);
    padding: 4rem 0;
    min-height: 100vh;
}

.legal-content .container {
    max-width: 900px;
}

.legal-content h1 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--accent-teal);
    padding-bottom: 1rem;
}

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

.legal-section h2 {
    font-size: 1.8rem;
    color: var(--accent-teal);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.legal-section h3 {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
}

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

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

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

.legal-section a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Legal section with highlight */
.legal-section.highlight {
    background-color: rgba(49, 183, 169, 0.05);
    border-left: 4px solid var(--accent-teal);
    padding: 1.5rem;
    border-radius: 4px;
}

/* Table of contents */
.toc {
    background-color: rgba(49, 183, 169, 0.05);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.toc h3 {
    color: var(--accent-teal);
    margin-top: 0;
}

.toc ol {
    margin-left: 1.5rem;
}

.toc li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.toc a {
    color: var(--accent-teal);
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

/* Disclaimer boxes */
.disclaimer {
    background-color: rgba(245, 184, 95, 0.05);
    border-left: 4px solid var(--accent-amber);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.disclaimer strong {
    color: var(--accent-amber);
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.legal-table th,
.legal-table td {
    text-align: left;
    vertical-align: top;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-table th {
    color: var(--text-light);
    font-weight: 600;
}

/* Anchor offset for fixed navbar */
.legal-section[id],
.legal-section h3[id] {
    scroll-margin-top: 90px;
}

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

    .legal-content h1 {
        font-size: 1.8rem;
    }

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

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

    .toc {
        padding: 1rem;
    }

    .disclaimer {
        padding: 0.75rem 1rem;
    }
}
