/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography Improvements */
.prose p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.prose strong {
    color: #0f172a;
    font-weight: 600;
}

/* Policy Section Transitions */
.policy-section {
    transition: opacity 0.3s ease;
}

/* Table of Contents Active State */
.toc-link.active {
    background-color: #eef2ff;
    color: #4f46e5;
    font-weight: 600;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .policy-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    aside {
        display: none;
    }
    
    .lg\:col-span-9 {
        width: 100%;
        max-width: 100%;
    }
}

/* Focus Visible Styles */
*:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background-color: #e0e7ff;
    color: #312e81;
}

/* Mobile Optimizations */
@media (max-width: 1024px) {
    .policy-section {
        scroll-margin-top: 100px;
    }
}

/* Animation for cards */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.policy-section {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Stagger animations */
.policy-section:nth-child(1) { animation-delay: 0.1s; }
.policy-section:nth-child(3) { animation-delay: 0.15s; }
.policy-section:nth-child(5) { animation-delay: 0.2s; }
.policy-section:nth-child(7) { animation-delay: 0.25s; }
.policy-section:nth-child(9) { animation-delay: 0.3s; }
.policy-section:nth-child(11) { animation-delay: 0.35s; }
.policy-section:nth-child(13) { animation-delay: 0.4s; }