/* style/terms-conditions.css */

/* --- General Page Styling --- */
.page-terms-conditions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark background */
    background: var(--dark-bg-1); /* Inherited from shared.css */
    padding-top: 120px; /* Desktop: Adjust for fixed header */
}

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

.page-terms-conditions__hero-section {
    background: linear-gradient(135deg, var(--primary-color, #FFD700) 0%, var(--secondary-color, #8B0000) 100%);
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

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

.page-terms-conditions__description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.8;
}

.page-terms-conditions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-terms-conditions__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
}

.page-terms-conditions__cta-button--primary {
    background: #ffffff;
    color: var(--secondary-color, #8B0000);
}

.page-terms-conditions__cta-button--primary:hover {
    background: var(--primary-color, #FFD700);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__cta-button--secondary {
    background: var(--secondary-color, #8B0000);
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-terms-conditions__cta-button--secondary:hover {
    background: var(--primary-color, #FFD700);
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- Content Sections --- */
.page-terms-conditions__content-section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-terms-conditions__content-section:last-of-type {
    border-bottom: none;
}

.page-terms-conditions__section-title {
    font-size: 2.5em;
    color: var(--primary-color, #FFD700);
    margin-bottom: 40px;
    text-align: center;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__text-block {
    background: rgba(255, 255, 255, 0.08); /* Slightly visible light background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    color: #f0f0f0; /* Ensure light text for dark background */
}

.page-terms-conditions__text-block h3 {
    font-size: 1.8em;
    color: var(--primary-color, #FFD700);
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

.page-terms-conditions__text-block ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 15px;
    padding-left: 0;
}

.page-terms-conditions__text-block li {
    margin-bottom: 10px;
    font-size: 1.1em;
    line-height: 1.7;
}

.page-terms-conditions__link {
    color: var(--primary-color, #FFD700);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-terms-conditions__link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-terms-conditions {
        padding-top: 100px; /* Tablet: Adjust for fixed header */
    }
    .page-terms-conditions__main-title {
        font-size: 2.8em;
    }
    .page-terms-conditions__section-title {
        font-size: 2.2em;
    }
    .page-terms-conditions__text-block h3 {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions {
        padding-top: 90px !important; /* Mobile: Adjust for fixed header */
        font-size: 15px;
        line-height: 1.6;
    }
    .page-terms-conditions__hero-section {
        padding: 60px 20px;
        border-radius: 0 0 10px 10px;
        margin-bottom: 30px;
    }
    .page-terms-conditions__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-terms-conditions__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-terms-conditions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-terms-conditions__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 25px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-terms-conditions__content-section {
        padding: 40px 0;
    }
    .page-terms-conditions__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-terms-conditions__text-block {
        padding: 20px;
        margin-bottom: 20px;
    }
    .page-terms-conditions__text-block h3 {
        font-size: 1.4em;
        margin-bottom: 15px;
    }
    .page-terms-conditions__text-block p,
    .page-terms-conditions__text-block li {
        font-size: 0.95em;
    }
    .page-terms-conditions__container {
        padding: 0 15px; /* Mobile: Ensure content is within screen bounds */
    }

    /* Images responsive handling */
    .page-terms-conditions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-terms-conditions__section,
    .page-terms-conditions__card,
    .page-terms-conditions__container,
    .page-terms-conditions__text-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding for sections/containers already handled by .page-terms-conditions__container */
    }
}

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

/* Color Contrast Enforcement */
.page-terms-conditions h1,
.page-terms-conditions h2,
.page-terms-conditions h3,
.page-terms-conditions p,
.page-terms-conditions li,
.page-terms-conditions a {
    /* Base text color for contrast on dark background */
    color: #ffffff;
}

.page-terms-conditions__main-title,
.page-terms-conditions__section-title,
.page-terms-conditions__text-block h3 {
    color: var(--primary-color, #FFD700); /* Brand color for headings */
}

.page-terms-conditions__description,
.page-terms-conditions__text-block p,
.page-terms-conditions__text-block li {
    color: #f0f0f0; /* Slightly off-white for body text */
}

.page-terms-conditions__link {
    color: var(--primary-color, #FFD700); /* Brand color for links */
}

.page-terms-conditions__cta-button--primary {
    background: #ffffff; /* White button */
    color: var(--secondary-color, #8B0000); /* Dark red text */
}
.page-terms-conditions__cta-button--primary:hover {
    background: var(--primary-color, #FFD700); /* Gold hover */
    color: #ffffff; /* White text */
}

.page-terms-conditions__cta-button--secondary {
    background: var(--secondary-color, #8B0000); /* Dark red button */
    color: #ffffff; /* White text */
}
.page-terms-conditions__cta-button--secondary:hover {
    background: var(--primary-color, #FFD700); /* Gold hover */
    color: #000000; /* Black text for better contrast on gold */
}