/* Basic Reset & Defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding-top: 60px; /* Account for fixed header */
}

/* Container */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Header */
header.main-header {
    background-color: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    position: fixed; /* Keep header visible */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

header.main-header .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #5a2d82; /* Match app theme slightly */
    text-decoration: none;
}

header.main-header nav a {
    margin-left: 15px;
    text-decoration: none;
    color: #495057;
}

header.main-header nav a:hover {
    color: #5a2d82;
}


/* Typography */
h1, h2, h3 {
    margin-bottom: 0.8em;
    color: #212529;
}

h1 {
    font-size: 2.5em;
    line-height: 1.2;
}

h2 {
    font-size: 1.8em;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.3em;
    margin-top: 1.5em;
}

h2:first-child {
    margin-top: 0;
}

p {
    margin-bottom: 1em;
    color: #495057;
}

a {
    color: #5a2d82;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

strong, b {
    font-weight: bold;
}

ul {
    margin-left: 20px;
    margin-bottom: 1em;
}

/* Hero Section (Landing Page) */
.hero {
    text-align: center;
    padding: 60px 0;
    background-color: #e9ecef; /* Light background */
}

.hero h1 {
    color: #343a40;
}

.hero p {
    font-size: 1.1em;
    color: #6c757d;
    margin-bottom: 30px;
}

.app-badges img {
    height: 50px; /* Adjust size as needed */
    margin: 0 10px;
}

/* Features Section (Landing Page) */
.features {
    padding: 40px 0;
    text-align: center;
}

.features h2 {
    border-bottom: none; /* Remove border for this heading */
    margin-bottom: 40px;
}

.feature-grid {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 30px; /* Space between items */
    justify-content: center;
}

.feature-item {
    flex-basis: calc(33.333% - 20px); /* Aim for 3 items per row, adjust calc based on gap */
    min-width: 280px; /* Minimum width before wrapping */
    text-align: left;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.feature-item img,
.feature-item .video-placeholder {
    width: 100%;
    height: auto;
    background-color: #adb5bd;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-style: italic;
}

.feature-item h3 {
    font-size: 1.2em;
    margin-bottom: 0.5em;
}

/* Disclaimer Section (Landing Page) */
.disclaimer {
    background-color: #fff3cd; /* Light yellow warning background */
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 20px;
    margin: 40px 0;
    border-radius: 8px;
}

.disclaimer h2 {
    color: #856404;
    border-bottom: none;
    margin-top: 0;
}

/* Footer */
footer.main-footer {
    background-color: #e9ecef;
    color: #6c757d;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9em;
}

footer.main-footer a {
    color: #495057;
    margin: 0 10px;
}

/* Policy Pages Specific Styles */
.policy-content h2 {
    border-bottom: none;
    margin-top: 1.5em;
    font-size: 1.4em;
}

.policy-content h3 {
    font-size: 1.1em;
    margin-top: 1em;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    .feature-item {
        flex-basis: calc(50% - 15px); /* 2 items per row */
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 50px; /* Adjust for potentially smaller header */
    }

    header.main-header .container {
        flex-direction: column;
        gap: 5px;
    }

    header.main-header nav {
        margin-top: 5px;
    }

    .hero {
        padding: 40px 0;
    }

    .app-badges img {
        height: 40px;
    }

    .feature-item {
        flex-basis: 100%; /* 1 item per row */
    }
}

/* Style for the language switcher */
.lang-switcher {
    font-size: 0.9em;
    margin-left: 15px; /* Adjust spacing */
}

/* ... (lang-switcher button styles remain the same) ... */

/* Policy Pages Specific Styles */
.policy-content {
    margin-top: 20px; /* Add some space below the H1 */
}

.policy-content h2 {
    /* Styles from previous version are fine */
    border-bottom: none;
    margin-top: 1.8em;
    font-size: 1.4em;
    padding-bottom: 0.2em;
}

.policy-content h3 {
    font-size: 1.1em;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
}

.policy-content ul {
    margin-left: 25px;
    margin-bottom: 1em;
}

.policy-content p {
    margin-bottom: 1em;
}

.policy-content strong {
    font-weight: bold;
}

/* Loading indicator style */
#policy-content.loading::after {
    content: 'Loading...'; /* Or use a spinner */
    display: block;
    text-align: center;
    padding: 40px;
    font-style: italic;
    color: #6c757d;
}
