/* style/privacy-policy.css */

/* Custom colors from requirements */
:root {
    --f168-primary-color: #11A84E;
    --f168-secondary-color: #22C768;
    --f168-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --f168-card-bg: #11271B;
    --f168-background: #08160F; /* Main body background color */
    --f168-text-main: #F2FFF6;
    --f168-text-secondary: #A7D9B8;
    --f168-border-color: #2E7A4E;
    --f168-glow-color: #57E38D;
    --f168-gold-color: #F2C14E;
    --f168-divider-color: #1E3A2A;
    --f168-deep-green: #0A4B2C;
}

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-privacy-policy {
    background-color: var(--f168-background); /* Override if shared.css doesn't set it */
    color: var(--f168-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

/* Hero Section */
.page-privacy-policy__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, larger bottom padding */
    overflow: hidden; /* Ensure no overflow from image */
    background-color: var(--f168-deep-green); /* A darker green for the hero section background */
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.page-privacy-policy__hero-image {
    width: 100%;
    height: auto;
    max-width: 1200px; /* Adjust max-width to fit typical content area */
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.page-privacy-policy__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any background elements */
}

.page-privacy-policy__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
    color: var(--f168-text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-privacy-policy__description {
    font-size: 1.1em;
    color: var(--f168-text-secondary);
    margin-bottom: 30px;
}

/* Content Sections */
.page-privacy-policy__content-section {
    padding: 60px 20px;
    background-color: var(--f168-background); /* Consistent dark background */
    color: var(--f168-text-main);
}

.page-privacy-policy__dark-section {
    background-color: var(--f168-deep-green); /* Deeper green for contrast sections */
    color: var(--f168-text-main);
}

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

.page-privacy-policy__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--f168-gold-color); /* Use gold for titles for prominence */
    margin-bottom: 25px;
    font-weight: bold;
    text-align: left;
    border-bottom: 2px solid var(--f168-divider-color);
    padding-bottom: 10px;
}

.page-privacy-policy__text-block {
    font-size: 1em;
    margin-bottom: 20px;
    color: var(--f168-text-main);
}

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

.page-privacy-policy__list li {
    margin-bottom: 10px;
    color: var(--f168-text-secondary);
}

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

.page-privacy-policy__brand-name {
    color: var(--f168-gold-color);
    font-weight: bold;
}

/* Image with text layout */
.page-privacy-policy__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-privacy-policy__image-text-block--reverse {
    flex-direction: row-reverse;
}

.page-privacy-policy__image-left,
.page-privacy-policy__image-right {
    flex: 1;
    min-width: 300px; /* Minimum width for image before wrapping */
    max-width: 600px; /* Max width for images */
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__text-content {
    flex: 2;
    min-width: 300px; /* Minimum width for text before wrapping */
}

/* Contact Block */
.page-privacy-policy__contact-block {
    margin-top: 30px;
    text-align: center;
}

.page-privacy-policy__contact-block .page-privacy-policy__list {
    list-style-type: none;
    margin-left: 0;
    padding: 0;
    text-align: center;
}

.page-privacy-policy__contact-block .page-privacy-policy__list li {
    margin-bottom: 15px;
}

.page-privacy-policy__contact-block a {
    color: var(--f168-gold-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-privacy-policy__contact-block a:hover {
    color: var(--f168-primary-color);
}

.page-privacy-policy__contact-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* CTA Section */
.page-privacy-policy__cta-section {
    background-color: var(--f168-card-bg); /* Use a slightly different dark background for contrast */
    padding: 80px 20px;
    text-align: center;
    color: var(--f168-text-main);
}

.page-privacy-policy__cta-title {
    font-size: clamp(2em, 4vw, 3em);
    color: var(--f168-gold-color);
    margin-bottom: 20px;
}

.page-privacy-policy__cta-description {
    font-size: 1.1em;
    color: var(--f168-text-secondary);
    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 */
}

/* Buttons */
.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.1em;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

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

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

.page-privacy-policy__btn-secondary:hover {
    background-color: var(--f168-gold-color);
    color: var(--f168-background); /* Dark text for gold background on hover */
    transform: translateY(-3px);
}

/* General Link Styling */
.page-privacy-policy a {
    color: var(--f168-gold-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
    color: var(--f168-primary-color);
}


/* Responsive styles */
@media (max-width: 768px) {
    .page-privacy-policy {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-privacy-policy__hero-section {
        padding: 10px 15px 40px;
    }

    .page-privacy-policy__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

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

    .page-privacy-policy__content-section {
        padding: 40px 15px;
    }

    .page-privacy-policy__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }

    .page-privacy-policy__image-text-block {
        flex-direction: column;
        gap: 30px;
    }

    .page-privacy-policy__image-text-block--reverse {
        flex-direction: column; /* Ensure it also stacks on mobile */
    }

    .page-privacy-policy__image-left,
    .page-privacy-policy__image-right,
    .page-privacy-policy__contact-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset; /* Remove min-width for mobile */
    }

    .page-privacy-policy__text-content {
        min-width: unset; /* Remove min-width for mobile */
    }

    /* Ensure all images are responsive and don't overflow */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All containers that might hold images/content */
    .page-privacy-policy__container,
    .page-privacy-policy__hero-content,
    .page-privacy-policy__image-text-block,
    .page-privacy-policy__contact-block,
    .page-privacy-policy__cta-section,
    .page-privacy-policy__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-privacy-policy__cta-section {
        padding: 60px 15px;
    }

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

    .page-privacy-policy__btn-primary,
    .page-privacy-policy__btn-secondary,
    .page-privacy-policy a[class*="button"],
    .page-privacy-policy a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px; /* Adjust padding for mobile */
    }
}

/* Ensure content area images CSS size is not less than 200px */
.page-privacy-policy img:not(.page-privacy-policy__hero-image) {
    min-width: 200px;
    min-height: 200px;
}
/* Override for mobile to allow responsiveness, but general rule for desktop */
@media (min-width: 769px) {
    .page-privacy-policy__image-left,
    .page-privacy-policy__image-right,
    .page-privacy-policy__contact-image {
        width: auto; /* Allow flex to control width */
        min-width: 200px; /* Ensure minimum size */
        min-height: 200px;
    }
}