/* =================================================================== */
/* --- 1. Base and Typography Styles --- */
/* =================================================================== */
body {
    font-family: "Poppins", Arial, sans-serif;
    padding: 0;
    max-width: 100%;
    margin: auto;
    background: #1a1a1a; /* Dark background */
    color: #e0e0e0; /* Light primary text */
    line-height: 1.6;
}

h1, h2 {
    color: #58d68d; /* Green accent for headings */
}

h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.25rem;
    margin-top: 30px;
    margin-bottom: 10px;
}

a {
    color: #58d68d; /* Green accent for links */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #7fe4a9; /* Slightly lighter green on hover */
}

/* =================================================================== */
/* --- 2. Page Layout Styles (Header & Content Wrapper) --- */
/* =================================================================== */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 1rem 2rem;
    background-color: #2c2c2c; /* Slightly lighter dark shade for contrast */
    border-bottom: 1px solid #444; /* Subtle border for dark mode */
}

.header-logo {
    height: 40px;
    flex-shrink: 0;
}

.search-container-header {
    flex-grow: 1;
    max-width: 600px;
}

.privacy-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 30px;
}

/* =================================================================== */
/* --- 3. Base Google Custom Search Styles (from landing-search.css) --- */
/* =================================================================== */

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper .gsc-control-searchbox-only {
    width: 100% !important;
}

.search-input-wrapper .gsc-search-box {
    margin-bottom: 0 !important;
    padding: 0 !important;
    table-layout: fixed !important;
}

.search-input-wrapper .gsc-input-box {
    border: 1px solid #00D18B !important;
    border-radius: 50px !important;
    padding: 0 !important;
    height: auto !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    position: relative !important;
    transition: border-radius 0.15s ease-out, box-shadow 0.15s ease-out;
}

.search-input-wrapper .gsc-input-box.gsc-input-box-focus {
    box-shadow: 0 4px 15px rgba(0, 209, 139, 0.2) !important;
    border-radius: 28px 28px 0 0 !important;
}

.search-input-wrapper .gsc-input-box:hover:not(.gsc-input-box-focus) {
    box-shadow: 0 4px 15px rgba(0, 209, 139, 0.2) !important;
}

.search-input-wrapper td.gsc-input {
    padding-right: 0 !important;
    width: 100% !important;
}

.search-input-wrapper input.gsc-input {
    font-family: 'Poppins', sans-serif !important;
    font-size: 18px !important;
    height: 50px !important;
    padding: 0 60px 0 26px !important;
    border: none !important;
}

.search-input-wrapper .gsc-search-button {
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    transform: translateY(-50%) !important;
    width: auto !important;
}

.search-input-wrapper button.gsc-search-button-v2 {
    padding: 0 15px !important;
    margin: 0 !important;
    background-color: transparent !important;
    border: none !important;
    display: flex;
    align-items: center;
}

.search-input-wrapper button.gsc-search-button-v2 svg {
    fill: #00D18B !important;
    width: 24px !important;
    height: 24px !important;
}

.search-input-wrapper .gsib_b {
    display: none !important;
}

.gsc-completion-container {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
    position: absolute !important;
    top: 100% !important;
    left: 0;
    right: 0;
    margin-top: -1px !important;
    border-radius: 0 0 28px 28px !important;
    border: 1px solid #EAEAEA !important;
    overflow: hidden !important;
}

.gsc-completion-suggestion {
    font-family: 'Poppins', sans-serif !important;
    font-size: 18px !important;
    padding: 0 !important;
    border: none !important;
}

.gsc-completion-suggestion .gs-title {
    padding: 14px 30px !important;
    display: block;
}

/* =================================================================== */
/* --- 4. Dark Mode OVERRIDES for Google Custom Search --- */
/* =================================================================== */

/* Style the main search box container for dark mode */
.search-input-wrapper .gsc-input-box {
    background: #333 !important; /* Dark background for the search box */
    border-color: #58d68d !important; /* Use your theme's green for the border */
}

/* Style the text input field for dark mode */
.search-input-wrapper input.gsc-input {
    background: none !important;
    color: #e0e0e0 !important; /* Light text color */
}

.search-input-wrapper input.gsc-input::placeholder {
    color: #888 !important; /* Lighter placeholder text */
}

/* Style the search button SVG to match */
.search-input-wrapper button.gsc-search-button-v2 svg {
    fill: #58d68d !important; /* Use your theme's green for the icon */
}

/* Style the main autocomplete container for dark mode */
.gsc-completion-container {
    background: #333 !important; /* Dark background for the dropdown */
    border: 1px solid #555 !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Style individual suggestion items for dark mode */
.gsc-completion-suggestion .gs-title {
    color: #ccc !important; /* Light grey text for suggestions */
}

.gsc-completion-suggestion .gs-title b {
    color: #fff !important; /* White text for bolded/matching part */
}

/* Style the hover/selected state for dark mode */
.gsc-completion-suggestion:hover, .gsc-completion-selected {
    background-color: #444 !important; /* Slightly lighter dark color on hover */
}


/* =================================================================== */
/* --- 5. Responsive Media Queries --- */
/* =================================================================== */

@media (max-width: 600px) {
    .privacy-content {
        padding: 0 20px;
        margin: 1.5rem auto;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    .page-header {
        flex-direction: column;
        padding: 1rem;
    }

    .search-container-header {
        width: 100%;
    }

    /* Adjust search input font size on mobile */
    .search-input-wrapper input.gsc-input {
        font-size: 16px !important;
        height: 48px !important;
    }
}
