/* style/privacy-policy.css */

/* Root variables for consistent spacing and colors */
:root {
    --ph365-primary-color: #F2C14E; /* Main color */
    --ph365-secondary-color: #FFD36B; /* Auxiliary color */
    --ph365-card-bg: #111111; /* Card background */
    --ph365-background: #0A0A0A; /* Page background */
    --ph365-text-main: #FFF6D6; /* Main text color */
    --ph365-border-color: #3A2A12; /* Border color */
    --ph365-glow-color: #FFD36B; /* Glow color */
    --ph365-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */

    /* Header offset, defined in shared.css, but for local testing can be set here if shared is not present */
    /* --header-offset: 120px; */ 
}

/* Base styles for the privacy policy page */
.page-privacy-policy {
    font-family: Arial, sans-serif;
    color: var(--ph365-text-main); /* Light text on dark body background */
    background-color: var(--ph365-background); /* Dark background */
    line-height: 1.6;
    font-size: 1rem;
    padding-bottom: 60px; /* Space for footer */
}

/* Ensure the main content area respects the fixed header */
.page-privacy-policy__hero-section {
    padding-top: var(--header-offset, 120px); /* Desktop: 120px, Mobile: 100px from shared.css */
    background: var(--ph365-background); /* Use the main background for the hero section */
    position: relative;
    overflow: hidden; /* Ensure no overflow from hero image */
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    height: 675px; /* Fixed height for desktop hero */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-privacy-policy__hero-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.page-privacy-policy__main-title {
    font-size: 2.8rem; /* Adjusted to prevent excessive size */
    font-weight: bold;
    color: var(--ph365-secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5); /* Subtle glow */
    max-width: 90%; /* Constrain width to prevent very long lines */
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__intro-text {
    font-size: 1.2rem;
    color: var(--ph365-text-main);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.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-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
    max-width: 100%; /* Ensure buttons adapt to mobile */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-privacy-policy__btn-primary {
    background: var(--ph365-button-gradient);
    color: #ffffff;
}

.page-privacy-policy__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.4);
}

.page-privacy-policy__btn-secondary {
    background: transparent;
    color: var(--ph365-secondary-color);
    border: 2px solid var(--ph365-border-color);
}

.page-privacy-policy__btn-secondary:hover {
    background: rgba(255, 211, 107, 0.1);
    transform: translateY(-3px);
    border-color: var(--ph365-secondary-color);
}

.page-privacy-policy__content-area {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    background-color: var(--ph365-card-bg); /* Dark card background */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--ph365-border-color);
    padding: 40px;
}

.page-privacy-policy__section-title {
    font-size: 2rem;
    color: var(--ph365-primary-color);
    margin-top: 40px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ph365-border-color);
}

.page-privacy-policy__sub-title {
    font-size: 1.5rem;
    color: var(--ph365-secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-privacy-policy__paragraph {
    margin-bottom: 20px;
    color: var(--ph365-text-main);
}

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

.page-privacy-policy__list li {
    margin-bottom: 10px;
}

.page-privacy-policy__list li strong {
    color: var(--ph365-secondary-color);
}

.page-privacy-policy a {
    color: var(--ph365-primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
    color: var(--ph365-secondary-color);
    text-decoration: underline;
}

.page-privacy-policy__image-wrapper {
    margin: 30px 0;
    text-align: center;
}

.page-privacy-policy__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--ph365-border-color);
}

/* FAQ Section Styling */
.page-privacy-policy__faq-list {
    margin-top: 30px;
}

.page-privacy-policy__faq-item {
    background-color: var(--ph365-background); /* Slightly darker background for FAQ items */
    border: 1px solid var(--ph365-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--ph365-card-bg); /* Match card background for question */
    color: var(--ph365-secondary-color);
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
    background-color: #1a1a1a; /* Slightly lighter on hover */
}

.page-privacy-policy__faq-question h3 {
    margin: 0;
    color: inherit;
    font-size: 1.2rem;
}

.page-privacy-policy__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--ph365-primary-color);
    transition: transform 0.3s ease;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

.page-privacy-policy__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding matches question, but top/bottom are 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--ph365-text-main);
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 20px 25px; /* Adjust padding for expanded state */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-image-wrapper {
        height: 500px;
    }
    .page-privacy-policy__main-title {
        font-size: 2.5rem;
    }
    .page-privacy-policy__section-title {
        font-size: 1.8rem;
    }
    .page-privacy-policy__sub-title {
        font-size: 1.3rem;
    }
    .page-privacy-policy__content-area {
        margin: 40px auto;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-privacy-policy {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-privacy-policy__hero-section {
        padding-top: var(--header-offset, 100px) !important; /* Mobile: 100px from shared.css */
    }
    .page-privacy-policy__hero-image-wrapper {
        height: 300px; /* Smaller height for mobile hero */
    }
    .page-privacy-policy__hero-content {
        margin: 20px auto;
        padding: 0 15px;
    }
    .page-privacy-policy__main-title {
        font-size: 2rem;
        max-width: 100%;
    }
    .page-privacy-policy__intro-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-privacy-policy__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important; /* Allow text wrapping */
        word-wrap: break-word !important; /* Allow text wrapping */
    }

    .page-privacy-policy__content-area {
        margin: 30px auto;
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 0; /* Remove border-radius on mobile for full width look */
    }
    .page-privacy-policy__section-title {
        font-size: 1.5rem;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-privacy-policy__sub-title {
        font-size: 1.2rem;
    }
    .page-privacy-policy__image-wrapper {
        margin: 20px 0;
    }
    .page-privacy-policy__content-image {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 0; /* Remove border-radius on mobile for full width look */
    }
    
    /* FAQ Specific Mobile Adjustments */
    .page-privacy-policy__faq-question {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    .page-privacy-policy__faq-question h3 {
        font-size: 1.1rem;
    }
    .page-privacy-policy__faq-toggle {
        font-size: 1.5rem;
    }
    .page-privacy-policy__faq-answer {
        padding: 0 20px;
    }
    .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
        padding: 10px 20px 15px 20px;
    }
}

/* Ensure no filter is used on images */
.page-privacy-policy img {
    filter: none;
}