/* Privacy Policy Page Styles */
.legal-header {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="privacy-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M0 0 L40 40 M0 40 L40 0" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23privacy-pattern)"/></svg>');
    pointer-events: none;
}

.legal-header .page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.legal-header .page-subtitle {
    font-size: 1.3rem;
    opacity: 0.8;
    margin: 0;
    position: relative;
    z-index: 1;
}

.last-updated {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Legal Content */
.legal-content {
    padding: 80px 0;
    background: #ffffff;
}

.legal-document {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.legal-section {
    padding: 3rem 4rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #667eea;
    position: relative;
}

.legal-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.legal-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #4a5568;
    margin: 2rem 0 1rem 0;
    padding-left: 1rem;
    border-left: 3px solid #667eea;
}

.legal-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.legal-section ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.legal-section li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 0.8rem;
    position: relative;
}

.legal-section li::marker {
    color: #667eea;
}

/* Key Information Boxes */
.info-box {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-left: 4px solid #667eea;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
}

.info-box::before {
    content: '🔒';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.5;
}

.warning-box {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 4px solid #ef4444;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
}

.warning-box::before {
    content: '⚠️';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

/* Contact Information */
.contact-highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.contact-highlight h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 1rem;
}

.contact-highlight p {
    font-size: 1.1rem;
    color: #4a5568;
    margin: 0.5rem 0;
}

.contact-highlight a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    margin: 0.5rem;
}

.contact-highlight a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #764ba2;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Table of Contents */
.toc {
    background: #f8f9ff;
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.toc h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    text-align: center;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 0.8rem;
}

.toc a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.toc a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #764ba2;
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-header {
        padding: 100px 0 60px;
    }

    .legal-header .page-title {
        font-size: 2.5rem;
    }

    .legal-header .page-subtitle {
        font-size: 1.2rem;
    }

    .legal-content {
        padding: 60px 0;
    }

    .legal-document {
        border-radius: 0;
        box-shadow: none;
    }

    .legal-section {
        padding: 2rem 1.5rem;
    }

    .legal-section h2 {
        font-size: 1.6rem;
    }

    .legal-section h3 {
        font-size: 1.3rem;
    }

    .legal-section p,
    .legal-section li {
        font-size: 1rem;
    }

    .info-box,
    .warning-box,
    .contact-highlight {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .toc {
        padding: 1.5rem;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }
}

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

/* Print styles */
@media print {
    .navbar,
    .footer,
    .back-to-top {
        display: none !important;
    }

    .legal-header {
        background: white !important;
        color: black !important;
        padding: 2rem 0;
    }

    .legal-document {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .legal-section {
        page-break-inside: avoid;
    }
}

/* Enhanced Header Design */
.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.header-icon {
    font-size: 4rem;
    line-height: 1;
    opacity: 0.9;
}

.header-text {
    flex: 1;
}

/* Enhanced TOC Design */
.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.toc-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 147, 89, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.toc-item:hover {
    background: rgba(255, 147, 89, 0.1);
    border-color: rgba(255, 147, 89, 0.3);
    transform: translateY(-2px);
}

.toc-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.toc-text {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Enhanced Legal Sections */
.legal-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 147, 89, 0.2);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(255, 147, 89, 0.15);
    transition: all 0.3s ease;
}

.legal-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(255, 147, 89, 0.25);
}

.legal-section h2 {
    color: #FF9359;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 147, 89, 0.2);
}

.legal-section h3 {
    color: #666;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
}

.contact-highlight {
    background: linear-gradient(135deg, rgba(255, 147, 89, 0.1), rgba(255, 184, 108, 0.1));
    border: 1px solid rgba(255, 147, 89, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.info-box {
    background: linear-gradient(135deg, rgba(255, 184, 108, 0.1), rgba(255, 147, 89, 0.1));
    border: 1px solid rgba(255, 184, 108, 0.3);
    border-left: 4px solid #FFB86C;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
}

.info-box::before {
    content: '💡';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.6;
}