:root {
    --primary-color: #007aff;
    --primary-dark: #0056b3;
    --primary-light: #4dabf7;
    --background-color: #e0edfb;
    --bg-color: #ffffff;
    --surface-color: #ffffff;
    --text-primary: #1c1c1e;
    --text-secondary: #3a3a3c;
    --text-muted: #8e8e93;
    --border-color: #e5e5ea;
    --border-light: #f2f2f7;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--background-color) 0%, #f4f8fc 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container { max-width: 1200px; margin: 0 auto; padding: 1rem; }

/* Header */
.header { text-align: center; margin-bottom: 2rem; padding: 1.5rem 0; }
.header-content h1 {
    color: var(--text-primary); font-size: clamp(2rem, 6vw, 3rem); font-weight: 800;
    margin-bottom: 0.75rem; letter-spacing: -0.025em; line-height: 1.1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.header-content p {
    color: var(--text-secondary); font-size: clamp(0.875rem, 3vw, 1.125rem);
    max-width: 600px; margin: 0 auto; font-weight: 400; line-height: 1.6;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none; position: fixed; top: 1rem; left: 1rem; z-index: 1000;
    background: var(--surface-color); border: none; border-radius: var(--radius-lg);
    padding: 0.75rem; box-shadow: var(--shadow-lg); cursor: pointer; transition: all 0.2s ease;
}
.mobile-nav-toggle:hover { transform: scale(1.05); box-shadow: var(--shadow-xl); }
.mobile-nav-toggle svg { stroke: var(--primary-color); stroke-width: 2; stroke-linecap: round; }

/* Main Content Layout */
.main-content { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }

/* Sidebar */
.sidebar {
    background: var(--surface-color); border-radius: var(--radius-xl); padding: 1.5rem;
    box-shadow: var(--shadow-lg); border: 1px solid var(--border-light); backdrop-filter: blur(10px); position: relative;
}
.sidebar-header {
    display: none; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-light);
}
.sidebar-header h2 { color: var(--text-primary); font-size: 1.25rem; font-weight: 600; }
.close-sidebar {
    background: none; border: none; padding: 0.5rem; border-radius: var(--radius-md);
    cursor: pointer; color: var(--text-secondary); transition: all 0.2s ease;
}
.close-sidebar:hover { background: var(--border-light); color: var(--text-primary); }
.close-sidebar svg { stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.navigation { display: flex; flex-direction: column; gap: 0.5rem; }
.nav-item {
    display: flex; align-items: center; padding: 1rem 1.25rem; border-radius: var(--radius-lg);
    text-decoration: none; color: var(--text-secondary); font-weight: 500;
    transition: all 0.2s ease; position: relative; overflow: hidden; min-height: 56px;
}
.nav-item::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    opacity: 0; transition: opacity 0.2s ease; z-index: 0;
}
.nav-item:hover { color: var(--primary-color); background: rgba(0, 122, 255, 0.05); transform: translateX(4px); }
.nav-item.active {
    color: white; background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%); box-shadow: var(--shadow-md);
}
.nav-item.active::before { opacity: 1; }
.nav-icon { margin-right: 1rem; display: flex; align-items: center; z-index: 1; position: relative; flex-shrink: 0; }
.nav-icon svg { stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; width: 20px; height: 20px; }
.nav-text { flex: 1; font-size: 0.875rem; font-weight: 500; line-height: 1.4; z-index: 1; position: relative; }

/* Content Area */
.content {
    background: var(--surface-color); border-radius: var(--radius-xl); padding: 1.5rem;
    box-shadow: var(--shadow-lg); border: 1px solid var(--border-light);
}
.section-header {
    display: flex; align-items: center; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--border-light);
}
.section-icon {
    margin-right: 1rem; display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; background: var(--primary-color); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); flex-shrink: 0;
}
.section-icon svg { stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; width: 24px; height: 24px; }
.section-header h2 {
    color: var(--text-primary); font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2;
}

/* Legal Content */
.legal-content { display: flex; flex-direction: column; gap: 1.5rem; }
.legal-article {
    background: var(--bg-color); border-radius: var(--radius-xl); padding: 1.5rem;
    border: 1px solid var(--border-light); transition: all 0.3s ease; position: relative; overflow: hidden;
}
.legal-article::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
}
.legal-article:hover { box-shadow: var(--shadow-xl); transform: translateY(-2px); }
.legal-article h3 {
    color: var(--text-primary); font-size: 1.125rem; font-weight: 600; margin-bottom: 0.75rem; letter-spacing: -0.025em;
}
.legal-article p, .legal-article ul { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.7; font-weight: 400; }
.legal-article p { margin-bottom: 1rem; }
.legal-article p:last-child { margin-bottom: 0; }
.legal-article ul { margin-left: 1.5rem; margin-top: 0.5rem; }
.legal-article li { margin-bottom: 0.5rem; }

