/* style/privacy-policy.css */

/* Base styles for the privacy policy page */
.page-privacy-policy {
    background: var(--page-bg, #0D0E12); /* Fallback to specified background color */
    color: var(--text-main, #FFF3E6); /* Fallback to specified text color */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    margin-bottom: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    text-align: center;
    background: var(--page-bg, #0D0E12);
}

.page-privacy-policy__hero-image {
    width: 100%;
    max-width: 1920px;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and text content */
    border-radius: 8px;
}

.page-privacy-policy__hero-content {
    max-width: 900px;
    width: 100%; /* Ensure content takes full width up to max-width */
    padding: 0 20px 40px;
    box-sizing: border-box;
}

.page-privacy-policy__main-title {
    font-size: clamp(2.5em, 5vw, 3.2em); /* Using clamp for responsive h1 */
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main, #FFF3E6);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-privacy-policy__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-main, #FFF3E6);
    opacity: 0.9;
}

/* General Content Area */
.page-privacy-policy__content-area {
    padding: 40px 0;
    background: var(--page-bg, #0D0E12);
    color: var(--text-main, #FFF3E6);
}

.page-privacy-policy__section-title {
    font-size: 2.2em;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 25px;
    color: var(--primary-color, #FF8C1A); /* Use primary brand color for section titles */
    text-align: left;
}

.page-privacy-policy p {
    margin-bottom: 15px;
    text-align: left;
    color: var(--text-main, #FFF3E6);
}

.page-privacy-policy a {
    color: var(--primary-color, #FF8C1A);
    text-decoration: underline;
}

.page-privacy-policy a:hover {
    color: var(--secondary-color, #FFA53A);
    text-decoration: none;
}

.page-privacy-policy__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    text-align: left;
    color: var(--text-main, #FFF3E6);
}

.page-privacy-policy__list-item {
    margin-bottom: 10px;
    padding-left: 5px;
}

.page-privacy-policy__content-image {
    max-width: 100%; /* Base responsive image style */
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    object-fit: cover;
    width: auto; /* Allow image to size itself within max-width */
}

/* Buttons */
.page-privacy-policy__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #ffffff;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-privacy-policy__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--card-bg, #17191F); /* Card BG color */
    color: var(--primary-color, #FF8C1A);
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color, #A84F0C);
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-privacy-policy__btn-secondary:hover {
    background: var(--primary-color, #FF8C1A);
    color: #ffffff;
    border-color: var(--primary-color, #FF8C1A);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-privacy-policy__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0 15px; /* Add padding for mobile */
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    padding: 60px 0;
    background: var(--page-bg, #0D0E12);
    color: var(--text-main, #FFF3E6);
}

.page-privacy-policy__faq-section .page-privacy-policy__section-title {
    text-align: center;
    margin-bottom: 40px;
}

details.page-privacy-policy__faq-item {
    margin-bottom: 15px;
    border-radius: 8px; /* Slightly larger radius */
    border: 1px solid var(--border-color, #A84F0C);
    overflow: hidden;
    background: var(--card-bg, #17191F); /* Card background color */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px; /* Slightly more padding */
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-main, #FFF3E6);
    font-weight: 600;
}
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: rgba(255, 255, 255, 0.05); /* Slight hover effect */
}
.page-privacy-policy__faq-qtext {
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main, #FFF3E6);
}
.page-privacy-policy__faq-toggle {
    font-size: 28px; /* Larger toggle icon */
    font-weight: bold;
    color: var(--primary-color, #FF8C1A); /* Brand color for toggle */
    flex-shrink: 0;
    margin-left: 20px;
    width: 32px; /* Larger toggle area */
    text-align: center;
    transition: transform 0.3s ease;
}
details.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}
details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
    padding: 0 25px 25px; /* Consistent padding */
    background: var(--card-bg, #17191F);
    border-radius: 0 0 8px 8px;
    color: var(--text-main, #FFF3E6);
}

/* Ensure contrast for text on dark backgrounds - already handled by var(--text-main) */
.page-privacy-policy__dark-bg {
    background: var(--page-bg, #0D0E12);
    color: var(--text-main, #FFF3E6);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-privacy-policy__main-title {
        font-size: clamp(2em, 4vw, 2.8em);
    }
    .page-privacy-policy__section-title {
        font-size: 2em;
    }
    .page-privacy-policy__hero-content {
        padding: 0 20px 30px;
    }
    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
    }
    details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question {
        padding: 15px 20px;
    }
    .page-privacy-policy__faq-qtext {
        font-size: 1em;
    }
    .page-privacy-policy__faq-toggle {
        font-size: 24px;
        width: 28px;
    }
    details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
        padding: 0 20px 20px;
    }
}

@media (max-width: 768px) {
    /* General content area */
    .page-privacy-policy__container {
        padding: 0 15px !important;
    }

    /* Hero Section */
    .page-privacy-policy__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        margin-bottom: 30px;
    }
    .page-privacy-policy__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-privacy-policy__hero-content {
        padding: 0 15px 25px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-privacy-policy__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em);
        margin-bottom: 15px;
    }
    .page-privacy-policy__description {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

    /* Content Section */
    .page-privacy-policy__content-area {
        padding: 30px 0;
    }
    .page-privacy-policy__section-title {
        font-size: 1.6em;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .page-privacy-policy p,
    .page-privacy-policy__list-item {
        font-size: 0.9em;
    }
    .page-privacy-policy__list {
        margin-left: 20px;
    }
    .page-privacy-policy__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto;
        box-sizing: border-box !important;
    }

    /* Buttons and CTA Group */
    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        padding: 12px 20px !important;
        font-size: 0.95em !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-privacy-policy__cta-group {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        margin-top: 30px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* FAQ Section */
    .page-privacy-policy__faq-section {
        padding: 40px 0;
    }
    .page-privacy-policy__faq-section .page-privacy-policy__section-title {
        margin-bottom: 30px;
    }
    details.page-privacy-policy__faq-item {
        border-radius: 6px;
    }
    details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question {
        padding: 15px 15px;
    }
    .page-privacy-policy__faq-qtext {
        font-size: 0.95em;
    }
    .page-privacy-policy__faq-toggle {
        font-size: 24px;
        width: 28px;
        margin-left: 15px;
    }
    details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
        padding: 0 15px 15px;
    }
}