/* style/terms-conditions.css */

/* --- General Page Styling --- */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color, #333333); /* Default text color, adjusted by contrast logic */
    background-color: var(--secondary-color); /* Body background from shared.css */
}

.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;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-terms-conditions__dark-bg {
    background-color: #000000; /* Auxiliary color, dark background */
    color: #ffffff; /* Light text for dark background */
}

.page-terms-conditions__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold color for main title */
}

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

.page-terms-conditions__btn-primary {
    display: inline-block;
    background-color: #FFD700; /* Primary brand color */
    color: #000000; /* Black text for gold button */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #FFD700;
}

.page-terms-conditions__btn-primary:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
    color: #000000;
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin-top: 40px;
    border-radius: 10px;
    object-fit: cover;
}

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

.page-terms-conditions__light-bg {
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-terms-conditions__section-title {
    font-size: 2.2em;
    color: #000000; /* Black for section titles */
    margin-bottom: 30px;
    text-align: center;
}

.page-terms-conditions__sub-title {
    font-size: 1.6em;
    color: #000000; /* Black for sub titles */
    margin-top: 40px;
    margin-bottom: 15px;
}

.page-terms-conditions__text-block {
    margin-bottom: 20px;
    font-size: 1em;
    line-height: 1.7;
}

.page-terms-conditions__text-block a {
    color: #FFD700; /* Gold links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-terms-conditions__text-block a:hover {
    color: #e6c200; /* Darker gold on hover */
}

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

.page-terms-conditions__ordered-list {
    list-style: decimal;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-terms-conditions__list-item {
    margin-bottom: 10px;
    line-height: 1.6;
}

.page-terms-conditions__image-wrapper {
    text-align: center;
    margin: 40px 0;
}

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

/* --- FAQ Section --- */
.page-terms-conditions__faq-container {
    margin-top: 40px;
    border-top: 1px solid #eee;
}

.page-terms-conditions__faq-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
    background-color: #f9f9f9;
}

.page-terms-conditions__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #000000;
}

.page-terms-conditions__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFD700;
    transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
    transform: rotate(45deg);
    color: #000000;
}

.page-terms-conditions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #333333;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-terms-conditions__main-title {
        font-size: 2.5em;
    }
    .page-terms-conditions__section-title {
        font-size: 1.8em;
    }
    .page-terms-conditions__sub-title {
        font-size: 1.4em;
    }
}