.legal-link {
    color: var(--primary-color); text-decoration: none; font-weight: 500;
    border-bottom: 1px solid transparent; transition: all 0.3s ease; position: relative;
}
.legal-link:hover { color: var(--primary-dark); border-bottom-color: var(--primary-color); }

/* Support Section */
.support-section { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2rem; }
.support-card {
    background: var(--bg-color); border-radius: var(--radius-xl); padding: 1.5rem;
    border: 1px solid var(--border-light); transition: all 0.3s ease; position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.support-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
}
.support-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.card-header h3 { color: var(--text-primary); font-size: 1.125rem; font-weight: 600; margin-bottom: 0.75rem; letter-spacing: -0.025em; }
.card-content { flex: 1; }
.card-content p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.7; margin-bottom: 1rem; font-weight: 400; }
.card-actions { margin-top: auto; }

/* Button Styles */
.btn {
    display: inline-flex; align-items: center; justify-content: center; padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg); font-size: 0.875rem; font-weight: 600; text-decoration: none;
    border: none; cursor: pointer; transition: all 0.2s ease; position: relative; overflow: hidden;
    white-space: nowrap; min-height: 48px; width: 100%;
}
.btn-primary { background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* Team Cards – Glassmorphism */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}
.team-card-glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 32px rgba(0, 122, 255, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(.22,1,.36,1), box-shadow 0.35s ease;
}
.team-card-glass:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 122, 255, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06);
}
.team-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
}
.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(0, 122, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.15);
    margin-bottom: 1.25rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.team-card-glass:hover .team-photo {
    border-color: var(--primary-color);
    transform: scale(1.05);
}
.team-info { display: flex; flex-direction: column; align-items: center; }
.team-name { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.3rem; letter-spacing: -0.02em; }
.team-role { font-size: 0.8rem; color: var(--primary-color); margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
.team-socials { display: flex; gap: 0.75rem; justify-content: center; }
.social-btn {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    transition: all 0.25s ease; text-decoration: none;
}
.social-btn.linkedin {
    background: rgba(0, 119, 181, 0.1); color: #0077B5;
}
.social-btn.linkedin:hover {
    background: #0077B5; color: #fff; transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.35);
}
.social-btn.github {
    background: rgba(36, 41, 47, 0.08); color: #24292f;
}
.social-btn.github:hover {
    background: #24292f; color: #fff; transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(36, 41, 47, 0.3);
}

/* Special Thanks Cards */
.thanks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}
.thanks-card-glass {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.thanks-card-glass:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 122, 255, 0.1);
}
.thanks-photo {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    border: 3px solid rgba(0, 122, 255, 0.15);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.thanks-avatar {
    width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 700;
    box-shadow: 0 2px 12px rgba(0, 122, 255, 0.2);
}
.thanks-info { flex: 1; }
.thanks-name { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.15rem; }
.thanks-title { font-size: 0.78rem; color: var(--primary-color); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; }
.thanks-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }

/* Sidebar Overlay */
.sidebar-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); z-index: 999; backdrop-filter: blur(4px); }

/* Responsive Design */
@media (min-width: 768px) {
    .container { padding: 2rem 1.5rem; }
    .header { margin-bottom: 3rem; padding: 2rem 0; }
    .main-content { grid-template-columns: 320px 1fr; gap: 2rem; }
    .sidebar { position: sticky; top: 2rem; }
    .content { padding: 2.5rem; }
    .support-section { margin-top: 3rem; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .btn { width: auto; }
}
@media (max-width: 767px) {
    .mobile-nav-toggle { display: block; }
    .sidebar { position: fixed; top: 0; left: -100%; width: 85%; max-width: 320px; height: 100vh; z-index: 1000; transition: left 0.3s ease; border-radius: 0; overflow-y: auto; }
    .sidebar.active { left: 0; }
    .sidebar-header { display: flex; }
    .content { margin-top: 4rem; }
}
@media (max-width: 480px) {
    .container { padding: 0.75rem; }
    .header { margin-bottom: 1.5rem; padding: 1rem 0; }
    .content { padding: 1rem; margin-top: 3.5rem; }
    .thanks-card-glass { flex-direction: column; text-align: center; }
    .thanks-info { text-align: center; }
}


/* Subheadings and Links inside Legal Articles */
.legal-article h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.legal-article a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-article a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-color);
}

/* Changelog */
.changelog {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}
.changelog-entry {
    background: var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border-left: 4px solid var(--primary-color);
}
.changelog-version {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.changelog-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-style: italic;
}
.changelog-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Nested lists */
.legal-article ul ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    margin-left: 1.5rem;
    list-style-type: circle;
}

