/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Adjust main content for fixed header */
.main-content {
    margin-top: 100px; /* Adjust based on header height */
}

.terms-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.terms-header {
    text-align: center;
    margin-bottom: 2rem;
}

.terms-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.terms-content {
    color: #555;
    line-height: 1.6;
}

.terms-section {
    margin-bottom: 2rem;
}

.terms-section h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.terms-section h3 {
    color: #444;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.terms-section p {
    margin-bottom: 1rem;
}

.terms-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.terms-section li {
    margin-bottom: 0.5rem;
}

.company-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.last-updated {
    font-style: italic;
    color: #666;
    text-align: center;
    margin-top: 2rem;
}

/* Button styles */
.btn {
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 40px !important;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-outline {
    border: 1px solid #000;
    color: #000;
    background: transparent;
}

.btn-outline:hover {
    background: #000;
    color: #fff;
}

.btn-primary {
    background: #000;
    color: #fff;
    border: 1px solid #000;
}

.btn-primary:hover {
    background: #fff;
    color: #000;
    border-color: #000;
}

/* Update Language Switcher Styles */
.language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0 15px;
}

.language-switcher .dropdown-toggle {
    cursor: pointer;
    padding: 8px 20px;
    border-radius: 40px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
    min-width: 100px;
    justify-content: center;
}

.language-switcher .dropdown-toggle:hover {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.02);
}

.language-switcher .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 8px 0;
    margin-top: 5px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.language-switcher.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.language-switcher .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    font-size: 14px;
}

.language-switcher .dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.language-switcher .flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}

/* Add a subtle arrow to the dropdown */
.language-switcher .dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border: 1px solid #333;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
    margin-left: 5px;
    transition: transform 0.3s ease;
    position: relative;
    top: -2px;
}

.language-switcher.show .dropdown-toggle::after {
    transform: rotate(-135deg);
    top: 1px;
}

/* Add subtle animation for dropdown items */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-switcher .dropdown-item {
    animation: fadeIn 0.3s ease forwards;
    animation-delay: calc(var(--item-index) * 0.05s);
    opacity: 0;
}

/* Add hover effect for the entire switcher */
.language-switcher:hover .dropdown-toggle {
    border-color: rgba(0, 0, 0, 0.2);
}

/* Update header container to accommodate language switcher */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}