@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --primary-color-start: #0061ff; /* Blue */
    --primary-color-end: #6034c3; /* Purple */
    --secondary-color-start: #1d976c; /* Green */
    --secondary-color-end: #93f9b9; /* Light Green */
    --dark-bg: #0a2540;
    --light-text-on-dark: #a0aec0;
    --light-link-on-dark: #cbd5e0;
    --white: #ffffff;
    --light-gray-bg: #f8f9fa;
    --text-dark: #333;
    --heading-dark: #0a2540;
    --text-muted: #555;
    --border-light: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-gray-bg);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.container {
    max-width: 960px; /* Bootstrap's .container default for 'lg' breakpoint */
}

/* Header */
.site-header {
    background-color: #005bdc; /* Example blue, adjust to your brand */
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    text-align: center; /* Center logo within header */
}

.site-header .container {
    /* text-align: left;  If logo should be left and nav right, more structure needed */
}

.site-header .logo {
    max-height: 50px;
    width: auto;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    padding: 40px 15px; /* Vertical padding, horizontal padding for smaller screens */
    text-align: center; /* Default text-align for most pages */
}

.main-content h1, .main-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--heading-dark);
    margin-bottom: 20px;
}

.main-content h1.page-title { /* For main page title like on fe/index.php */
    font-size: 2.0rem;
    margin-bottom: 10px;
}

.main-content p.sub-headline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.main-content h2.question-title { /* For "What is your age?" */
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 30px;
}

.main-content h1.thank-you-title { /* For "Thank You" on s2 */
    font-size: 2.2rem;
}

.main-content p.instruction-text { /* For call instruction on s2 */
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}


/* Buttons */
.btn-custom {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 30px;
    border-radius: 50px;
    color: var(--white);
    background-image: linear-gradient(to right, var(--primary-color-start), var(--primary-color-end));
    border: none;
    text-decoration: none;
    display: inline-block;
    margin: 10px 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-light);
    cursor: pointer;
}

.btn-custom:hover, .btn-custom:focus {
    color: var(--white);
    background-image: linear-gradient(to right, color-mix(in srgb, var(--primary-color-start) 90%, black), color-mix(in srgb, var(--primary-color-end) 90%, black));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.button-group {
    margin-top: 20px;
    margin-bottom: 30px;
}

.button-group .btn-custom {
    display: block;
    width: 100%;
    max-width: 350px;
    margin: 15px auto;
}

/* Call Button Specific */
.btn-call {
    background-image: linear-gradient(to right, var(--secondary-color-start), var(--secondary-color-end));
    font-size: 1.2rem;
    font-weight: 700;
    padding: 18px 35px;
}

.btn-call:hover, .btn-call:focus {
    background-image: linear-gradient(to right, color-mix(in srgb, var(--secondary-color-start) 90%, black), color-mix(in srgb, var(--secondary-color-end) 90%, black));
}

/* Footer */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--light-text-on-dark);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    width: 100%; /* Ensure footer spans full width */
}

.site-footer a {
    color: var(--light-link-on-dark);
    text-decoration: none;
    margin: 0 5px;
}

.site-footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-links {
    margin-bottom: 10px;
}

/* Adsense Container */
.adsense-container {
    display: flex; /* Added for flex properties */
    justify-content: center;
    align-items: center;
    /* margin: 20px 0; Removed as it might conflict with Bootstrap grid or other containers */
}

/* Specific for fe/no/index.php (Exit Offer Page) */
.exit-offer-page .site-header {
    background-color: var(--dark-bg);
    border-bottom: 1px solid color-mix(in srgb, var(--dark-bg) 80%, white); /* #1A3A5A */
}

.exit-offer-page .main-content {
    /* Content background remains light from body or .container */
}

.exit-offer-page .main-content h1.display-5 { /* From template */
    color: var(--heading-dark);
}

.exit-offer-page .main-content p.lead { /* From template */
    color: var(--text-muted);
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.offer-image-link img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-image-link img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px var(--shadow-medium);
}

/* Animations */
.content-block { /* This class is for specific blocks, not used in privacy.php directly */
    opacity: 0; /* Start hidden for JS animation */
}

