/* Custom Colors */
:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg: #FFFFFF;
    --background-page: #F4F7FB;
    --text-main: #1F2D3D;
    --text-black: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}

/* Base styles for the privacy policy page */
.page-privacy-policy {
    font-family: 'Arial', sans-serif;
    color: var(--text-main);
    background-color: var(--background-page);
    line-height: 1.6;
}

.page-privacy-policy__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Hero Section */
.page-privacy-policy__hero-section {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
}

.page-privacy-policy__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__intro-text {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-privacy-policy__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
}

.page-privacy-policy__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-privacy-policy__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

.page-privacy-policy__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-privacy-policy__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(47, 107, 255, 0.3);
}

/* Content Section */
.page-privacy-policy__content-section {
    padding: 40px 0;
    background-color: var(--card-bg);
}

.page-privacy-policy__section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 25px;
    padding-top: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.page-privacy-policy__subsection-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-privacy-policy p {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-main);
}

.page-privacy-policy__list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-main);
}

.page-privacy-policy__list li {
    margin-bottom: 8px;
    font-size: 16px;
}

.page-privacy-policy__list li strong {
    color: var(--text-black);
}

.page-privacy-policy a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-privacy-policy a:hover {
    text-decoration: underline;
}

.page-privacy-policy__image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    padding: 40px 0 60px;
    background-color: var(--background-page);
}

details.page-privacy-policy__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
}

details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}

details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question::-webkit-details-marker {
    display: none;
}

details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question:hover {
    background: #f5f5f5;
}

.page-privacy-policy__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}

.page-privacy-policy__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
    color: var(--text-black);
}

details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: var(--text-main);
}

.page-privacy-policy__faq-answer p {
    margin: 0;
    font-size: 15px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-section {
        padding: 50px 0 30px;
    }

    .page-privacy-policy__main-title {
        font-size: 38px;
    }

    .page-privacy-policy__intro-text {
        font-size: 17px;
    }

    .page-privacy-policy__section-title {
        font-size: 28px;
    }

    .page-privacy-policy__subsection-title {
        font-size: 22px;
    }

    .page-privacy-policy p,
    .page-privacy-policy__list li {
        font-size: 15px;
    }

    .page-privacy-policy__faq-qtext {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy__hero-section {
        padding: 40px 0 20px;
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-privacy-policy__main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-privacy-policy__intro-text {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .page-privacy-policy__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
        padding: 0 15px;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-privacy-policy__content-section,
    .page-privacy-policy__faq-section {
        padding: 30px 0;
    }

    .page-privacy-policy__section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .page-privacy-policy__subsection-title {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-privacy-policy p,
    .page-privacy-policy__list li {
        font-size: 14px;
    }

    .page-privacy-policy__list {
        padding-left: 15px;
    }

    .page-privacy-policy__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto;
        box-sizing: border-box !important;
    }

    details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question {
        padding: 15px;
    }

    .page-privacy-policy__faq-qtext {
        font-size: 14px;
    }

    .page-privacy-policy__faq-toggle {
        font-size: 20px;
        width: 24px;
        margin-left: 10px;
    }

    details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
        padding: 0 15px 15px;
    }

    .page-privacy-policy__faq-answer p {
        font-size: 14px;
    }

    /* Ensure all content containers are responsive */
    .page-privacy-policy__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* General image responsiveness for all images within the page-privacy-policy scope */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
}