:root {
    --primary-color: #A060D0;
    --primary-dark: #8A50B8;
    --primary-light: #B070E0;
    --background-color: #F8F6FA;
    --surface-color: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border-color: #E5E7EB;
    --border-light: #F3F4F6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --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%, #F0EDF5 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

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

/* Header Styles */
.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 Navigation 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 Styles */
.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 cubic-bezier(0.4, 0, 0.2, 1);
    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(160, 96, 208, 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;
}

.nav-arrow {
    opacity: 0.4;
    z-index: 1;
    position: relative;
    flex-shrink: 0;
}

.nav-arrow svg {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 16px;
    height: 16px;
}

/* Content Styles */
.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: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.section-icon svg {
    stroke: white;
    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(--background-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 {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Link Styles */
.legal-link {
    color: #4A90E2;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.legal-link:hover {
    color: #357ABD;
    border-bottom-color: #4A90E2;
}

.legal-link::after {
    content: '↗';
    font-size: 0.75em;
    margin-left: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.legal-link:hover::after {
    opacity: 1;
}

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

.email-link:hover {
    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(--background-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 cubic-bezier(0.4, 0, 0.2, 1);
    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::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* 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 {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        margin-top: 3rem;
    }

    .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 cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 0;
        overflow-y: auto;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-header {
        display: flex;
    }

    .nav-item {
        padding: 1.25rem 1.5rem;
        min-height: 64px;
    }

    .nav-text {
        font-size: 1rem;
    }

    .nav-icon svg {
        width: 24px;
        height: 24px;
    }

    .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;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-icon {
        margin-right: 0;
    }

    .legal-article,
    .support-card {
        padding: 1.25rem;
    }

    .nav-item {
        padding: 1rem 1.25rem;
        min-height: 56px;
    }

    .nav-text {
        font-size: 0.875rem;
    }
}

/* Focus States for Accessibility */
.nav-item:focus-visible,
.btn:focus-visible,
.mobile-nav-toggle:focus-visible,
.close-sidebar:focus-visible,
.legal-link:focus-visible,
.email-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .sidebar,
    .support-section,
    .mobile-nav-toggle {
        display: none;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .content {
        box-shadow: none;
        border: 1px solid #ccc;
        margin-top: 0;
    }
} 