/* Legal Pages Layout */
.legal-header {
    background-color: var(--color-light-grey);
    padding: 140px 0 60px;
    /* Account for fixed header */
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.legal-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.legal-header p.subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.legal-layout {
    display: flex;
    gap: 60px;
    padding: 80px 0;
    align-items: flex-start;
}

.legal-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
    /* Adjusted for header height */
    height: fit-content;
}

.legal-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.legal-nav-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 15px;
    font-weight: 600;
}

.legal-nav a {
    padding: 12px 15px;
    color: #555;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s;
    text-decoration: none;
    display: block;
}

.legal-nav a:hover {
    background-color: #f5f5f5;
    color: #000;
}

.legal-nav a.active {
    background-color: var(--color-primary);
    color: #fff;
}

.legal-content {
    flex: 1;
    max-width: 800px;
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

.legal-content section {
    padding: 0;
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.legal-content h3 {
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.legal-content p {
    margin-bottom: 15px;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
    list-style-type: disc;
}

.legal-content li {
    margin-bottom: 8px;
}

/* Highlight boxes for placeholders */
.placeholder-highlight {
    background-color: #fff3cd;
    padding: 2px 5px;
    border-radius: 4px;
    border: 1px dashed #ffecb5;
    color: #856404;
    font-family: monospace;
}

@media (max-width: 900px) {
    .legal-layout {
        flex-direction: column;
        gap: 40px;
    }

    .legal-sidebar {
        width: 100%;
        position: static;
        top: auto;
    }

    .legal-nav {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        /* Space for scrollbar */
        gap: 10px;
    }

    .legal-nav a {
        background-color: #f5f5f5;
        border: 1px solid #eee;
    }

    .legal-nav-title {
        display: none;
    }
}