/**
 * Privacy Policy Page Styles
 * Professional layout for privacy documentation
 */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(14, 165, 233, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(2, 132, 199, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.page-header__content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.page-header__content::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #0284c7);
    border-radius: 2px;
}

.page-header__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1e293b 0%, #475569 50%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header__subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: #64748b;
    line-height: 1.6;
    font-weight: 500;
    opacity: 0.9;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Privacy Content Layout */
.privacy-content {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: 60px 0;
}

.privacy-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
    padding: 0 20px;
}

/* Sidebar Table of Contents */
.privacy-sidebar {
    position: sticky;
    top: 120px;
}

.privacy-toc {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.privacy-toc__title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.privacy-toc__title i {
    color: #0ea5e9;
    font-size: 16px;
}

.privacy-toc__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.privacy-toc__link {
    display: block;
    padding: 10px 12px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.privacy-toc__link:hover {
    background: #f1f5f9;
    color: #0ea5e9;
    transform: translateX(4px);
}

.privacy-toc__link.active {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
}

/* Main Content */
.privacy-main {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

/* Privacy Sections */
.privacy-section {
    padding: 40px;
    border-bottom: 1px solid #f1f5f9;
    scroll-margin-top: 120px;
}

.privacy-section:last-child {
    border-bottom: none;
}

.privacy-section__header {
    margin-bottom: 24px;
}

.privacy-section__title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.2;
}

.privacy-section__title i {
    color: #0ea5e9;
    font-size: 24px;
}

.privacy-section__content {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}

.privacy-section__content p {
    margin: 0 0 20px 0;
}

.privacy-section__content p:last-child {
    margin-bottom: 0;
}

/* Subsections */
.privacy-subsection {
    margin-bottom: 32px;
}

.privacy-subsection:last-child {
    margin-bottom: 0;
}

.privacy-subsection__title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.privacy-subsection__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-radius: 2px;
}

/* Privacy Lists */
.privacy-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.privacy-list__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #0ea5e9;
    transition: all 0.3s ease;
}

.privacy-list__item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.privacy-list__item i {
    color: #0ea5e9;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.privacy-list--rights .privacy-list__item {
    border-left-color: #10b981;
}

.privacy-list--rights .privacy-list__item i {
    color: #10b981;
}

/* Contact Section */
.privacy-section--contact {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.privacy-contact {
    margin-top: 24px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.privacy-contact__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #0ea5e9;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.privacy-contact__link:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.privacy-contact__link i {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .privacy-container {
        grid-template-columns: 240px 1fr;
        gap: 40px;
    }
    
    .privacy-section {
        padding: 32px;
    }
    
    .privacy-section__title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }
    
    .privacy-content {
        padding: 40px 0;
    }
    
    .privacy-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 16px;
    }
    
    .privacy-sidebar {
        position: static;
        order: 2;
    }
    
    .privacy-toc {
        padding: 20px;
    }
    
    .privacy-section {
        padding: 24px;
    }
    
    .privacy-section__title {
        font-size: 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .privacy-subsection__title {
        font-size: 18px;
    }
    
    .privacy-list__item {
        padding: 12px 16px;
    }
    
    .privacy-list__item:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 40px 0 30px;
    }
    
    .page-header__content::before {
        display: none;
    }
    
    .privacy-content {
        padding: 30px 0;
    }
    
    .privacy-container {
        padding: 0 12px;
    }
    
    .privacy-section {
        padding: 20px;
    }
    
    .privacy-section__title {
        font-size: 20px;
    }
    
    .privacy-subsection__title {
        font-size: 16px;
    }
    
    .privacy-section__content {
        font-size: 15px;
    }
    
    .privacy-toc {
        padding: 16px;
    }
    
    .privacy-toc__title {
        font-size: 16px;
    }
    
    .privacy-toc__link {
        font-size: 13px;
        padding: 8px 10px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation for sections */
.privacy-section {
    opacity: 0;
    transform: translateY(30px);
    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; }
.privacy-section:nth-child(9) { animation-delay: 0.9s; }
.privacy-section:nth-child(10) { animation-delay: 1.0s; }
.privacy-section:nth-child(11) { animation-delay: 1.1s; }
.privacy-section:nth-child(12) { animation-delay: 1.2s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
.privacy-toc__link:focus,
.language-toggle:focus,
.privacy-contact__link:focus {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .privacy-sidebar,
    .page-header__language-toggle {
        display: none;
    }
    
    .privacy-container {
        grid-template-columns: 1fr;
    }
    
    .privacy-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
