/* General Body and Container Styles */
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.6; /* Improved readability for line-height */
    margin: 0;
    padding: 0;
    background-color: #fff; /* White background as requested */
    color: #000; /* Ensured black text color for contrast */
}

.container {
    width: 90%; /* Fluid width */
    max-width: 960px; /* Maximum width for readability */
    margin: auto; /* Center the container */
    padding: 70px 10% 30px; /* Adjusted padding-top to 70px for less clearance */
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Heading Styles */
h1, h2, h3, h4 {
    color: #000; /* Black for all headings for consistency */
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    margin-top: 0; /* No top margin for the main title itself */
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

h2 {
    font-size: 2em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.5em;
    color: #333; /* Slightly lighter for sub-subheadings */
}

h4 { /* Included for consistency, though this document might not use it extensively */
    font-size: 1.2em;
    color: #555; /* Even lighter for deeper subheadings */
}

/* Paragraph and List Styles */
p {
    margin-bottom: 1em;
}

ul, ol {
    list-style: disc; /* Default disc style for ul */
    margin-bottom: 1em;
    padding-left: 20px;
}

ul ul, ol ol { /* For nested lists, re-indent */
    margin-left: 20px;
}

/* Specific list styles (if any from original HTML, adjust as needed) */
ul[style*="list-style-type:circle"] {
    list-style-type: circle;
}

/* Link Styles */
a {
    color: #0033ff; /* Original blue link color from provided HTML */
    text-decoration: underline; /* Ensured underline for visibility */
}

a:hover {
    text-decoration: none; /* Remove underline on hover for interaction feedback */
}

/* Table Styles (retained from Privacy Policy CSS, just in case future ToS has tables) */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    border: 1px solid black; /* Example border, adjust as needed */
}

th, td {
    border: 1px solid black; /* Example cell borders, adjust as needed */
    padding: 8px 7px;
    text-align: left;
    vertical-align: top;
    background-color: #fff; /* Ensure white background for cells */
}

th {
    font-weight: bold;
    background-color: #f2f2f2; /* Light grey background for header, for contrast */
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    background-color: #f4f4f4; /* A light grey for distinction from main content */
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    flex-direction: column; /* Stack logo and text vertically */
    align-items: center;    /* Center items horizontally */
    gap: 10px;              /* Space between logo and text */
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    max-width: 150px; /* Max width to prevent oversized logo */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Ensures it acts as a block element for margin:auto */
    margin: 0 auto; /* Center logo horizontally */
}

footer p {
    margin: 0; /* Remove default paragraph margin */
    color: #555; /* Slightly darker text for copyright */
    font-size: 12px; /* Slightly smaller for copyright */
}

/* Language Selector Specific Styles */
.language-selector-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 5px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: none; /* Hidden by default, shown by JS */
}

/* Show language selector when body has 'show-lang-selector' class */
body.show-lang-selector .language-selector-container {
    display: block; /* Or flex, depending on desired layout */
}

.language-selector-container select {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

/* Screen reader only class for visually hidden labels */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 60px 5% 30px; /* Adjust padding-top for smaller screens */
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.3em;
    }

    /* Adjust language selector position for smaller screens */
    .language-selector-container {
        top: 10px;
        right: 10px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap; /* Prevent wrapping inside cells */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 50px 3% 20px; /* Further adjust padding on very small screens */
    }

    h1 {
        font-size: 1.8em;
    }
}