/**
 * ToS Page Layout Styles
 * Sidebar table-of-contents + content column, matching SCOPO legal page styling.
 */

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
}

.tos-page {
    display: flex;
    max-width: 1100px;
    margin: 2rem auto;
    gap: 2rem;
    align-items: flex-start;
}

.tos-toc {
    position: sticky;
    top: 2rem;
    width: 240px;
    flex-shrink: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 1rem;
}

.tos-toc-home-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #e74c3c;
    text-decoration: none;
    font-size: 0.9rem;
}

.tos-toc-home-link:hover {
    text-decoration: underline;
}

.tos-toc-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 0.5rem;
}

.tos-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tos-toc-item a {
    display: block;
    padding: 0.35rem 0;
    color: #34495e;
    text-decoration: none;
    font-size: 0.9rem;
}

.tos-toc-item.tos-toc-sub a {
    padding-left: 1rem;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.tos-toc-item a:hover {
    color: #e74c3c;
}

.tos-content {
    flex: 1;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 0;
}

.tos-last-updated {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.tos-draft-notice {
    background: #fff8e1;
    border-left: 4px solid #f39c12;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #7a5c00;
    margin: 0 0 2rem 0;
}

.tos-content h1 {
    color: #2c3e50;
    margin-top: 2.5rem;
    border-left: 4px solid #e74c3c;
    padding-left: 1rem;
}

.tos-content h1:first-of-type {
    margin-top: 0;
}

.tos-content h2 {
    color: #34495e;
    margin-top: 1.75rem;
}

.tos-content ul {
    padding-left: 2rem;
}

.tos-content li {
    margin-bottom: 0.5rem;
}

.tos-content strong {
    color: #2c3e50;
}

.tos-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.tos-content th,
.tos-content td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

.tos-content th {
    background: #f8f9fa;
    font-weight: 500;
}

@media (max-width: 900px) {
    .tos-page {
        flex-direction: column;
        margin: 1rem;
    }

    .tos-toc {
        position: static;
        width: auto;
        align-self: stretch;
    }

    .tos-content {
        padding: 1.5rem;
    }
}
