/* terms.css - Legal Page Styling */
.legal-page-wrapper {
    padding-top: 120px;
    padding-bottom: 80px;
    background-color: #fff;
    min-height: 80vh;
}

.legal-main-title {
    font-family: 'Jost', sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 2px;
    color: #003153;
    text-transform: uppercase;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar */
.legal-sidebar {
    position: sticky;
    top: 150px;
    align-self: start;
    border-right: 1px solid #eee;
    padding-right: 20px;
}

.sidebar-title {
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    list-style: none;
    margin-bottom: 40px;
}

.sidebar-nav li {
    margin-bottom: 12px;
}

.sidebar-nav a {
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: #003153;
    font-weight: 500;
}

.toc-container {
    margin-top: 40px;
}

.toc-header {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.toc-list {
    list-style: none;
    padding-left: 10px;
    border-left: 2px solid #f0f0f0;
}

.toc-list li {
    margin-bottom: 10px;
}

.toc-list a {
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.toc-list a:hover {
    color: #003153;
}

/* Content */
.legal-content {
    font-family: 'Jost', sans-serif;
    color: #444;
    line-height: 1.8;
}

.update-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 40px;
    font-style: italic;
}

.legal-content section {
    margin-bottom: 50px;
    scroll-margin-top: 140px;
    /* Offset for sticky header */
}

.legal-content h2 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #003153;
    margin-bottom: 20px;
}

.legal-content p {
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: justify;
}

@media (max-width: 992px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: static;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 30px;
        margin-bottom: 40px;
    }

    .legal-main-title {
        font-size: 2rem;
    }
}