/* style/privacy-policy.css */

/* Variables for colors */
:root {
    --b29-primary-color: #E53935; /* Main color */
    --b29-secondary-color: #FF5A4F; /* Auxiliary color */
    --b29-text-main: #333333; /* Main text color for light backgrounds */
    --b29-bg-card: #FFFFFF; /* Card background */
    --b29-bg-page: #F5F7FA; /* Page background */
    --b29-border-color: #E0E0E0; /* Border color */
    --b29-gradient-button: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
}

.page-privacy-policy {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--b29-text-main); /* Default text color for light body background */
    background-color: var(--b29-bg-page); /* Page background, consistent with body background type */
    padding-bottom: 40px;
}

.page-privacy-policy__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section / Main Title Section */
.page-privacy-policy__hero-section {
    padding-top: 10px; /* Small top padding, not --header-offset */
    padding-bottom: 40px;
    text-align: center;
    background-color: var(--b29-bg-page);
}

.page-privacy-policy__main-title {
    font-size: clamp(2em, 3.5vw, 2.8em); /* Responsive font size for H1 */
    color: var(--b29-primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-privacy-policy__description {
    font-size: 1.1em;
    color: var(--b29-text-main);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-privacy-policy__description a {
    color: var(--b29-primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-privacy-policy__description a:hover {
    text-decoration: underline;
}

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

/* General Button Styles */
.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent; /* Default transparent border */
    max-width: 100%; /* Ensure buttons adapt to container width */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-privacy-policy__btn-primary {
    background: var(--b29-gradient-button);
    color: #ffffff;
    border-color: var(--b29-primary-color);
}

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

.page-privacy-policy__btn-secondary {
    background-color: var(--b29-bg-card);
    color: var(--b29-primary-color);
    border-color: var(--b29-primary-color);
}

.page-privacy-policy__btn-secondary:hover {
    background-color: var(--b29-primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Content Area */
.page-privacy-policy__content-area {
    padding: 20px 0;
}

.page-privacy-policy__article-wrap {
    max-width: 900px; /* Adjusted for better readability for long text */
    margin: 0 auto;
    padding: 0 20px;
    background-color: var(--b29-bg-card);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.page-privacy-policy__section-title {
    font-size: 2em;
    color: var(--b29-primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.page-privacy-policy__sub-section-title {
    font-size: 1.5em;
    color: var(--b29-text-main);
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-privacy-policy__text-block {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: var(--b29-text-main);
}

.page-privacy-policy__text-block a {
    color: var(--b29-primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-privacy-policy__text-block a:hover {
    text-decoration: underline;
}

.page-privacy-policy__highlight {
    color: var(--b29-primary-color);
    font-weight: bold;
}

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

.page-privacy-policy__list-item {
    margin-bottom: 8px;
    font-size: 1.05em;
}

.page-privacy-policy__list-item strong {
    color: var(--b29-primary-color);
}

/* Image styles */
.page-privacy-policy__image-figure {
    margin: 25px 0;
    text-align: center;
}

.page-privacy-policy__image-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center image */
}

.page-privacy-policy__image-caption {
    font-size: 0.9em;
    color: #666666;
    margin-top: 10px;
}

/* Promo Box */
.page-privacy-policy__promo-box {
    background-color: #fce4e4; /* Light red background for promo */
    border: 1px solid var(--b29-primary-color);
    border-radius: 10px;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-privacy-policy__promo-title {
    font-size: 1.8em;
    color: var(--b29-primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-privacy-policy__promo-text {
    font-size: 1.1em;
    color: var(--b29-text-main);
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-privacy-policy__promo-text a {
    color: var(--b29-primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-privacy-policy__promo-text a:hover {
    text-decoration: underline;
}

.page-privacy-policy__btn-promo {
    padding: 15px 35px;
    font-size: 1.1em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-privacy-policy__main-title {
        font-size: clamp(1.8em, 4vw, 2.5em);
    }

    .page-privacy-policy__article-wrap {
        padding: 25px;
    }

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

    .page-privacy-policy__sub-section-title {
        font-size: 1.3em;
    }

    .page-privacy-policy__promo-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    /* 1. Top Section Title + CTA */
    .page-privacy-policy__hero-section {
        padding-top: 10px !important; /* Specific top padding for mobile */
        padding-bottom: 30px;
    }

    .page-privacy-policy__main-title {
        font-size: clamp(1.5em, 6vw, 2em); /* Adjusted for mobile */
        margin-bottom: 10px;
    }

    .page-privacy-policy__description {
        font-size: 1em;
        margin-bottom: 20px;
        padding: 0 15px; /* Add horizontal padding to description */
    }

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

    /* 2. Single Column Long Text Container */
    .page-privacy-policy__article-wrap {
        padding: 20px 15px; /* Adjusted padding for mobile */
        margin: 0 10px; /* Small margin on sides */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-privacy-policy__section-title {
        font-size: 1.5em; /* Adjusted for mobile */
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-privacy-policy__sub-section-title {
        font-size: 1.2em; /* Adjusted for mobile */
        margin-top: 20px;
        margin-bottom: 8px;
    }

    .page-privacy-policy__text-block,
    .page-privacy-policy__list-item,
    .page-privacy-policy__promo-text {
        font-size: 0.95em; /* Slightly smaller text for mobile readability */
    }

    /* 3. Generic Images and Figure */
    .page-privacy-policy img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .page-privacy-policy__image-figure {
        margin: 20px 0;
        padding: 0 10px; /* Ensure figure itself doesn't cause overflow */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-privacy-policy__image-caption {
        font-size: 0.85em;
    }

    /* 4. Buttons and Button Containers */
    .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;
        padding-right: 15px;
    }
    
    .page-privacy-policy__cta-buttons,
    .page-privacy-policy__button-group,
    .page-privacy-policy__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Promo Box for mobile */
    .page-privacy-policy__promo-box {
        padding: 20px 15px;
        margin-top: 30px;
        margin-left: 10px;
        margin-right: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-privacy-policy__promo-title {
        font-size: 1.4em;
        margin-bottom: 10px;
    }

    /* 5. Registration Tutorial and FAQ Blocks (General text blocks apply) */
    /* This page doesn't have a specific registration tutorial or FAQ block beyond generic text,
       so the general .page-privacy-policy__text-block and .page-privacy-policy__list-item
       styles above are sufficient for readability. */
    .page-privacy-policy__content-area {
        padding: 15px 0;
    }
}