/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: #1F2937;
    background: #F9FAFB;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #E5E7EB;
    padding: 1rem 0;
}

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

.brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4F46E5;
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
}

.lang-btn-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    cursor: pointer;
    transition: background-color 200ms ease;
}

.lang-btn-dropdown:hover {
    background: #F3F4F6;
}

.flag-icon {
    width: 32px;
    height: 24px;
    object-fit: contain;
}

.chevron {
    width: 1rem;
    height: 1rem;
    color: #6B7280;
    transition: transform 200ms ease;
}

.lang-dropdown-menu {
    position: absolute;
    right: 0;
    margin-top: 0.5rem;
    min-width: 12rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E7EB;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 200ms ease;
    z-index: 50;
}

.lang-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-menu {
    display: flex;
    flex-direction: column;
}

.lang-dropdown-menu form {
    margin: 0;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: none;
    background: white;
    cursor: pointer;
    transition: background-color 200ms ease;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.lang-option:hover {
    background: #F9FAFB;
}

.lang-option.active {
    background: rgba(79, 70, 229, 0.1);
}

.lang-option span {
    flex: 1;
}

.checkmark {
    width: 1rem;
    height: 1rem;
    color: #4F46E5;
    margin-left: auto;
}

/* Main content */
.main {
    flex: 1;
    padding: 3rem 0;
}

/* Hero section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: 1.25rem;
    color: #6B7280;
}

/* Apps grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* App card */
.app-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 200ms ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.app-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.app-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 0.75rem;
}

.app-description {
    color: #6B7280;
    margin-bottom: 1.5rem;
    flex: 1;
}

.app-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 200ms ease;
}

.app-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid #E5E7EB;
    padding: 2rem 0;
    margin-top: auto;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.footer-nav a {
    color: #6B7280;
    text-decoration: none;
}

.footer-nav a:hover {
    color: #4F46E5;
}

.separator {
    color: #E5E7EB;
}

.language-footer {
    font-size: 0.875rem;
}

.language-footer form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    color: #6B7280;
    cursor: pointer;
    padding: 0;
    font-size: 0.875rem;
}

.lang-btn:hover {
    color: #4F46E5;
}

.lang-btn.active {
    color: #4F46E5;
    font-weight: 600;
}

/* Legal content */
.legal-content {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1F2937;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1F2937;
}

.legal-content p {
    margin-bottom: 1rem;
    color: #4B5563;
}

.legal-content ul {
    margin-bottom: 1rem;
    margin-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: #4B5563;
}

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

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

/* Responsive design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .legal-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .app-button {
        width: 100%;
    }
}
