/* style/privacy-policy.css */

/* --- Base Styles --- */
.page-privacy-policy {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is dark (#1a1a1a), so text is light */
    background-color: #1a1a1a; /* Inherited from shared.css body, but good to be explicit for main scope */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.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: 80px 0;
    text-align: center;
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
}

.page-privacy-policy__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-privacy-policy__description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.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;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
}

.page-privacy-policy__btn-primary {
    background-color: #C30808; /* Register/Login color as per custom palette */
    color: #FFFF00; /* Register/Login font color as per custom palette */
    border: 2px solid #C30808;
}

.page-privacy-policy__btn-primary:hover {
    background-color: #e02a2a;
    border-color: #e02a2a;
    color: #ffffff;
}

.page-privacy-policy__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-privacy-policy__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
    border-color: #ffffff;
}

/* --- Content Area --- */
.page-privacy-policy__content-area {
    background-color: #f8f8f8; /* Light background for main content for better readability */
    color: #333333; /* Dark text on light background */
    padding: 60px 0;
}

.page-privacy-policy__section-title {
    font-size: 2.2em;
    color: #017439; /* Primary brand color for main titles */
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.page-privacy-policy__sub-section-title {
    font-size: 1.6em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-privacy-policy__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-privacy-policy__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

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

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

.page-privacy-policy__contact-list {
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-privacy-policy__contact-item {
    margin-bottom: 10px;
}

.page-privacy-policy__contact-link {
    color: #017439;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-privacy-policy__contact-link:hover {
    color: #004d2b;
}

/* --- FAQ Section --- */
.page-privacy-policy__faq-section {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    padding: 60px 0;
}

.page-privacy-policy__faq-list {
    margin-top: 40px;
}

.page-privacy-policy__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly darker for question area */
    transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-privacy-policy__faq-title {
    font-size: 1.3em;
    margin: 0;
    flex-grow: 1;
}

.page-privacy-policy__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' */
}

.page-privacy-policy__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: rgba(0, 0, 0, 0.2); /* Darker background for answer */
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-privacy-policy__main-title {
        font-size: 2.2em;
    }
    .page-privacy-policy__section-title {
        font-size: 1.8em;
    }
    .page-privacy-policy__sub-section-title {
        font-size: 1.4em;
    }
    .page-privacy-policy__description,
    .page-privacy-policy__text-block,
    .page-privacy-policy__list,
    .page-privacy-policy__contact-list {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    /* Mobile Fixed Header Offset - important for main content */
    .page-privacy-policy {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-privacy-policy__hero-section {
        padding: 60px 0;
    }

    .page-privacy-policy__main-title {
        font-size: 1.8em;
    }

    .page-privacy-policy__description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-privacy-policy__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

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

    .page-privacy-policy__section-title {
        font-size: 1.6em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-privacy-policy__sub-section-title {
        font-size: 1.2em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-privacy-policy__text-block,
    .page-privacy-policy__list-item,
    .page-privacy-policy__contact-item,
    .page-privacy-policy__faq-title {
        font-size: 0.95em;
    }

    /* Image responsive adaptions */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        padding-left: 15px; /* Add some padding for images in mobile */
        padding-right: 15px;
        box-sizing: border-box !important;
    }
    
    .page-privacy-policy__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

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

    .page-privacy-policy__faq-answer {
        padding: 0 15px;
    }
    .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
        padding: 15px !important;
    }

    /* Ensure no horizontal scroll for main content */
    .page-privacy-policy {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Specific contrast fixes if needed, based on body background #1a1a1a (dark) */
/* Main content area has a light background, so dark text is appropriate */
.page-privacy-policy__content-area {
  background-color: #f8f8f8; /* Light background */
  color: #333333; /* Dark text */
}

/* FAQ section has brand color background (dark) */
.page-privacy-policy__faq-section {
  background-color: #017439; /* Dark brand color */
  color: #ffffff; /* Light text */
}

/* Hero section also has brand color background (dark) */
.page-privacy-policy__hero-section {
  background-color: #017439; /* Dark brand color */
  color: #ffffff; /* Light text */
}

/* Ensure link colors have contrast */
.page-privacy-policy a {
    color: #a0f0a0; /* Lighter green for links on dark background */
    text-decoration: underline;
}
.page-privacy-policy a:hover {
    color: #ffffff;
}
.page-privacy-policy__content-area a {
    color: #017439; /* Dark green for links on light background */
}
.page-privacy-policy__content-area a:hover {
    color: #004d2b;
}