/* style/privacy-policy.css */

/* Base styles for the privacy policy page */
.page-privacy-policy {
    background-color: var(--background-color, #08160F); /* Fallback to custom color if shared var is not set */
    color: var(--text-main, #F2FFF6); /* Main text color */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    font-size: 16px;
    padding-bottom: 40px;
}

/* 1. Top Section (Hero Content) */
.page-privacy-policy__top-section {
    padding-top: 10px; /* Small top padding, not var(--header-offset) */
    padding-bottom: 40px;
    text-align: center;
    background-color: #0A4B2C; /* Deep Green from custom palette */
    border-bottom: 1px solid var(--divider, #1E3A2A);
}

.page-privacy-policy__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-privacy-policy__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Adaptive font size for H1 */
    color: var(--gold, #F2C14E);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.page-privacy-policy__description {
    font-size: 18px;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-privacy-policy__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsiveness */
    max-width: 100%; /* Ensure buttons don't exceed container */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-privacy-policy__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.3);
}

.page-privacy-policy__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.4);
}

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

.page-privacy-policy__btn-secondary:hover {
    background-color: rgba(242, 193, 78, 0.1);
    transform: translateY(-2px);
}

/* 2. Single-column long text container */
.page-privacy-policy__content-section {
    padding: 40px 0;
}

.page-privacy-policy__article-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: var(--background-color, #08160F); /* Ensure consistent background */
    border-radius: 8px;
}

.page-privacy-policy__section-title {
    font-size: 32px;
    color: var(--text-main, #F2FFF6);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid var(--border, #2E7A4E);
    padding-bottom: 10px;
}

.page-privacy-policy__subsection-title {
    font-size: 24px;
    color: var(--gold, #F2C14E);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-privacy-policy p {
    margin-bottom: 15px;
    color: var(--text-main, #F2FFF6);
}

.page-privacy-policy strong {
    color: var(--gold, #F2C14E);
}

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

.page-privacy-policy__list-item {
    margin-bottom: 8px;
    color: var(--text-main, #F2FFF6);
}

.page-privacy-policy__inline-link {
    color: var(--glow, #57E38D);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-privacy-policy__inline-link:hover {
    color: var(--gold, #F2C14E);
}

.page-privacy-policy__contact-list {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
    margin-bottom: 15px;
}

.page-privacy-policy__contact-item {
    margin-bottom: 10px;
    color: var(--text-main, #F2FFF6);
}

/* 3. General images and figure */
.page-privacy-policy__image-figure {
    margin: 30px auto;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background-color: var(--card-bg, #11271B); /* Card background for image figure */
    padding: 10px;
    box-sizing: border-box;
}

.page-privacy-policy__image-figure img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    object-fit: cover;
}

.page-privacy-policy__image-caption {
    font-size: 14px;
    color: var(--text-secondary, #A7D9B8);
    text-align: center;
    padding: 10px 0 5px;
}

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

    /* 1. Top section (title + CTA) */
    .page-privacy-policy__top-section {
        padding-top: 10px !important; /* Enforce small top padding */
        padding-bottom: 30px;
    }

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

    .page-privacy-policy__main-title {
        font-size: clamp(24px, 7vw, 38px);
        margin-bottom: 10px;
    }

    .page-privacy-policy__description {
        font-size: 16px;
        margin-bottom: 20px;
    }

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

    /* Buttons within CTA section */
    .page-privacy-policy__btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 15px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* 2. Single-column long text container */
    .page-privacy-policy__article-wrap {
        padding: 0 15px; /* Adjust padding for mobile */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-privacy-policy__subsection-title {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-privacy-policy p,
    .page-privacy-policy__list-item,
    .page-privacy-policy__contact-item {
        font-size: 15px;
    }

    /* 3. General images and figure */
    .page-privacy-policy__image-figure {
        margin: 20px auto;
        padding: 8px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-privacy-policy__image-figure img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-privacy-policy__image-caption {
        font-size: 13px;
    }

    /* 4. Buttons and button containers (if any outside cta-buttons) */
    /* This section covers any other buttons that might appear in the content */
    .page-privacy-policy a[class*="btn"],
    .page-privacy-policy a[class*="button"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-privacy-policy__button-group { /* Example for a container of multiple buttons */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }
}