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

:root {
    --primary-color: #6D29D9;
    --primary-hover: #5a1fb8;
    --primary-light: rgba(109, 41, 217, 0.1);
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --link-color: #6D29D9;
    --link-hover: #5a1fb8;
    --max-width: 950px;
    --spacing: 2rem;
    --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);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #f9fafb 100%);
    padding: 2rem 1rem;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    background-color: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    color: white;
    padding: 3rem var(--spacing);
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 1;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem var(--spacing);
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.nav-link {
    padding: 0.625rem 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.9375rem;
    position: relative;
}

.nav-link:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.nav-link.active:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

main {
    padding: var(--spacing);
}

.info-box {
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: var(--spacing);
    box-shadow: var(--shadow-sm);
}

.info-box h2 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.info-box p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.75;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.info-box a:hover {
    color: var(--link-hover);
    border-bottom-color: var(--link-hover);
}

.legal-content {
    padding: var(--spacing);
}

.legal-content section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 2rem;
}

.legal-content section:last-child {
    margin-bottom: 0;
}

.legal-content h2 {
    font-size: 1.625rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-color);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    letter-spacing: -0.01em;
    position: relative;
}

.legal-content h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

.legal-content p {
    margin-bottom: 1.25rem;
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
}

.legal-content ul {
    margin-left: 1.75rem;
    margin-bottom: 1.25rem;
    color: var(--text-color);
    list-style: none;
}

.legal-content ul li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    position: relative;
    padding-left: 1.5rem;
}

.legal-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.25rem;
    line-height: 1.4;
}

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

.legal-content a:hover {
    color: var(--link-hover);
    border-bottom-color: var(--link-hover);
}

.legal-content strong {
    font-weight: 600;
    color: var(--text-color);
}

footer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem var(--spacing);
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    body {
        padding: 1rem 0.75rem;
    }
    
    header {
        padding: 2rem 1.5rem;
    }
    
    header h1 {
        font-size: 1.875rem;
    }
    
    .subtitle {
        font-size: 0.9375rem;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .nav-link {
        text-align: center;
        width: 100%;
    }
    
    main,
    .legal-content {
        padding: 1.5rem;
    }
    
    .info-box {
        padding: 1.5rem;
    }
    
    .legal-content h2 {
        font-size: 1.375rem;
    }
    
    .legal-content section {
        margin-bottom: 2rem;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f9fafb;
        --text-light: #d1d5db;
        --bg-color: #1f2937;
        --bg-light: #111827;
        --border-color: #374151;
        --primary-light: rgba(109, 41, 217, 0.2);
    }
    
    body {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
    
    .nav-link {
        color: var(--text-color);
    }
    
    .nav-link:hover {
        background-color: var(--primary-light);
    }
    
    .info-box {
        background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    }
}
