/* style/privacy-policy.css */

/* Custom properties for colors (derived from provided color scheme) */
:root {
    --cwin-primary: #11A84E; /* Main color */
    --cwin-secondary: #22C768; /* Accent color */
    --cwin-card-bg: #11271B; /* Card Background */
    --cwin-bg: #08160F; /* Background */
    --cwin-text-main: #F2FFF6; /* Main text color */
    --cwin-text-secondary: #A7D9B8; /* Secondary text color */
    --cwin-border: #2E7A4E; /* Border color */
    --cwin-glow: #57E38D; /* Glow */
    --cwin-gold: #F2C14E; /* Gold */
    --cwin-divider: #1E3A2A; /* Divider */
    --cwin-deep-green: #0A4B2C; /* Deep Green */
    --cwin-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */

    /* Default text color for light backgrounds */
    --text-on-light: #333333;
    /* Default text color for dark backgrounds */
    --text-on-dark: #ffffff;
}

/* Base styles for the privacy policy page */
.page-privacy-policy {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--cwin-text-main); /* Main text color for the page */
    background-color: var(--cwin-bg); /* Use the specified background color for the main content area */
}

/* Ensure body padding-top is handled by shared.css, not here */
/* .page-privacy-policy { padding-top: var(--header-offset); }  -- NO, handled by body in shared.css */

.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;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    padding: 60px 0;
    padding-top: 10px; /* Small top padding, not var(--header-offset) */
    background-color: var(--cwin-deep-green); /* Example dark background for hero */
    color: var(--text-on-dark);
    overflow: hidden; /* Ensure no overflow */
}

.page-privacy-policy__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px; /* Space between image and text */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

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

.page-privacy-policy__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-privacy-policy__main-title {
    font-size: clamp(2em, 3.5vw, 3.2em); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--cwin-gold); /* Gold color for main title */
    letter-spacing: -0.02em;
}

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

.page-privacy-policy__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width for flex-wrap */
    max-width: 600px; /* Limit max width for buttons group */
    margin-left: auto;
    margin-right: auto;
}

/* General button styles */
.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05em;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
    white-space: normal; /* Allow text wrapping in buttons */
    word-wrap: break-word; /* Allow long words to break */
    min-width: 180px; /* Minimum width for buttons */
}

.page-privacy-policy__btn-primary {
    background: var(--cwin-button-gradient);
    color: var(--text-on-dark);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 255, 100, 0.2);
}

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

.page-privacy-policy__btn-secondary {
    background: transparent;
    color: var(--cwin-primary);
    border: 2px solid var(--cwin-primary);
    box-shadow: inset 0 0 0 0 var(--cwin-primary);
}

.page-privacy-policy__btn-secondary:hover {
    background: var(--cwin-primary);
    color: var(--text-on-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.3);
}

/* Content Area */
.page-privacy-policy__content-area {
    background-color: var(--cwin-bg); /* Page background */
    color: var(--cwin-text-main); /* Main text color for content */
    padding: 60px 0;
}

.page-privacy-policy__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: 700;
    color: var(--cwin-primary);
    margin-top: 40px;
    margin-bottom: 25px;
    text-align: center;
}

.page-privacy-policy__sub-title {
    font-size: clamp(1.4em, 2.5vw, 1.8em);
    font-weight: 600;
    color: var(--cwin-gold);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-privacy-policy__paragraph {
    font-size: 1.05em;
    margin-bottom: 15px;
    color: var(--cwin-text-secondary); /* Secondary text color for paragraphs */
}

.page-privacy-policy__highlight {
    color: var(--cwin-gold);
    font-weight: 700;
}

.page-privacy-policy__list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-privacy-policy__list-item {
    font-size: 1em;
    margin-bottom: 8px;
    color: var(--cwin-text-secondary); /* Secondary text color for list items */
}

.page-privacy-policy__list-item strong {
    color: var(--cwin-text-main); /* Strong text in list items */
}

.page-privacy-policy__link {
    color: var(--cwin-gold);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-privacy-policy__link:hover {
    color: var(--cwin-primary);
}

.page-privacy-policy__content-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    object-fit: cover;
}

.page-privacy-policy__cta-block {
    background-color: var(--cwin-card-bg); /* Darker background for CTA block */
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border: 1px solid var(--cwin-border);
}

.page-privacy-policy__cta-text {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--cwin-text-main);
    margin-bottom: 25px;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
    background-color: var(--cwin-deep-green); /* Dark green background */
    color: var(--cwin-text-main);
    padding: 60px 0;
}

