/* PCES Privacy Notice Styles */

.pces-privacy-notice {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding: 2rem 0;
}

/* Header Styles */
.privacy-header {
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, #667eea 0%, #2596BE 100%);
    color: white;
    margin-bottom: 3rem !important;
    border-radius: 0 0 2rem 2rem;
    position: relative;
    z-index: 1;
}

.privacy-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.privacy-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Content Styles */
.privacy-intro {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid #667eea;
}

.privacy-intro .lead {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: #495057;
}

/* Section Styles */
.privacy-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.privacy-section:last-of-type {
    border-bottom: none;
}

.section-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
    display: inline-block;
}

.section-content {
    margin-left: 0;
}

.section-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 0;
}

/* Contact Information Styles */
.privacy-contact {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.privacy-contact h3 {
    color: #2c3e50;
    font-weight: 600;
}

.contact-details p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.contact-details strong {
    color: #495057;
    font-weight: 600;
}

.contact-details a {
    color: #667eea;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #5a6fd8;
    text-decoration: underline !important;
}

/* Table of Contents Styles */
.privacy-toc {
    z-index: 1000;
}

.privacy-toc .card {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
}

.privacy-toc .card-header {
    background: linear-gradient(135deg, #667eea 0%, #2596BE 100%) !important;
    border: none;
}

.toc-link {
    color: #495057;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    border-left: 3px solid transparent;
    padding-left: 0.75rem;
    margin-left: -0.75rem;
    transition: all 0.3s ease;
}

.toc-link:hover {
    color: #667eea;
    border-left-color: #667eea;
    background-color: rgba(102, 126, 234, 0.05);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .privacy-toc {
        display: none !important;
    }
    
    .privacy-title {
        font-size: 2.5rem;
    }
    
    .privacy-header {
        padding: 2rem 0 1.5rem;
        margin-bottom: 2rem !important;
    }
    
    .privacy-intro {
        padding: 1.5rem;
    }
    
    .privacy-intro .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .pces-privacy-notice {
        padding: 1rem 0;
        padding-top: 140px; /* Add padding to account for fixed navbar */
    }
    
    .privacy-header {
        position: relative;
        margin-top: -60px; /* Pull up to compensate for body padding */
        padding-top: 80px; /* Add space for fixed navbar */
        border-radius: 0;
        margin-bottom: 1.5rem !important;
    }
    
    .privacy-title {
        font-size: 2rem;
        padding-top: 20px; /* Extra space for mobile browsers */
    }
    
    .privacy-subtitle {
        font-size: 1rem;
    }
    
    .privacy-header {
        padding: 1.5rem 0 1rem;
        border-radius: 0 0 1rem 1rem;
    }
    
    .privacy-intro {
        padding: 1rem;
        margin-bottom: 2rem !important;
    }
    
    .privacy-intro .lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .privacy-contact {
        padding: 1.5rem !important;
    }
}

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

/* Focus Styles for Accessibility */
.toc-link:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .privacy-toc {
        display: none !important;
    }
    
    .privacy-header {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .privacy-section {
        page-break-inside: avoid;
    }
}

/* Animation for smooth appearance */
.privacy-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.privacy-section:nth-child(1) { animation-delay: 0.1s; }
.privacy-section:nth-child(2) { animation-delay: 0.2s; }
.privacy-section:nth-child(3) { animation-delay: 0.3s; }
.privacy-section:nth-child(4) { animation-delay: 0.4s; }
.privacy-section:nth-child(5) { animation-delay: 0.5s; }
.privacy-section:nth-child(6) { animation-delay: 0.6s; }
.privacy-section:nth-child(7) { animation-delay: 0.7s; }
.privacy-section:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Typography */
.section-text {
    text-align: justify;
    hyphens: auto;
}

/* Text Justification for All Content */
.privacy-intro .lead,
.section-content p,
.section-content li,
.contact-details p {
    text-align: justify;
    hyphens: auto;
}

/* Improved Link Styles */
a {
    transition: all 0.3s ease;
}

/* Enhanced Card Shadows */
.card {
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}