/* Basic Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif; /* Raleway for body */
    background-color: #080808; /* Updated from #000 */
    color: #fff; /* White text based on the design */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Apply Lexend Deca to headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 700; /* Assuming headings should be bold */
}

a {
    color: inherit; /* Remove default blue link color */
    text-decoration: none; /* Remove default underline */
}

ul {
    list-style: none; /* Remove default bullet points */
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes (Optional but helpful) */
.container {
    max-width: 1100px; /* Adjust as needed */
    margin: 0 auto;
    padding: 30px;
}

.text-center {
    text-align: center;
}

/* Add styles for header, sections, footer later */
header {
    padding: 15px 0;
    /* border-bottom: 1px solid #333;  Optional: add a subtle line under the header */
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    height: 40px; /* Adjust height as needed */
    width: auto;
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    padding: 5px 10px;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #aaa; /* Example hover effect */
}

main {
    flex-grow: 1; /* Allow main content to take available space */
}

#hero {
    background-image: url('images/hero-background.jpg');
    background-size: cover; /* Cover the entire section */
    background-position: center center; /* Center the image */
    min-height: 80vh; /* Minimum height, adjust as needed */
    display: flex;
    align-items: center; /* Vertically center content */
    text-align: left; /* Align text to the left as per design */
    padding: 100px 0; /* Add some padding top and bottom */
}

#hero .container {
    /* Container styles already defined, but you could add specifics here */
    max-width: 700px; /* Limit the width of the text content */
    margin-left: 0; /* Align container to the left edge */
    margin-right: auto; /* Prevent stretching or unwanted centering */
    padding-left: 80px; /* 10px more than the default 20px */
}

#hero h1 {
    font-size: 3.5rem; /* Large heading size */
    margin-bottom: 20px;
    line-height: 1.2;
}

#hero p {
    font-size: 1.1rem;
    max-width: 500px; /* Limit paragraph width slightly more */
    color: #ccc; /* Slightly lighter color for paragraph */
}

#apps { /* Renamed from #features */
    padding: 120px 0; /* Increased padding from 80px */
}

#apps h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

#apps h3 {
    font-size: 1.5rem;
    margin-bottom: 60px;
}

.features-grid {
    display: flex;
    justify-content: space-around; /* Distribute items evenly */
    gap: 60px; /* Increased from 30px */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.feature-item {
    flex-basis: calc(33.333% - 40px); /* Aim for 3 columns, adjust spacing */
    min-width: 250px; /* Minimum width before wrapping */
}

.feature-icon {
    height: 50px; /* Adjust icon size */
    width: auto;
    margin: 0 auto 20px auto; /* Center icon and add space below */
    /* Since these are SVGs, we might want to control their color */
    filter: invert(1); /* Invert to make black SVGs white */
}

.feature-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-family: 'Lexend Deca', sans-serif; /* Use Lexend Deca like other headings */
}

.feature-item p {
    color: #ccc;
    font-size: 1rem;
}

footer {
    background-color: #111; /* Slightly lighter black for footer */
    padding-top: 60px;
    font-size: 0.9rem;
    color: #aaa;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    flex-wrap: wrap; /* Allow wrapping */
}

.footer-info,
.footer-contact {
    flex: 1; /* Allow flex items to grow */
    min-width: 300px; /* Minimum width before wrapping */
}

.footer-logo {
    height: 30px; /* Smaller logo in footer */
    width: auto;
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 15px;
}

.footer-newsletter h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Wrap on smaller screens */
    gap: 10px;
}

.footer-bottom ul {
    display: flex;
}

.footer-bottom ul li {
    margin-left: 15px;
}

.footer-bottom ul li a:hover {
    text-decoration: underline;
}

