/* =========================================================
   PATHIFY PROFESSIONAL NETWORK THEME (LEGAL PAGES)
   =========================================================
   This CSS provides a clean, modern, corporately acceptable
   style for legal documents, based on professional network
   landing page designs. It includes a modern side-navigation.
   ========================================================= */

/* --- 1. Root Variables & Reset --- */
:root {
    /* Main Brand Colors from Pathify design */
    --primary: #16A4A0;           /* The distinct cyan/teal */
    --logo-start: #16A4A0;      /* logo "Path" part */
    --gray-text: #64748B;        /* Medium-dark slate gray for descriptions, legal text, links */
    --light-gray: #F3F4F6;       /* Very light gray for section backgrounds, borders, outline button background hover */
    --border-color: #e2e8f0;    /* For subtle horizontal section lines and button outlines */

    /* Additional structural colors for professional high-contrast readability */
    --text-header: #0f172a;     /* Dark slate for all headings */
    --sidebar-text: #ffffff;    /* Current state. But for side-nav text on hover, I will use teal on white/light gray */
    --text-paragraph: var(--gray-text); /* Descriptions use gray text */
    --text-on-light-primary: var(--primary); /* Teal text on light backgrounds */
    --text-link: var(--primary); /* All links in paragraphs are teal */

    /* Vector style hover effect colors */
    --primary-hover: #128280;   /* Slightly darker teal for filled button hover */
    --light-gray-hover: rgba(22, 164, 160, 0.1); /* Soft cyan tint for side-nav link and outline button background hover */
    --primary-blue: #14b8a6;       /* Teal */
    --primary-blue-hover: #0d9488; /* Darker Teal */
    --light-blue-bg: #e0f8f7;      /* Pale Teal for backgrounds */
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-color: #f9fafb;
    --border-color: #e5e7eb;
    --white: #ffffff;
    --warning: #f59e0b;
    /* Professional shadow */
    --shadow-subtle: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* This enables the smooth scrolling effect when clicking sidebar links */
    scroll-behavior: smooth;
    /* Adds padding so the sticky navigation doesn't cut off the top of headings */
    scroll-padding-top: 40px; 
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #ffffff; /* Main page background is pure white */
    color: var(--text-paragraph); /* Standard text uses gray slate */
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- 2. Layout & Container --- */
.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.03); /* Subtle corporate shadow */
}

/* --- 3. Sidebar Navigation --- */
.sidebar {
    width: 280px;
    background-color: #ffffff; /* Updated to pure white to match the top header style */
    border-right: 1px solid var(--border-color); /* Added subtle separator */
    padding: 3rem 2rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    margin-top: 0;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    color: var(--text-header);
    font-weight: 700;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    color: var(--text-paragraph); /* Normal state text is dark gray slate */
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.9rem 1.2rem;
    border-radius: 8px; /* Slightly softer corners for vector-style feel */
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    font-weight: 600;
    font-size: 1rem;
}

.sidebar a:hover {
    background-color: var(--light-gray-hover); /* Soft cyan-tint background on hover */
    color: var(--primary); /* Text color changes to cyan/teal on hover */
    box-shadow: var(--shadow-subtle);
}

/* CSS hook for an active state (can be applied with JS or structured data) */
.sidebar a.active {
    color: var(--primary); /* Active state text color */
    background-color: var(--light-gray-hover);
    font-weight: 700;
}

/* --- 4. Main Content Area --- */
.content {
    flex: 1;
    padding: 4rem 5rem;
    box-sizing: border-box;
}

.content h1 {
    font-size: 3rem; /* Larger, bold corporate heading */
    color: var(--text-header);
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em; /* Tighter spacing for a professional feel */
}

/* Modern vector-style description text */
.last-updated {
    font-size: 0.95rem;
    color: var(--gray-text); /* Use gray slate for descriptions */
    margin-bottom: 3rem;
    font-weight: 500;
}