.page-privacy-policy__faq-section .page-privacy-policy__section-title {
    color: var(--cwin-gold);
}

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

.page-privacy-policy__faq-item {
    background-color: var(--cwin-card-bg); /* Card background for FAQ items */
    border: 1px solid var(--cwin-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--cwin-text-main);
}

.page-privacy-policy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--cwin-card-bg);
    color: var(--cwin-text-main);
    transition: background-color 0.3s ease;
}

.page-privacy-policy__faq-question:hover {
    background-color: var(--cwin-divider); /* Slightly darker on hover */
}

/* For details tag */
.page-privacy-policy__faq-item[open] .page-privacy-policy__faq-question {
    background-color: var(--cwin-divider);
    color: var(--cwin-gold);
}

.page-privacy-policy__faq-qtext {
    flex-grow: 1;
}

.page-privacy-policy__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--cwin-primary);
}

/* Hide default details marker */
.page-privacy-policy__faq-item > summary {
    list-style: none;
}
.page-privacy-policy__faq-item > summary::-webkit-details-marker {
    display: none;
}


.page-privacy-policy__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--cwin-text-secondary);
}

/* Contrast Fixes (as per instructions) */
.page-privacy-policy__dark-section {
    background: var(--cwin-deep-green);
    color: var(--text-on-dark); /* Forced white text */
}

.page-privacy-policy__light-bg {
    background: var(--cwin-bg); /* Using the main dark background */
    color: var(--cwin-text-main); /* Main text color */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-privacy-policy__hero-section {
        padding: 40px 0;
        padding-top: 10px;
    }
    .page-privacy-policy__main-title {
        font-size: clamp(1.8em, 4.5vw, 2.8em);
    }
    .page-privacy-policy__hero-description {
        font-size: 1.05em;
    }
    .page-privacy-policy__section-title {
        font-size: clamp(1.6em, 3.5vw, 2.2em);
    }
    .page-privacy-policy__sub-title {
        font-size: clamp(1.2em, 2.8vw, 1.6em);
    }
}

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

    .page-privacy-policy__hero-section {
        padding: 30px 0;
        padding-top: 10px !important; /* Ensure small top padding on mobile */
    }

    .page-privacy-policy__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-privacy-policy__hero-content {
        padding: 0 15px;
    }

    .page-privacy-policy__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .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-left: 15px; /* Ensure button text has padding */
        padding-right: 15px;
    }

    .page-privacy-policy__container,
    .page-privacy-policy__content-area,
    .page-privacy-policy__cta-block,
    .page-privacy-policy__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Images responsiveness */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-privacy-policy__section,
    .page-privacy-policy__card,
    .page-privacy-policy__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }

    .page-privacy-policy__content-image {
        margin-left: 0;
        margin-right: 0;
    }

    .page-privacy-policy__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-privacy-policy__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-privacy-policy__main-title {
        font-size: clamp(1.5em, 6vw, 2.2em);
    }
    .page-privacy-policy__hero-description {
        font-size: 0.95em;
    }
    .page-privacy-policy__section-title {
        font-size: clamp(1.4em, 5vw, 1.8em);
    }
    .page-privacy-policy__sub-title {
        font-size: clamp(1.1em, 4vw, 1.4em);
    }
}