/* style/terms-conditions.css */

/* General styles for the terms-conditions page */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #FFF5E1); /* Default text color from custom palette */
    background-color: var(--background, #B71C1C); /* Default background color from custom palette */
}

/* Container for main content, centering it and adding padding */
.page-terms-conditions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section (Top Banner with Title and CTA) */
.page-terms-conditions__hero-section {
    padding-top: 10px; /* Small top padding, shared.css handles body padding */
    padding-bottom: 40px;
    background-color: var(--deep-red, #7A0E0E); /* Use a darker red from custom palette */
    text-align: center;
    color: #FFF5E1;
}

.page-terms-conditions__hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-terms-conditions__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    color: #FFF5E1; /* Main text color from custom palette */
    margin-bottom: 10px;
    max-width: 800px;
}

.page-terms-conditions__hero-description {
    font-size: 1.1em;
    max-width: 700px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-terms-conditions__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 600px; /* Limit max width for button group */
}

.page-terms-conditions__btn {
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure button adapts to container width */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-terms-conditions__btn--primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
    color: #7A0E0E; /* Deep Red for text on gold button for contrast */
    border: 2px solid transparent;
}

.page-terms-conditions__btn--primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 0 15px rgba(255, 216, 106, 0.7);
}

.page-terms-conditions__btn--secondary {
    background: #D32F2F; /* Card BG from custom palette */
    color: #FFF5E1; /* Main text color from custom palette */
    border: 2px solid #F2B544; /* Border from custom palette */
}

.page-terms-conditions__btn--secondary:hover {
    background: #E53935; /* Auxiliary color */
    border-color: #FFCC66; /* Glow color */
}

/* Article Content Area */
.page-terms-conditions__article-wrap {
    max-width: 900px; /* Slightly narrower for readability of long text */
    margin: 40px auto;
    padding: 20px;
    background-color: var(--card-bg, #D32F2F); /* Card BG from custom palette */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #FFF5E1; /* Main text color from custom palette */
    box-sizing: border-box;
}

.page-terms-conditions__section-title {
    font-size: clamp(1.8em, 3vw, 2.2em);
    color: #FFD86A; /* Gold color for main section titles */
    margin-top: 35px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.page-terms-conditions__sub-title {
    font-size: clamp(1.4em, 2.5vw, 1.7em);
    color: #F4D34D; /* Gold color for sub-titles */
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-terms-conditions p {
    margin-bottom: 15px;
    font-size: 1em;
}

/* Figures and Images */
.page-terms-conditions__figure {
    margin: 25px 0;
    text-align: center;
}

.page-terms-conditions__figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: block; /* Ensure block-level for max-width to work */
    margin: 0 auto; /* Center image */
}

.page-terms-conditions__figcaption {
    font-size: 0.9em;
    color: #f0f0f0;
    margin-top: 10px;
}

/* Promo Box within content */
.page-terms-conditions__promo-box {
    background-color: var(--deep-red, #7A0E0E); /* Deep Red from custom palette */
    border: 2px solid #F2B544; /* Border from custom palette */
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
    color: #FFF5E1;
}

.page-terms-conditions__promo-title {
    font-size: clamp(1.5em, 2.8vw, 2em);
    color: #FFD86A; /* Gold color */
    margin-bottom: 15px;
    font-weight: 700;
}

.page-terms-conditions__promo-box p {
    margin-bottom: 20px;
}

.page-terms-conditions__btn--gold {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    color: #7A0E0E; /* Deep Red for text on gold button for contrast */
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
}

.page-terms-conditions__btn--gold:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 0 10px rgba(255, 216, 106, 0.5);
}

/* Lists */
.page-terms-conditions__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-terms-conditions__list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 1em;
    color: #FFF5E1;
}

.page-terms-conditions__list-icon {
    color: #FFD86A; /* Gold color for icons */
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2em;
    line-height: 1;
}

/* Contact Promo Section at the bottom */
.page-terms-conditions__contact-promo {
    background-color: var(--background, #B71C1C); /* Background color from custom palette */
    padding: 50px 20px;
    text-align: center;
    color: #FFF5E1;
}

.page-terms-conditions__section-title--alt {
    color: #FFD86A; /* Gold color for this title */
    margin-bottom: 20px;
}

.page-terms-conditions__contact-text {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

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

    .page-terms-conditions__section-title {
        font-size: clamp(1.6em, 3.5vw, 2em);
    }

    .page-terms-conditions__sub-title {
        font-size: clamp(1.3em, 2.8vw, 1.6em);
    }

    .page-terms-conditions__article-wrap {
        margin: 30px auto;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    /* Top section and CTA */
    .page-terms-conditions__hero-section {
        padding-top: 10px !important; /* Small top padding, shared.css handles body padding */
        padding-bottom: 30px;
    }

    .page-terms-conditions__hero-content {
        gap: 15px;
    }

    .page-terms-conditions__main-title {
        font-size: clamp(1.5em, 7vw, 2.2em); /* Adjust H1 for smaller screens */
        padding: 0 15px;
    }

    .page-terms-conditions__hero-description {
        font-size: 1em;
        padding: 0 15px;
    }

    .page-terms-conditions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px;
    }

    .page-terms-conditions__btn {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px;
        font-size: 0.95em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Article wrap and content */
    .page-terms-conditions__article-wrap {
        margin: 20px auto;
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-terms-conditions__section-title {
        font-size: clamp(1.4em, 6vw, 1.8em);
        margin-top: 25px;
        margin-bottom: 15px;
        padding: 0 5px;
    }

    .page-terms-conditions__sub-title {
        font-size: clamp(1.2em, 5vw, 1.5em);
        margin-top: 20px;
        margin-bottom: 10px;
        padding: 0 5px;
    }

    .page-terms-conditions p,
    .page-terms-conditions__list-item {
        font-size: 0.95em;
        padding: 0 5px;
    }

    /* Images and figures */
    .page-terms-conditions__figure {
        margin: 20px 0;
    }

    .page-terms-conditions__figure img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-terms-conditions__figcaption {
        padding: 0 5px;
    }

    /* Promo box */
    .page-terms-conditions__promo-box {
        padding: 20px 15px;
        margin: 25px 0;
    }

    .page-terms-conditions__promo-title {
        font-size: clamp(1.3em, 6.5vw, 1.8em);
    }

    .page-terms-conditions__btn--gold {
        padding: 10px 15px;
        font-size: 0.9em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Contact promo */
    .page-terms-conditions__contact-promo {
        padding: 40px 15px;
    }

    .page-terms-conditions__section-title--alt {
        font-size: clamp(1.4em, 6vw, 1.8em);
    }

    .page-terms-conditions__contact-text {
        font-size: 1em;
        padding: 0 10px;
    }

    /* Ensure all content containers are responsive */
    .page-terms-conditions__container,
    .page-terms-conditions__hero-content,
    .page-terms-conditions__promo-box,
    .page-terms-conditions__contact-promo {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Specific rule for list items to prevent icon overflow */
    .page-terms-conditions__list-item {
        align-items: baseline;
    }
    .page-terms-conditions__list-icon {
        flex-shrink: 0;
    }
}