.fade-in {
    animation: fadeInAnimation 0.6s ease-in-out forwards;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================== */
/* == Privacy Policy & Terms Page Specific Styles == */
/* =============================================== */

/* Apply to the container within main-content on specific pages */
.page-privacy-policy .main-content .container,
.page-terms .main-content .container { /* You can create a terms.php and add .page-terms to its body */
    text-align: left; /* Override general center alignment for content pages */
    padding-top: 30px; /* Adjust top padding for content pages */
    padding-bottom: 50px; /* Adjust bottom padding for content pages */
}

.page-privacy-policy .main-content h1,
.page-terms .main-content h1 {
    font-size: 2.2rem;
    color: var(--heading-dark);
    margin-bottom: 25px;
    margin-top: 0; /* Remove default top margin from general h1 */
    text-align: left;
    font-family: 'Montserrat', sans-serif; /* Ensure consistency or specify */
}

.page-privacy-policy .main-content h2,
.page-terms .main-content h2 {
    font-size: 1.7rem; /* Slightly adjusted for better hierarchy */
    color: var(--heading-dark);
    margin-top: 35px;
    margin-bottom: 15px;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
}

.page-privacy-policy .main-content h3,
.page-terms .main-content h3 {
    font-size: 1.4rem; /* Slightly adjusted */
    color: var(--heading-dark);
    margin-top: 30px;
    margin-bottom: 10px;
    text-align: left;
    font-family: 'Open Sans', sans-serif; /* Use Open Sans for sub-subheadings to blend with text */
    font-weight: 700; /* Bold Open Sans */
}

.page-privacy-policy .main-content p,
.page-terms .main-content p {
    font-size: 1rem; /* Standard paragraph size */
    line-height: 1.7; /* Improved readability */
    color: var(--text-dark);
    margin-bottom: 16px; /* Consistent paragraph spacing */
    text-align: left;
}

.page-privacy-policy .main-content ul,
.page-terms .main-content ul {
    margin-left: 0; /* Reset margin for Bootstrap compatibility / custom control */
    padding-left: 25px; /* Indentation for bullet points */
    margin-bottom: 16px;
    text-align: left;
}

.page-privacy-policy .main-content ul li,
.page-terms .main-content ul li {
    margin-bottom: 10px; /* Space between list items */
    line-height: 1.7;
}

.page-privacy-policy .main-content ul ul, /* Nested lists */
.page-terms .main-content ul ul {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-left: 20px; /* Further indent nested lists */
}

.page-privacy-policy .main-content strong,
.page-terms .main-content strong {
    font-weight: 600; /* Open Sans semi-bold or bold */
    color: var(--heading-dark); /* Make strong text stand out a bit, using heading color */
}

/* Specific to the last "Privacy | Terms | Contact" line if it's the direct last child paragraph */
.page-privacy-policy .main-content .container > p:last-child,
.page-terms .main-content .container > p:last-child {
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center; /* Center this specific line */
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-content h1.page-title {
        font-size: 1.8rem;
    }

    .main-content h1.thank-you-title {
        font-size: 2rem;
    }

    .main-content p.sub-headline, .main-content p.instruction-text {
        font-size: 1rem;
    }

    .main-content h2.question-title {
        font-size: 1.6rem;
    }

    .btn-custom {
        font-size: 1rem;
        padding: 12px 25px;
    }

    .btn-call {
        font-size: 1.1rem;
        padding: 15px 30px;
    }

    .offer-grid {
        grid-template-columns: 1fr; /* Stack offers on small screens */
    }

    /* Privacy/Terms page responsive adjustments */
    .page-privacy-policy .main-content h1,
    .page-terms .main-content h1 {
        font-size: 1.9rem;
    }

    .page-privacy-policy .main-content h2,
    .page-terms .main-content h2 {
        font-size: 1.5rem;
    }

    .page-privacy-policy .main-content h3,
    .page-terms .main-content h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .site-header .logo {
        max-height: 40px;
    }

    .button-group .btn-custom {
        width: 90%;
        font-size: 0.95rem;
        padding: 12px 20px;
    }

    .btn-call {
        font-size: 1rem;
        padding: 14px 25px;
    }

    .main-content {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    /* Privacy/Terms page responsive adjustments for very small screens */
    .page-privacy-policy .main-content .container,
    .page-terms .main-content .container {
        padding-top: 20px;
        padding-bottom: 30px;
    }

    .page-privacy-policy .main-content h1,
    .page-terms .main-content h1 {
        font-size: 1.7rem;
    }

    .page-privacy-policy .main-content h2,
    .page-terms .main-content h2 {
        font-size: 1.35rem;
    }

    .page-privacy-policy .main-content h3,
    .page-terms .main-content h3 {
        font-size: 1.15rem;
    }

    .page-privacy-policy .main-content p,
    .page-terms .main-content p {
        font-size: 0.95rem;
    }
}