/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #402617;
    background: #542606;
    min-height: 100vh;
    padding: 20px;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
header {
    background: #402617;
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 20px;
    right: 30px;
    text-align: right;
}

.language-selector label {
    display: block;
    font-size: 0.85em;
    margin-bottom: 5px;
    color: white;
    opacity: 0.9;
}

.language-selector select {
    padding: 8px 12px;
    border: 2px solid #cb813f;
    border-radius: 6px;
    background: white;
    color: #402617;
    font-size: 0.95em;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.language-selector select:hover {
    border-color: #eb8328;
}

.language-selector select:focus {
    outline: none;
    border-color: #eb8328;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header h1 a {
    color: #000;
    text-decoration: none;
}

header h1 a:hover {
    opacity: 0.9;
}

.tagline {
    font-size: 1.2em;
    opacity: 0.95;
}

/* Main Content */
main {
    padding: 40px 30px;
}

section {
    margin-bottom: 40px;
}

h2 {
    color: #000;
    font-size: 1.8em;
    margin-bottom: 15px;
    margin-top: 30px;
}

h3 {
    color: #000;
    font-size: 1.4em;
    margin-bottom: 12px;
    margin-top: 25px;
}

p {
    margin-bottom: 15px;
    color: #402617;
}

ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
    color: #402617;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 20px 0;
}

.hero h2 {
    color: #eb8328;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1em;
    color: #402617;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    background: #cb813f;
    padding: 30px;
    border-radius: 8px;
}

.countries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    list-style: none;
    margin-left: 0;
}

.countries li {
    background: #542606;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Download Section */
.download {
    text-align: center;
    padding: 30px;
    background: #cb813f;
    border-radius: 8px;
}

.download h3 {
    color: #402617;
}

/* Legal Links Section */
.legal-links {
    background: #cb813f;
    padding: 30px;
    border-radius: 8px;
}

.legal-links ul {
    list-style: none;
    margin-left: 0;
}

.legal-links li {
    margin-bottom: 15px;
}

.legal-links a {
    color: #402617;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #eb8328;
    text-decoration: underline;
}

/* Legal Content Pages */
.legal-content {
    font-size: 1em;
    color: #402617;
}

.legal-content h2 {
    border-bottom: 2px solid #eb8328;
    padding-bottom: 10px;
    margin-top: 40px;
}

.legal-content h3 {
    margin-top: 25px;
}

.legal-content strong {
    color: #402617;
}

.legal-content a {
    color: #eb8328;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Back Link */
.back-link {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.back-link a {
    color: #eb8328;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
}

.back-link a:hover {
    color: #402617;
}

/* Footer */
footer {
    background: #8a4b19;
    text-align: center;
    padding: 20px;
    color: white;
    font-size: 0.9em;
    border-top: 1px solid #402617;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 30px auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #402617;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #cb813f;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    background: white;
    color: #402617;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #eb8328;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: #eb8328;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #cb813f;
}

.submit-btn:active {
    transform: scale(0.98);
}

.contact-info {
    margin-top: 50px;
    padding: 25px;
    background: #cb813f;
    border-radius: 8px;
}

.contact-info h3 {
    color: #402617;
    margin-top: 0;
}

.contact-info ul {
    list-style: none;
    margin-left: 0;
}

.contact-info li {
    margin-bottom: 12px;
    color: #402617;
}

.contact-info a {
    color: #eb8328;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .language-selector {
        position: static;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .language-selector select {
        width: 100%;
        max-width: 250px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .tagline {
        font-size: 1em;
    }
    
    main {
        padding: 30px 20px;
    }
    
    h2 {
        font-size: 1.5em;
        color: #fff;
    }
    
    h3 {
        font-size: 1.2em;
        color: #fff;
    }
    
    .countries {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    header {
        padding: 30px 20px;
    }
    
    header h1 {
        font-size: 1.8em;
        color: #fff;
    }
    
    main {
        padding: 20px 15px;
    }
    
    .countries {
        grid-template-columns: 1fr;
    }
}
