/* style/terms-conditions.css */

/* Base styles for the terms-conditions page */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #F5F7FA; /* General page background */
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above content on mobile, flex-row on desktop */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #E53935; /* Main brand color for hero background */
    color: #ffffff; /* White text for dark background */
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-terms-conditions__hero-content {
    z-index: 1;
    max-width: 900px;
    margin-bottom: 30px; /* Space between content and image on mobile */
}

.page-terms-conditions__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-terms-conditions__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-terms-conditions__cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-terms-conditions__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-terms-conditions__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-top: 30px; /* Space between content and image */
    box-sizing: border-box;
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Content Area */
.page-terms-conditions__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #ffffff; /* White background for main content for contrast */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    margin-top: -50px; /* Slightly overlap with hero for visual flow */
    position: relative;
    z-index: 2;
}

.page-terms-conditions__container {
    max-width: 900px;
    margin: 0 auto;
}

.page-terms-conditions__section-title {
    font-size: 2em;
    font-weight: 700;
    color: #E53935; /* Main brand color for section titles */
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #E0E0E0;
    padding-bottom: 10px;
}

.page-terms-conditions p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #333333; /* Main text color */
}

.page-terms-conditions__image-full {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__cta-group {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-terms-conditions__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: none;
}

.page-terms-conditions__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-terms-conditions__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
}

.page-terms-conditions__btn-secondary:hover {
    background-color: #E53935;
    color: #ffffff;
}

/* Responsive styles */
@media (min-width: 769px) {
    .page-terms-conditions__hero-section {
        flex-direction: row; /* Desktop: content next to image */
        text-align: left;
        padding-left: 40px;
        padding-right: 40px;
    }

    .page-terms-conditions__hero-content {
        flex: 1;
        margin-right: 50px;
        margin-bottom: 0;
    }

    .page-terms-conditions__hero-image-wrapper {
        flex: 1;
        margin-top: 0;
        max-width: 600px; /* Adjust as needed */
    }
}

@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Small top padding for mobile */
    }

    .page-terms-conditions__main-title {
        font-size: 2em;
    }

    .page-terms-conditions__description {
        font-size: 1em;
    }

    .page-terms-conditions__content-area {
        padding: 20px 15px;
        margin-top: -30px;
    }

    .page-terms-conditions__section-title {
        font-size: 1.5em;
        margin-top: 30px;
    }

    .page-terms-conditions p {
        font-size: 0.95em;
    }

    /* Mobile image responsiveness */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-terms-conditions__hero-image-wrapper,
    .page-terms-conditions__image-full {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }

    /* Mobile button responsiveness */
    .page-terms-conditions__cta-button,
    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        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-terms-conditions__cta-group {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}