/* Privacy Policy Page Specific Styles */

/* Main content styling */
.privacy-main {
    padding-top: 100px;
    /* Account for fixed header */
    min-height: 100vh;
}

.privacy-header {
    text-align: center;
    padding: 40px 0 60px;
    border-bottom: 1px solid #dee2e6;
    background-color: #fafafa;
}

.privacy-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.last-updated,
.effective-date {
    font-size: 1rem;
    color: #495057;
    margin: 0.5rem 0;
    font-weight: 500;
}

.last-updated span,
.effective-date span {
    font-weight: 600;
    color: #212529;
}

/* Content layout */
.privacy-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: start;
}

/* Table of Contents */
.toc {
    position: sticky;
    top: 120px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
}

.toc h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
    letter-spacing: -0.2px;
}

.toc ul {
    list-style: none;
}

.toc ul li {
    margin-bottom: 0.5rem;
}

.toc ul li a {
    text-decoration: none;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    display: block;
    transition: all 0.3s ease;
    letter-spacing: -0.1px;
}

.toc ul li a:hover,
.toc ul li a.active {
    background-color: #212529;
    color: #ffffff;
}

/* Privacy sections */
.privacy-section {
    margin-bottom: 40px;
    scroll-margin-top: 120px;
}

.privacy-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
    letter-spacing: -0.3px;
}

.privacy-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin: 2rem 0 1rem;
    letter-spacing: -0.2px;
}

.privacy-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
    margin: 1.5rem 0 0.75rem;
    letter-spacing: -0.1px;
}

.privacy-section p {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-weight: 500;
}

.privacy-section ul,
.privacy-section ol {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 20px;
}

.privacy-section li {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.privacy-section strong {
    color: #212529;
    font-weight: 600;
}

/* Highlight important text */
.highlight {
    background-color: #212529;
    color: #ffffff;
    padding: 16px;
    border-radius: 8px;
    font-weight: 600;
    margin: 1.5rem 0;
    letter-spacing: -0.2px;
}

/* Info categories */
.info-category {
    background-color: #fafafa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 1.5rem 0;
}

.info-category h4 {
    color: #212529;
    margin-top: 0;
    margin-bottom: 1rem;
}

.info-category ul {
    margin-bottom: 0;
}

/* Contact information */
.contact-info {
    background-color: #fafafa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 1.5rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #212529;
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Policy footer */
.policy-footer {
    margin-top: 40px;
    padding-top: 20px;
}

.policy-footer hr {
    border: none;
    border-top: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.policy-footer em {
    color: #495057;
    font-style: italic;
    font-weight: 500;
}

/* Print styles */
@media print {

    .header,
    .footer,
    .toc,
    .scroll-to-top {
        display: none !important;
    }

    .privacy-main {
        padding-top: 0;
    }

    .privacy-content {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .privacy-section {
        break-inside: avoid;
    }

    body {
        font-size: 12px;
        line-height: 1.4;
    }

    .privacy-header h1 {
        font-size: 24px;
    }

    .privacy-section h2 {
        font-size: 18px;
    }

    .privacy-section h3 {
        font-size: 16px;
    }
}

/* Responsive design */
@media (max-width: 1024px) {
    .privacy-content {
        grid-template-columns: 200px 1fr;
        gap: 30px;
    }

    .toc {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .privacy-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .toc {
        position: static;
        order: -1;
        margin-bottom: 30px;
    }

    .privacy-header h1 {
        font-size: 2rem;
    }

    .privacy-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .privacy-main {
        padding-top: 80px;
    }

    .privacy-header {
        padding: 20px 0 40px;
    }

    .privacy-header h1 {
        font-size: 1.75rem;
    }

    .privacy-content {
        padding: 20px 15px;
    }

    .info-category,
    .contact-info {
        padding: 15px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for keyboard navigation */
.toc a:focus,
.privacy-section a:focus {
    outline: 2px solid #212529;
    outline-offset: 2px;
}

/* Legal term tooltips (when enabled) */
.legal-term {
    border-bottom: 1px dotted #212529;
    cursor: help;
    position: relative;
}

.legal-term:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #212529;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.legal-term:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #212529;
    z-index: 999;
}