/**
 * Cookies Policy Page Styles
 * Professional legal document layout - identical to privacy.css and terms.css
 */

/* 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 0 16px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-header__updated {
    font-size: 0.95rem;
    color: #64748b;
    font-style: italic;
    margin: 0;
}

/* Cookies Content Layout */
.cookies-content {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: 60px 0;
}

.cookies-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 */
.cookies-sidebar {
    position: sticky;
    top: 120px;
}

.cookies-toc {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.cookies-toc__title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookies-toc__title i {
    color: #0ea5e9;
    font-size: 16px;
}

.cookies-toc__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cookies-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;
}

.cookies-toc__link:hover {
    background: #f1f5f9;
    color: #0ea5e9;
    transform: translateX(4px);
}

.cookies-toc__link.active {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
}

/* Main Content */
.cookies-main {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

/* Sections */
.cookies-section {
    padding: 40px;
    border-bottom: 1px solid #f1f5f9;
    scroll-margin-top: 120px;
}

.cookies-section:last-child {
    border-bottom: none;
}

.cookies-section__title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.2;
}

.cookies-section__number {
    color: #0ea5e9;
    font-size: 24px;
}

.cookies-section__content {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}

.cookies-section__content p {
    margin: 0 0 20px 0;
}

.cookies-section__content p:last-child {
    margin-bottom: 0;
}

/* Definitions List */
.cookies-definitions {
    margin: 24px 0;
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    border-left: 4px solid #0ea5e9;
}

.cookies-definitions__term {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 16px;
}

.cookies-definitions__definition {
    color: #374151;
    margin-bottom: 16px;
    margin-left: 0;
    line-height: 1.6;
    font-size: 15px;
}

.cookies-definitions__definition:last-child {
    margin-bottom: 0;
}

/* Lists */
.cookies-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookies-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;
    color: #374151;
    line-height: 1.6;
}

.cookies-list__item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.cookies-list__item::before {
    content: "•";
    color: #0ea5e9;
    font-weight: bold;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.cookies-list__item:last-child {
    margin-bottom: 0;
}

.cookies-list__item i {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Contact Section */
.cookies-contact {
    margin-top: 32px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.cookies-contact h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.cookies-contact p {
    color: #374151;
    margin-bottom: 16px;
    line-height: 1.6;
}

.contact-info {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #0ea5e9;
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 15px;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cookies-container {
        grid-template-columns: 240px 1fr;
        gap: 40px;
    }
    
    .cookies-section {
        padding: 32px;
    }
    
    .cookies-section__title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }
    
    .cookies-content {
        padding: 40px 0;
    }
    
    .cookies-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 16px;
    }
    
    .cookies-sidebar {
        position: static;
        order: 2;
    }
    
    .cookies-toc {
        padding: 20px;
    }
    
    .cookies-section {
        padding: 24px;
    }
    
    .cookies-section__title {
        font-size: 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cookies-list__item {
        padding: 12px 16px;
    }
    
    .cookies-list__item:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 40px 0 30px;
    }
    
    .page-header__content::before {
        display: none;
    }
    
    .cookies-content {
        padding: 30px 0;
    }
    
    .cookies-container {
        padding: 0 12px;
    }
    
    .cookies-section {
        padding: 20px;
    }
    
    .cookies-section__title {
        font-size: 20px;
    }
    
    .cookies-section__content {
        font-size: 15px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .cookies-sidebar,
    .page-header {
        display: none;
    }
    
    .cookies-container {
        grid-template-columns: 1fr;
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .cookies-main {
        box-shadow: none;
        border: none;
        border-radius: 0;
    }
    
    .cookies-section {
        page-break-inside: avoid;
        margin-bottom: 24px;
    }
    
    .cookies-section__title {
        color: black;
    }
}
