/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
    padding: 2rem 1rem;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Back link */
.back-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateX(-5px);
}

/* Headings */
h1 {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.7rem;
    font-weight: bold;
    color: #667eea;
    margin: 2.5rem 0 1rem 0;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #764ba2;
    margin: 1.5rem 0 0.8rem 0;
}

/* Table of contents */
.toc {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toc h3 {
    color: #667eea;
    margin-top: 0;
    margin-bottom: 1rem;
}

.toc ul {
    list-style: none;
}

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

.toc a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.3rem 0;
    display: block;
    transition: color 0.3s ease;
}

.toc a:hover {
    color: #667eea;
    padding-left: 0.5rem;
}

/* License sections */
.license-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid #667eea;
}

/* Paragraphs */
p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

p strong {
    color: #667eea;
    font-weight: 600;
}

/* Links */
a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Copyright notice */
.copyright-notice {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 3px solid #667eea;
}

.copyright-notice p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.copyright-notice p:last-child {
    margin-bottom: 0;
}

/* License text */
.license-text {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: pre-line;
    color: rgba(255, 255, 255, 0.7);
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.license-text::-webkit-scrollbar {
    width: 8px;
}

.license-text::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.license-text::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

.license-text::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }
    
    .container {
        padding: 2rem 1.5rem;
    }
    
    h1 {
        font-size: 1.7rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .license-text {
        font-size: 0.8rem;
        padding: 1rem;
    }
    
    .toc, .license-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .license-text {
        font-size: 0.75rem;
        max-height: 300px;
    }
}