/* style/privacy-policy.css */

/* Custom properties for colors from the prompt */
:root {
    --page-bg: #08160F;
    --card-bg: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-privacy-policy {
    background-color: var(--page-bg); /* Use custom background color */
    color: var(--text-main); /* Main text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

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

.page-privacy-policy__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-privacy-policy__main-title {
    font-size: clamp(2em, 3.5vw, 3em); /* Responsive font size */
    color: var(--gold-color); /* Use gold for main title */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-privacy-policy__description {
    font-size: 1.1em;
    color: var(--text-secondary); /* Secondary text color */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button adapts to width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-privacy-policy__btn-primary {
    background: var(--btn-gradient);
    color: var(--text-main); /* White-ish text for dark button */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-privacy-policy__btn-secondary {
    background-color: transparent;
    color: var(--glow-color); /* Light green for secondary button text */
    border: 2px solid var(--glow-color);
    margin-top: 15px;
    margin-left: 15px; /* Add some spacing if two buttons */
}

.page-privacy-policy__btn-secondary:hover {
    background-color: var(--glow-color);
    color: var(--page-bg); /* Dark text on hover */
    transform: translateY(-2px);
}

/* Content Area */
.page-privacy-policy__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
    color: var(--text-main); /* Main text color */
}

.page-privacy-policy__section-wrapper {
    background-color: var(--card-bg); /* Card background for sections */
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__section-title {
    font-size: 1.8em;
    color: var(--gold-color); /* Gold for section titles */
    margin-bottom: 20px;
    border-bottom: 2px solid var(--divider-color);
    padding-bottom: 10px;
    font-weight: bold;
}

.page-privacy-policy__text-block {
    margin-bottom: 15px;
    color: var(--text-secondary); /* Secondary text color for paragraphs */
}

.page-privacy-policy__text-block strong {
    color: var(--text-main); /* Emphasize keywords with main text color */
}

.page-privacy-policy__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary); /* Secondary text color for list items */
}

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

.page-privacy-policy__list-item strong {
    color: var(--text-main); /* Emphasize keywords in list with main text color */
}

.page-privacy-policy__image-in-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    object-fit: cover;
    max-width: 800px; /* Constrain content images */
}

.page-privacy-policy__last-updated {
    font-style: italic;
    text-align: right;
    color: var(--text-secondary);
    margin-top: 20px;
}

.page-privacy-policy__contact-link {
    color: var(--glow-color);
    text-decoration: underline;
}

.page-privacy-policy__contact-link:hover {
    color: var(--gold-color);
}

/* Responsive styles */
@media (max-width: 768px) {
    .page-privacy-policy__hero-section {
        padding: 40px 10px;
        padding-top: 10px !important; /* Small top padding for mobile hero */
    }

    .page-privacy-policy__main-title {
        font-size: 2em; /* Adjust for mobile */
    }

    .page-privacy-policy__description {
        font-size: 1em;
    }

    .page-privacy-policy__content-area {
        padding: 20px 10px;
    }

    .page-privacy-policy__section-wrapper {
        padding: 20px;
        margin-bottom: 20px;
    }

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

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

    /* All images must adapt to mobile screen */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All image containers must adapt to mobile screen */
    .page-privacy-policy__hero-image-wrapper,
    .page-privacy-policy__section-wrapper,
    .page-privacy-policy__content-area {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Buttons responsive */
    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0 !important; /* Remove horizontal margin for stacking */
        margin-bottom: 10px;
    }

    /* Button groups or containers */
    .page-privacy-policy__hero-content {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Color contrast enforcement - ensures text is visible on various backgrounds */
/* Main content uses --page-bg (dark) so text is --text-main (light) and --text-secondary (lighter green) */
/* Section wrappers use --card-bg (darker green) so text remains --text-main and --text-secondary */
/* Titles use --gold-color for emphasis */
/* Buttons use --btn-gradient (dark green) with --text-main (light) text */
/* Secondary button uses transparent bg with --glow-color (light green) border and text, then reverses on hover */

/* Explicit contrast checks */
.page-privacy-policy__text-block,
.page-privacy-policy__list-item,
.page-privacy-policy__description,
.page-privacy-policy__last-updated {
    color: var(--text-secondary); /* Ensure light text on dark backgrounds */
}

.page-privacy-policy__main-title,
.page-privacy-policy__section-title {
    color: var(--gold-color); /* Gold color for titles */
}

.page-privacy-policy__btn-primary {
    color: var(--text-main); /* White-ish text on green gradient */
}

.page-privacy-policy__btn-secondary {
    color: var(--glow-color); /* Light green text on transparent/dark background */
}
.page-privacy-policy__btn-secondary:hover {
    color: var(--page-bg); /* Dark text on light green background */
}