/* ===== PRIVACY PAGE SPECIFIC STYLES ===== */
/* Container styles are now in scrollable-container.css */

/* ===== HEADER POSITIONING ===== */
.header-section {
    position: static;
    flex-shrink: 0;
}

/* Override mobile-specific sticky positioning */
@media (max-width: 768px) {
    .header-section {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        z-index: auto !important;
        overflow-y: visible !important;
        margin-bottom: 0 !important;
        padding: clamp(0.2rem, 1vh, 0.6rem) clamp(0.2rem, 1.2vw, 0.6rem) !important;
    }
}

@media (max-width: 480px) {
    .container .header-section {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        z-index: auto !important;
        overflow-y: visible !important;
    }
    
    body .container .header-section {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        z-index: auto !important;
        overflow-y: visible !important;
    }
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
.page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.page-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 20px 40px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Ensure all content sections are centered */
.content-section,
.privacy-cta {
    margin-left: auto;
    margin-right: auto;
}

/* ===== PRIVACY CONTENT ===== */
.privacy-content,
.content-section {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 900px;
    width: 100%;
    margin: 0 auto 35px auto;
    position: relative;
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: var(--secondary-color);
    margin-bottom: 25px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 15px;
    font-weight: 600;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.section-content {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.section-content p {
    margin-bottom: 18px;
}

.section-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.section-content li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    position: relative;
}

.section-content li::marker {
    color: var(--primary-color);
}

.section-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.section-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== HIGHLIGHT BOXES ===== */
.highlight-box {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.08), rgba(30, 136, 229, 0.08));
    border-left: 5px solid var(--primary-color);
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    font-style: italic;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.highlight-box::before {
    content: '💡';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.2rem;
    opacity: 0.7;
}

.highlight-box.important {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(239, 68, 68, 0.1));
    border-left-color: #dc2626;
}

.highlight-box.note {
    background: linear-gradient(135deg, rgba(107, 139, 123, 0.15), rgba(139, 171, 155, 0.1));
    border-left-color: var(--secondary-color);
}

/* ===== TABLE OF CONTENTS ===== */
.table-of-contents {
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 30px;
    max-width: 800px;
    width: 100%;
}

.toc-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

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

.toc-item {
    margin-bottom: 10px;
}

.toc-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.toc-link:hover {
    background: rgba(229, 57, 53, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(5px);
}

/* ===== CONTACT INFO ===== */
.privacy-contact {
    background: linear-gradient(135deg, rgba(107, 139, 123, 0.1), rgba(139, 171, 155, 0.05));
    border: 2px solid rgba(107, 139, 123, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.contact-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-description {
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 139, 123, 0.3);
    text-decoration: none;
    display: inline-block;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 139, 123, 0.4);
    color: white;
}

/* ===== DARK MODE STYLES ===== */
body.dark-mode .privacy-content,
body.dark-mode .content-section,
body.dark-mode .table-of-contents {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .privacy-contact {
    background: linear-gradient(135deg, rgba(107, 139, 123, 0.2), rgba(139, 171, 155, 0.1));
    border: 2px solid rgba(107, 139, 123, 0.4);
}

body.dark-mode .highlight-box {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.2), rgba(30, 136, 229, 0.15));
}

body.dark-mode .page-title {
    color: var(--primary-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

body.dark-mode .page-subtitle {
    color: #d0d0d0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== PRIVACY CTA SECTION ===== */
.privacy-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    margin: 50px auto 0 auto;
    position: relative;
    overflow: hidden;
    max-width: 800px;
    width: 100%;
}

.privacy-cta::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.privacy-cta-content {
    position: relative;
    z-index: 1;
}

.privacy-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: white !important;
}

.privacy-cta p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    color: white !important;
}

.privacy-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.privacy-cta-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.privacy-cta-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.privacy-cta-btn.primary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}

.privacy-cta-btn.primary:hover {
    background: white;
    color: var(--primary-color);
}

.privacy-cta-quote {
    font-style: italic;
    font-size: 1rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
    color: white !important;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-content {
        padding: 15px 20px;
    }

    .privacy-content,
    .content-section,
    .table-of-contents,
    .privacy-contact,
    .privacy-cta {
        padding: 25px;
        margin-left: auto;
        margin-right: auto;
    }

    .privacy-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .privacy-cta-btn {
        width: 100%;
        max-width: 300px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-content {
        font-size: 0.95rem;
    }

    .menu-container-left,
    .menu-container {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 10px 15px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .privacy-content,
    .content-section,
    .table-of-contents,
    .privacy-contact {
        padding: 15px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .section-content {
        font-size: 0.9rem;
    }

    .highlight-box {
        padding: 15px;
    }
}
