:root {
    --primary: #56b891;
    --primary-dark: #4a9e7d;
    --text: #1c1e21;
    --text-muted: #606770;
    --bg: #fff;
    --sidebar-bg: #f7f8fa;
    --border: #ddd;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    color: var(--text);
    display: flex;
    min-height: 100vh;
    background-color: #f9fafb;
}

/* Sidebar Styles */
.legal-sidebar {
    width: 300px;
    background: var(--sidebar-bg);
    padding: 24px;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
    display: none;
    /* Mobile first: hidden by default */
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 30px;
    display: block;
    text-decoration: none;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
}

.nav-link.active {
    background: #e7f3ff;
    color: #1877f2;
}

.nav-link svg {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Mobile Header */
.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #eee;
    width: 100%;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Main Content Area */
.legal-content {
    flex: 1;
    padding: 20px;
    /* Reduced from 40px */
    width: 100%;
}

/* Legal Card/Container (The white box with content) */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    /* Reduced from 40px */
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: #1f2d3d;
}

.legal-container h1 {
    font-size: 1.75rem;
    /* Slightly smaller on mobile */
    margin-bottom: 0.5rem;
    color: var(--primary);
    margin-top: 0;
}

.legal-container h2 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.legal-container p {
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 1rem;
}

.legal-container a {
    color: var(--primary);
    text-decoration: none;
}

.legal-container a:hover {
    text-decoration: underline;
}

/* Utility */
.mt-4 {
    margin-top: 1.5rem;
}


/* Button Specificity Fix for Legal Container */
.legal-container .btn {
    text-decoration: none;
    color: white !important;
    /* Force override for generic link styles */
}

/* Ensure Button Hover also keeps text color */
.legal-container .btn:hover {
    color: white !important;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    text-decoration: none;
}

.btn-orange {
    background-color: #FF7A00 !important;
    color: white !important;
}

.btn-orange:hover {
    background-color: #FF9A3D !important;
    text-decoration: none;
}

/* Mobile Specific Overrides */
@media (max-width: 767px) {
    .legal-sidebar {
        display: none !important;
        /* Force hide on mobile */
    }

    .legal-content {
        padding: 16px;
        /* Ensure small padding on mobile */
    }

    .legal-container {
        padding: 20px;
    }

    body {
        flex-direction: column;
        /* Stack logically on mobile */
    }
}

/* Desktop Styles */
@media (min-width: 768px) {
    .legal-sidebar {
        display: flex;
    }

    .mobile-header {
        display: none;
    }

    .legal-content {
        padding: 40px;
    }

    .legal-container {
        margin: 0 auto;
        /* Removed top margin to align better with sidebar top */
        padding: 40px;
    }

    .legal-container h1 {
        font-size: 2rem;
    }
}