:root {
    --page-primary-color: #113B7A;
    --page-secondary-color: #1D5FD1;
    --page-button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --page-card-bg: #10233F;
    --page-text-main: #F3F8FF;
    --page-text-secondary: #AFC4E8;
    --page-border-color: #244D84;
    --page-glow-color: #4FA8FF;
    --page-gold-color: #F2C14E;
    --page-divider-color: #1B3357;
    --page-deep-navy: #08162B; /* Body background color from shared.css */
}

.page-terms-conditions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-text-main); /* Default text color for dark body background */
    background-color: var(--page-deep-navy); /* Ensure consistency with body background */
}

/* --- Hero Section --- */
.page-terms-conditions__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    color: var(--page-text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-terms-conditions__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height to prevent overly tall hero on desktop */
    overflow: hidden;
    position: relative;
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover for desktop to fill space */
    display: block;
}

.page-terms-conditions__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure content is above image if any overlap */
    position: relative;
}

.page-terms-conditions__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--page-gold-color); /* Highlight with gold color */
}

.page-terms-conditions__hero-description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: var(--page-text-secondary);
}

.page-terms-conditions__hero-cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--page-button-gradient);
    color: var(--page-text-main);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-terms-conditions__hero-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- General Content Sections --- */
.page-terms-conditions__content-section {
    padding: 60px 0;
}

.page-terms-conditions__section-spacing {
    margin-bottom: 0; /* No extra margin, padding handles spacing */
}

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

.page-terms-conditions__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--page-gold-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-terms-conditions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--page-secondary-color);
    border-radius: 2px;
}

.page-terms-conditions__section-title--light {
    color: var(--page-text-main); /* White text on dark background sections */
}
.page-terms-conditions__section-title--light::after {
    background: var(--page-gold-color);
}


.page-terms-conditions__text-block {
    font-size: 1.05rem;
    color: var(--page-text-main); /* Default to light text */
    margin-bottom: 30px;
    text-align: justify;
}

.page-terms-conditions__text-block p {
    margin-bottom: 15px;
}

.page-terms-conditions__text-block--light {
    color: var(--page-text-secondary); /* Lighter secondary text for dark sections */
}

.page-terms-conditions__card {
    background: var(--page-card-bg); /* Dark card background */
    border: 1px solid var(--page-border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: var(--page-text-main); /* Light text on dark card */
}

.page-terms-conditions__card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--page-gold-color);
    margin-bottom: 20px;
    text-align: center;
}

.page-terms-conditions__card-title--light {
    color: var(--page-text-main);
}

.page-terms-conditions__card .page-terms-conditions__text-block {
    color: var(--page-text-secondary);
    text-align: justify;
    margin-bottom: 0; /* No bottom margin for text block inside card */
}

/* Dark Background Sections */
.page-terms-conditions__dark-bg {
    background-color: var(--page-primary-color); /* Use primary color for dark sections */
    color: var(--page-text-main);
}

/* Image styles */
.page-terms-conditions__image-full {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Contact Buttons */
.page-terms-conditions__contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Ensure buttons don't exceed container */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    text-align: center;
}

.page-terms-conditions__btn-primary {
    background: var(--page-button-gradient);
    color: var(--page-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__btn-secondary {
    background: var(--page-card-bg); /* Use dark background for secondary button */
    color: var(--page-gold-color);
    border: 2px solid var(--page-gold-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

/* --- FAQ Section --- */
.page-terms-conditions__faq-section {
    padding: 60px 0;
    background-color: var(--page-deep-navy); /* Ensure consistency with body background */
}

.page-terms-conditions__faq-list {
    margin-top: 40px;
}

details.page-terms-conditions__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--page-border-color);
    overflow: hidden;
    background: var(--page-card-bg); /* Dark background for FAQ items */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--page-text-main);
    font-size: 1.1rem;
    font-weight: 600;
}
details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question::-webkit-details-marker {
    display: none;
}
details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question:hover {
    background: var(--page-primary-color); /* Slightly lighter dark background on hover */
}
.page-terms-conditions__faq-qtext {
    flex: 1;
    line-height: 1.5;
    text-align: left;
}
.page-terms-conditions__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--page-gold-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
    line-height: 1;
}
details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
    padding: 0 25px 25px;
    background: var(--page-deep-navy); /* Even darker background for answer area */
    border-radius: 0 0 10px 10px;
    color: var(--page-text-secondary);
}
details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer p {
    margin-bottom: 10px;
    font-size: 1rem;
}


/* --- Responsive Styles (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .page-terms-conditions__hero-title {
        font-size: clamp(2.2rem, 4.5vw, 3rem);
    }
    .page-terms-conditions__hero-description {
        font-size: 1.05rem;
    }
    .page-terms-conditions__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    .page-terms-conditions__text-block {
        font-size: 1rem;
    }
    .page-terms-conditions__card-title {
        font-size: 1.4rem;
    }
}

/* --- Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
    /* General */
    .page-terms-conditions {
        font-size: 15px;
        line-height: 1.5;
    }
    .page-terms-conditions__content-section {
        padding: 40px 0;
    }
    .page-terms-conditions__container {
        padding: 0 15px !important; /* Force padding for content containers */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    /* HERO Section */
    .page-terms-conditions__hero-section {
        padding-top: 10px;
        text-align: center;
    }
    .page-terms-conditions__hero-image-wrapper {
        max-height: 300px;
    }
}