/* style/terms-conditions.css */

/* Base styles for the page content */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Inherit from body or shared */
    padding-top: 0; /* Assumed shared.css handles body padding for header offset */
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Minimum height for hero */
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #017439, #0a0a0a); /* Blend brand color with dark background */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-terms-conditions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Make image subtle in background */
}

.page-terms-conditions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    color: #ffffff;
}

.page-terms-conditions__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-terms-conditions__hero-description a {
    color: #FFFF00; /* Link in description */
    text-decoration: underline;
}

/* Content Section - Specific background and text color */
.page-terms-conditions__content-section {
    padding: 60px 20px;
    background-color: #FFFFFF; /* Light background as per instruction for light-bg class */
    color: #333333; /* Dark text for light background */
}

.page-terms-conditions__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-terms-conditions__section-title {
    font-size: 2.5em;
    color: #017439; /* Primary brand color for main titles */
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
}

.page-terms-conditions__subsection-title {
    font-size: 1.8em;
    color: #017439; /* Primary brand color for sub titles */
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-terms-conditions__paragraph {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.7;
}

.page-terms-conditions__paragraph a {
    color: #017439; /* Links within paragraphs */
    text-decoration: underline;
}

.page-terms-conditions__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.page-terms-conditions__list-item {
    margin-bottom: 10px;
    font-size: 1em;
}

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

/* Call to Action Section */
.page-terms-conditions__cta-section {
    background-color: #0a0a0a; /* Dark background from body */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.page-terms-conditions__cta-title {
    font-size: 2.8em;
    color: #ffffff;
    margin-bottom: 20px;
}

.page-terms-conditions__cta-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-terms-conditions__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-terms-conditions__btn-primary {
    background-color: #C30808; /* Custom red for register/login */
    color: #FFFF00; /* Custom yellow font */
    border: 2px solid #C30808;
}

.page-terms-conditions__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__btn-secondary {
    background-color: transparent;
    color: #017439; /* Primary brand color */
    border: 2px solid #017439;
}

.page-terms-conditions__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Specific button colors for register/login in CTA section */
.page-terms-conditions__btn-register {
    background-color: #C30808;
    color: #FFFF00;
    border-color: #C30808;
}

.page-terms-conditions__btn-login {
    background-color: transparent;
    color: #FFFF00; /* Yellow for login button text */
    border-color: #FFFF00; /* Yellow border */
}

.page-terms-conditions__btn-login:hover {
    background-color: #FFFF00;
    color: #C30808;
    border-color: #FFFF00;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }

    .page-terms-conditions__hero-title {
        font-size: 2.2em;
    }

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

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

    .page-terms-conditions__subsection-title {
        font-size: 1.5em;
    }

    .page-terms-conditions__paragraph,
    .page-terms-conditions__list-item {
        font-size: 0.95em;
    }

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

    .page-terms-conditions__cta-description {
        font-size: 1.1em;
    }

    .page-terms-conditions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* Images and containers responsive for mobile */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-terms-conditions__section,
    .page-terms-conditions__card,
    .page-terms-conditions__container,
    .page-terms-conditions__hero-content,
    .page-terms-conditions__cta-section,
    .page-terms-conditions__content-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video related classes, though not used, must be present for compliance */
    .page-terms-conditions video,
    .page-terms-conditions__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-terms-conditions__video-section,
    .page-terms-conditions__video-container,
    .page-terms-conditions__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
}

/* Color contrast fixes (if needed, based on body background) */
/* Since body is dark (#0a0a0a), and content-section is light (#FFFFFF), text colors are handled */
/* .page-terms-conditions__dark-bg will apply if a section has this class, it should have light text */
/* .page-terms-conditions__light-bg will apply if a section has this class, it should have dark text */

.page-terms-conditions__dark-bg {
  background-color: #017439; /* Example usage of brand color on dark section */
  color: #ffffff;
}
.page-terms-conditions__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Ensure no filter is used on images */
.page-terms-conditions img {
    filter: none !important;
}