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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #3b82f6;
    --accent-color: #06d6a0;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background: #ffffff;
    --background-alt: #f8fafc;
    --border-color: #e5e7eb;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--background);
    scroll-behavior: smooth;
}

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

/* Header Styles */
.header {
    background: var(--gradient-primary);
    padding: 3rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="12" cy="12" r="2"/></g></g></svg>') repeat;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.shield {
    font-size: 3rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.logo h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header-subtitle {
    position: relative;
    z-index: 1;
}

.header-subtitle p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.last-update {
    font-size: 0.9rem;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Table of Contents */
.table-of-contents {
    background: var(--background-alt);
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px var(--shadow-light);
    top: 20px;
    z-index: 10;
}

.table-of-contents h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.table-of-contents ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.5rem;
}

.table-of-contents li {
    position: relative;
}

.table-of-contents a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.table-of-contents a:hover {
    background: white;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 2px 8px var(--shadow-light);
}

/* Content Styles */
.content {
    margin: 3rem 0;
}

.section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-light);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-accent);
}

.section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-number {
    background: var(--gradient-primary);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.section p {
    margin-bottom: 1rem;
    text-align: justify;
}

.section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.section li {
    margin-bottom: 0.5rem;
    position: relative;
}

.section li::marker {
    color: var(--primary-color);
}

.subsection {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--background-alt);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.subsection h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Contact Highlights */
.contact-highlight {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #bae6fd;
    margin: 1.5rem 0;
    text-align: center;
}

.contact-highlight p {
    margin-bottom: 0.5rem;
}

.contact-highlight strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contact-info {
    background: var(--background-alt);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-light);
    transition: transform 0.2s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item .icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Footer */
.footer {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.footer-content p:last-child {
    margin-bottom: 0;
    opacity: 0.8;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--shadow-medium);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-heavy);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 2rem 0;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .shield {
        font-size: 2rem;
    }
    
    .header-subtitle p {
        font-size: 1.2rem;
    }
    
    .table-of-contents {
        position: static;
        margin: 1rem 0;
        padding: 1.5rem;
    }
    
    .table-of-contents ul {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-number {
        align-self: flex-start;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 1rem;
    }
    
    .subsection {
        padding: 1rem;
    }
    
    .contact-info {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .table-of-contents,
    .back-to-top {
        display: none;
    }
    
    .section {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    .header {
        background: #333 !important;
        color: white !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .section:hover {
        transform: none;
    }
    
    .contact-item:hover {
        transform: none;
    }
    
    .table-of-contents a:hover {
        transform: none;
    }
}

/* Focus styles for accessibility */
.table-of-contents a:focus,
.back-to-top:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-color: #000000;
    }
}