/* Add styles for responsiveness if needed */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom ul {
        margin-top: 10px;
        justify-content: center;
    }

    /* Reduce heading font sizes on smaller screens */
    #hero h1 {
        font-size: 2.5rem; /* Reduce from 3.5rem */
    }
    #apps h2 {
        font-size: 2rem; /* Reduce from 2.5rem */
    }
    .footer-newsletter h2 {
        font-size: 1.8rem; /* Reduce from 2rem */
    }
    .legal-page h1 {
        font-size: 2.2rem; /* Reduce from 2.8rem */
    }
    .legal-page h2 {
         font-size: 1.6rem; /* Reduce from 1.8rem */
    }
}

/* Styles for Legal Pages (Privacy, Terms, Cookies) */
.legal-page {
    padding: 60px 0;
    background-color: #0a0a0a; /* Slightly different background if desired */
}

.legal-page h1 {
    margin-bottom: 30px;
    font-size: 2.8rem;
}

.legal-page h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: #eee;
}

.legal-page p, .legal-page ul {
    margin-bottom: 15px;
    color: #ccc;
    line-height: 1.7;
}

.legal-page ul {
    list-style: disc;
    margin-left: 20px;
}

.legal-page li {
    margin-bottom: 10px;
}

.legal-page a {
    text-decoration: underline;
}

.legal-page a:hover {
    color: #fff;
}

/* Cookie Consent Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #222; /* Dark background for banner */
    color: #ccc;
    padding: 15px 20px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
    display: none; /* Hidden by default, shown by JS */
    align-items: center;
    justify-content: space-between;
    z-index: 1000; /* Ensure it's on top */
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-banner p {
    margin: 0;
    flex-grow: 1; /* Allow text to take available space */
    font-size: 0.9rem;
}

.cookie-banner a {
    color: #8FBC8F; /* Use theme color for link */
    text-decoration: underline;
}

.cookie-banner button {
    padding: 8px 15px;
    background-color: #8FBC8F;
    color: #000;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-family: inherit;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cookie-banner button:hover {
    background-color: #7aa87a;
}

/* Final body adjustments if needed */

/* Footer Contact Form Styles */
.footer-contact h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
}

.footer-contact p {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #555;
    background-color: transparent;
    color: #fff;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box; /* Include padding in width */
}

.form-group textarea {
    resize: vertical; /* Allow vertical resize only */
}

#contact-form button {
    padding: 10px 20px;
    background-color: #8FBC8F; /* Muted green from design */
    color: #000;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-family: inherit;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

#contact-form button:hover {
    background-color: #7aa87a;
} 

/* --- Cookie Preferences Manager Styles --- */

.cookie-preferences-manager {
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #1a1a1a; /* Slightly lighter background for the section */
    border-radius: 8px;
    border: 1px solid #333;
}

.cookie-preferences-manager h2 {
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: #fff;
}

.cookie-preferences-manager > p {
    margin-bottom: 30px;
    color: #ccc;
}

.cookie-category {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
}

.cookie-category:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-header h3 {
    font-size: 1.3rem;
    color: #eee;
    margin: 0; /* Reset default margin */
}

.cookie-category-description {
    color: #aaa;
    font-size: 0.9rem;
}

.always-active {
    font-weight: bold;
    color: #88cc88; /* Greenish color to indicate always active */
    font-size: 0.9rem;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 50px; /* Slightly smaller width */
    height: 24px; /* Slightly smaller height */
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444; /* Darker grey for off state */
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px; /* Smaller handle */
    width: 18px; /* Smaller handle */
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #007bff; /* Blue color for on state */
}

input:focus + .slider {
    box-shadow: 0 0 1px #007bff;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Action Buttons */
.cookie-preference-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
    gap: 15px; /* Space between buttons */
}

/* General Button Styles (Define if not already present) */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Lexend Deca', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Ensure legal page content aligns well */
.legal-page h1 {
    margin-bottom: 10px;
}
.legal-page h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}
.legal-page p, .legal-page ul {
    margin-bottom: 15px;
}
.legal-page ul {
    padding-left: 20px; /* Add some indent */
    list-style: disc;
}
.legal-page ul li {
    margin-bottom: 5px;
}
.legal-page a {
    color: #00aaff; /* Make links stand out slightly */
    text-decoration: underline;
}
.legal-page a:hover {
    color: #007bff;
}