/* Links within paragraphs use the brand cyan/teal */
.content a {
    color: var(--text-link);
    text-decoration: none;
    font-weight: 600;
}
.content a:hover {
    text-decoration: underline;
}

/* Soft, clean corporate disclaimer (replaces Bulky Box) */
.disclaimer {
    color: var(--gray-text); /* Descriptions use gray text */
    padding: 0; /* Remove padding/borders - it's just modern vector-style legal text now */
    border-left: none;
    border-radius: 0;
    margin-bottom: 4rem;
    font-size: 1rem;
    font-weight: 500;
    font-style: italic;
    opacity: 0.85; /* Slightly softer than main text */
}
/* Re-style links inside the description to be teal and bold, matching Pathify legal text */
.disclaimer a {
    color: var(--primary);
    font-weight: 600;
    font-style: normal;
}

/* --- 5. Sections & Typography --- */
section {
    margin-bottom: 5rem;
    padding-top: 1rem;
    border-bottom: 1px solid var(--border-color); /* Maintain horizontal lines */
    padding-bottom: 4rem;
}

section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

section h2 {
    font-size: 2.2rem;
    color: var(--text-header);
    margin-bottom: 1rem;
    margin-top: 0;
    font-weight: 700;
    letter-spacing: -0.01em;
}

section h3 {
    font-size: 1.4rem;
    color: var(--text-header);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

section p {
    margin-bottom: 1.25rem;
    color: var(--text-paragraph); /* Use gray slate for main paragraphs */
    font-weight: 400;
}

/* Lists within sections */
section ul, section ol {
    list-style-position: inside;
    margin-bottom: 1.5rem;
    color: var(--text-paragraph);
    font-weight: 400;
}
section li {
    margin-bottom: 0.5rem;
}

/* --- 6. Modern Button Styles (Can be used on any page) --- */
/* Base button styles with large vector-style radius */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px; /* Vector-style large radius */
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn:active {
    transform: scale(0.98); /* Modern click/press vector effect */
}

/* Modern corporate filled button with cyan/teal background */
.btn-primary {
    background-color: var(--primary);
    color: #ffffff; /* White text on dark cyan */
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 8px 12px rgba(22, 164, 160, 0.2);
}

/* Vector-style modern outline buttons (gray outline, dark/teal text) */
.btn-outline-gray {
    background-color: transparent;
    border: 1px solid var(--border-color); /* Subtler outline */
    color: var(--text-header); /* Normal text is dark slate for modern social logins */
}
.btn-outline-gray:hover {
    background-color: var(--light-gray-hover); /* Soft cyan tint for hover background */
    border-color: #cbd5e1; /* Slightly darker gray border on hover */
    box-shadow: var(--shadow-subtle);
}

/* "Sign in with email" style button from image (gray outline, cyan/teal text) */
.btn-outline-primary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-on-light-primary); /* Teal text color */
}
.btn-outline-primary:hover {
    background-color: var(--light-gray-hover);
    border-color: #cbd5e1;
    box-shadow: var(--shadow-subtle);
}
/* ---- FOOTER ---- */
footer {
    text-align: center;
    padding: 60px 20px 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
}

.footer-links a:hover{
    color: var(--primary-blue-hover);
    transition: all 0.2s ease;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.social-links a {
    color: var(--primary-blue);
    font-size: 18px;
}

.copyright {
    color: var(--text-muted);
    font-size: 13px;
}
/* --- 7. Mobile Responsiveness --- */
@media (max-width: 800px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 2rem 1.5rem;
        border-right: none;
        border-bottom: 1px solid var(--border-color); /* Separator below the top navigation column */
    }

    .sidebar h2 {
        border-bottom: none;
        margin-bottom: 1.5rem;
        padding-bottom: 0;
    }

    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .sidebar li {
        margin-bottom: 0;
    }
    
    .sidebar a {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }

    .content {
        padding: 3rem 1.5rem;
    }

    .content h1 {
        font-size: 2.2rem;
    }
}
