/* style/terms-conditions.css */

/* Base styles for the terms and conditions page */
.page-terms-conditions {
    /* Body background is dark from shared.css, so main text color should be light */
    color: #f0f0f0; /* Light gray for readability on dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Space above footer */
}

.page-terms-conditions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px; /* Reduced top padding slightly as the variable will add more */
    /* Fixed header offset: Must be in default (desktop) style */
    padding-top: var(--header-offset, 120px);
    background: #1a1a1a; /* Dark background consistent with body */
    color: #ffffff;
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-terms-conditions__main-title {
    font-size: 3.2em;
    font-weight: bold;
    color: var(--primary-color, #FFD700); /* Gold for main title */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-terms-conditions__intro-text {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #f0f0f0;
}

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

/* Content Section - Light background for readability of long text */
.page-terms-conditions__content-section {
    background: #ffffff; /* White background for main content */
    color: #333333; /* Dark text for readability on white background */
    padding: 60px 0;
}

.page-terms-conditions__section-title {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--secondary-color, #8B0000); /* Dark red for main section titles */
    margin-top: 50px;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
    font-size: 1.6em;
    font-weight: 600;
    color: #555555;
    margin-top: 35px;
    margin-bottom: 15px;
}

.page-terms-conditions p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.page-terms-conditions ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 15px;
}

.page-terms-conditions li {
    margin-bottom: 8px;
}

/* Images within content sections */
.page-terms-conditions__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.page-terms-conditions__btn-link,
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    margin: 15px 10px 15px 0;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't push width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-terms-conditions__btn-primary {
    background: var(--primary-color, #FFD700); /* Gold background */
    color: #333333; /* Dark text for contrast on gold */
    border: 2px solid var(--primary-color, #FFD700);
}

.page-terms-conditions__btn-primary:hover {
    background: #e0b800; /* Slightly darker gold */
    color: #1a1a1a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__btn-secondary {
    background: transparent;
    color: var(--secondary-color, #8B0000); /* Dark red text */
    border: 2px solid var(--secondary-color, #8B0000);
}

.page-terms-conditions__btn-secondary:hover {
    background: var(--secondary-color, #8B0000); /* Dark red background */
    color: #ffffff; /* White text on dark red */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__btn-link {
    background: none;
    color: var(--secondary-color, #8B0000);
    border-bottom: 1px solid var(--secondary-color, #8B0000);
    padding: 0;
    margin: 0 0 15px 0;
    border-radius: 0;
}

.page-terms-conditions__btn-link:hover {
    color: #FFD700;
    border-color: #FFD700;
}

/* Links within text */
.page-terms-conditions a {
    color: var(--secondary-color, #8B0000); /* Dark red for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-terms-conditions a:hover {
    color: var(--primary-color, #FFD700); /* Gold on hover */
}


/* Responsive Design */
@media (max-width: 768px) {
    .page-terms-conditions {
        font-size: 15px;
        line-height: 1.6;
        padding-bottom: 40px;
    }

    .page-terms-conditions__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-terms-conditions__hero-section {
        padding: 60px 15px 30px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-terms-conditions__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-terms-conditions__intro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-terms-conditions__content-section {
        padding: 40px 0;
    }

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

    .page-terms-conditions__sub-title {
        font-size: 1.4em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

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

    /* Mobile button responsiveness */
    .page-terms-conditions__btn-link,
    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 10px 20px !important;
        margin: 10px 0 !important; /* Stack buttons vertically */
        font-size: 0.95em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-terms-conditions__btn-link {
      text-align: left; /* Keep text aligned left for link buttons */
    }
}