/* style/terms-conditions.css */
.page-terms-conditions {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #FFFFFF; /* Ensure page content background is white */
}

.page-terms-conditions__hero-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    color: #FFFFFF;
    background-color: #000000; /* Dark background as a fallback/base */
}

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

.page-terms-conditions__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-terms-conditions__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 0;
}

.page-terms-conditions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
}

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

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

.page-terms-conditions__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-terms-conditions__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.page-terms-conditions__button--register {
    background-color: #FCBC45; /* Login button color for register */
    color: #000000; /* Dark text on bright button */
    border: 2px solid #FCBC45;
}

.page-terms-conditions__button--register:hover {
    background-color: #e0a53a;
    transform: translateY(-2px);
}

.page-terms-conditions__button--login {
    background-color: transparent;
    color: #FCBC45; /* Login button color for login */
    border: 2px solid #FCBC45;
}

.page-terms-conditions__button--login:hover {
    background-color: #FCBC45;
    color: #000000;
    transform: translateY(-2px);
}

.page-terms-conditions__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #FFFFFF;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.page-terms-conditions__table-of-contents {
    background-color: #F8F8F8;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 5px solid #FCBC45;
}

.page-terms-conditions__section-title {
    font-size: 2em;
    color: #000000;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.page-terms-conditions__toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-terms-conditions__toc-list li {
    margin-bottom: 10px;
}

.page-terms-conditions__toc-link {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.page-terms-conditions__toc-link:hover {
    color: #FCBC45;
    text-decoration: underline;
}

.page-terms-conditions__article {
    padding-top: 20px;
}

.page-terms-conditions__section-heading {
    font-size: 2.2em;
    color: #000000;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.page-terms-conditions__paragraph {
    font-size: 1.05em;
    color: #333333;
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-terms-conditions__image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
    display: block;
    margin: 0 auto;
}

.page-terms-conditions__inline-link {
    color: #FCBC45;
    text-decoration: underline;
    font-weight: bold;
}

.page-terms-conditions__inline-link:hover {
    color: #e0a53a;
}

.page-terms-conditions__cta-block {
    background-color: #000000;
    color: #FFFFFF;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-terms-conditions__cta-title {
    font-size: 2.5em;
    color: #FCBC45;
    margin-bottom: 15px;
}

.page-terms-conditions__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #F0F0F0;
}

.page-terms-conditions__button--cta {
    background-color: #FCBC45;
    color: #000000;
    border: none;
    padding: 18px 40px;
    font-size: 1.2em;
    border-radius: 50px;
}

.page-terms-conditions__button--cta:hover {
    background-color: #e0a53a;
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-terms-conditions__hero-title {
        font-size: 2.8em;
    }
    .page-terms-conditions__hero-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding: 60px 15px;
    }
    .page-terms-conditions__hero-title {
        font-size: 2.2em;
    }
    .page-terms-conditions__hero-description {
        font-size: 1em;
    }
    .page-terms-conditions__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-terms-conditions__button {
        width: 100%;
        max-width: 300px;
    }
    .page-terms-conditions__content-area {
        padding: 20px 15px;
    }
    .page-terms-conditions__section-title,
    .page-terms-conditions__section-heading {
        font-size: 1.8em;
    }
    .page-terms-conditions__cta-title {
        font-size: 2em;
    }
    .page-terms-conditions__image-wrapper img {
        max-width: 100%;
        height: auto;
    }
    .page-terms-conditions img {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions__hero-title {
        font-size: 1.8em;
    }
    .page-terms-conditions__hero-description {
        font-size: 0.9em;
    }
    .page-terms-conditions__button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-terms-conditions__section-title,
    .page-terms-conditions__section-heading {
        font-size: 1.5em;
    }
    .page-terms-conditions__paragraph {
        font-size: 0.95em;
    }
    .page-terms-conditions__cta-title {
        font-size: 1.8em;
    }
    .page-terms-conditions__button--cta {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}