.footer {
    background: #fefefe;
    color: #1a1a1c;
    padding: clamp(60px, 10vw, 100px) 0 clamp(40px, 6vw, 60px);
    margin-top: 0;
    position: relative;
    border-top: 1px solid rgba(0,0,0,0.04);
}

.footer::before {
    content: '';
    position: absolute;
    top: clamp(30px, 5vw, 40px);
    left: 50%;
    transform: translateX(-50%);
    width: clamp(300px, 60vw, 600px);
    height: 2px;
    background: radial-gradient(ellipse at center, 
        rgba(26, 26, 28, 0.12) 0%, 
        rgba(26, 26, 28, 0.06) 60%, 
        transparent 100%);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: clamp(50px, 6vw, 80px);
    margin-bottom: clamp(40px, 6vw, 60px);
    align-items: start;
    justify-items: start;
    justify-content: center;
    padding: 0 clamp(20px, 5vw, 80px);
}

.footer-section {
    display: flex;
    flex-direction: column;
    min-height: fit-content;
    align-items: flex-start;
}

.footer-section h4 {
    color: #1a1a1c;
    margin-top: 0;
    margin-bottom: 24px;
    font-weight: 600;
    font-size: clamp(0.85rem, 2vw, 1rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.8;
    line-height: 1.3;
}

.footer-section h4::after {
    display: none;
}

.footer-section p, 
.footer-section a:not(.whatsapp-link) {
    color: #3a3a3c;
    text-decoration: none;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 14px;
    display: block;
    transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    font-size: clamp(14px, 2.2vw, 16px);
    font-weight: 400;
}

.footer-section p:last-child,
.footer-section a:last-child {
    margin-bottom: 0;
}

.footer-section a:not(.whatsapp-link):hover {
    color: #007AFF;
    transform: translateX(2px);
}

.footer-section .email-address,
.footer-section .phone-number {
    color: #3a3a3c;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 14px;
    display: block;
    font-size: clamp(14px, 2.2vw, 16px);
    font-weight: 400;
    transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    text-decoration: none;
    cursor: text !important;
}

.footer-section .email-address:hover,
.footer-section .phone-number:hover {
    color: #007AFF;
}

.footer-section .phone-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-section .phone-container .phone-number {
    margin-bottom: 0;
}

.footer-section .whatsapp-link {
    color: #128C7E;
    font-size: clamp(13px, 2vw, 14px);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.footer-section .whatsapp-link:hover {
    color: #0F7A6E;
    transform: translateX(2px);
}

.footer .selectable-text,
.email-address,
.phone-number {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    -webkit-touch-callout: default !important;
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.04);
    padding-top: clamp(24px, 4vw, 32px);
    padding-left: clamp(20px, 5vw, 80px);
    padding-right: clamp(20px, 5vw, 80px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: #8A8A8E;
    font-size: clamp(12px, 2vw, 13px);
    font-weight: 300;
    letter-spacing: 0.01em;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    flex-direction: column;
}

.footer-copyright {
    flex: 1;
    min-width: 200px;
    text-align: center;
    order: 1;
}

.footer-policies {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    order: 2;
    margin-top: 8px;
}

.policy-link {
    background: none;
    border: none;
    color: #8A8A8E;
    font-size: clamp(12px, 2vw, 13px);
    font-weight: 300;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.policy-link:hover,
.policy-link:focus {
    color: #007AFF;
    outline: none;
}

.policy-separator {
    color: #8A8A8E;
    font-size: clamp(12px, 2vw, 13px);
    opacity: 0.6;
}

.language-selector {
    flex-shrink: 0;
    position: absolute;
    right: clamp(20px, 5vw, 80px);
    top: clamp(24px, 4vw, 32px);
    order: 3;
}

.language-dropdown {
    position: relative;
    display: inline-block;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.language-button {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #1a1a1c;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: clamp(8px, 1.5vw, 10px) clamp(12px, 2.5vw, 14px);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(6px, 1vw, 8px);
    font-size: clamp(12px, 2vw, 13px);
    font-weight: 400;
    font-family: inherit;
    min-width: clamp(100px, 15vw, 120px);
    transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-align: left;
    line-height: 1.2;
}

.language-button:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.language-button:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.language-button span {
    flex: 1;
    text-align: left;
}

.language-button svg {
    width: 10px;
    height: 10px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
}

.language-options.show .language-button svg {
    transform: rotate(180deg);
}

.language-options {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    min-width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    display: none;
    z-index: 1000;
    overflow: hidden;
    margin-bottom: 6px;
    animation: fadeInUp 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.language-options.show {
    display: block;
}

.language-option {
    padding: clamp(8px, 1.5vw, 10px) clamp(12px, 2.5vw, 14px);
    cursor: pointer;
    color: #3a3a3c;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: clamp(12px, 2vw, 13px);
    font-weight: 400;
    transition: all 0.15s ease;
    display: block;
    text-decoration: none;
    position: relative;
    background: transparent;
    text-align: left;
    line-height: 1.2;
    white-space: nowrap;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover,
.language-option:focus {
    background: rgba(0, 122, 255, 0.06);
    color: #007AFF;
    padding-left: clamp(16px, 3vw, 18px);
    outline: none;
}

.language-option.active {
    color: #007AFF;
    font-weight: 500;
    background: rgba(0, 122, 255, 0.04);
}

.language-option.active::after {
    content: '\2713';
    position: absolute;
    right: clamp(12px, 2.5vw, 14px);
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(10px, 2vw, 12px);
    color: #007AFF;
}

.policy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.policy-modal-overlay.show {
    display: block;
    opacity: 1;
}

.policy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    pointer-events: none;
}

.policy-modal.show {
    display: flex;
    pointer-events: all;
}

.policy-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 98vh;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    opacity: 0;
}

.policy-modal.show .policy-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.policy-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.policy-modal-header h2 {
    margin: 0;
    color: #1a1a1c;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.policy-modal-close {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.policy-modal-close:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.policy-modal-close:active {
    transform: scale(0.95);
}

.policy-modal-close svg {
    width: 20px;
    height: 20px;
}

.policy-modal-body {
    padding: 32px;
    max-height: calc(85vh - 100px);
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    -webkit-overflow-scrolling: touch;
}

.policy-modal-body::-webkit-scrollbar {
    width: 8px;
}

.policy-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.policy-modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.policy-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.policy-modal-body h3 {
    color: #1a1a1c;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 28px 0 12px 0;
    line-height: 1.3;
}

.policy-modal-body h3:first-child {
    margin-top: 0;
}

.policy-modal-body p {
    margin: 0 0 16px 0;
    color: #444;
    font-size: 0.95rem;
    text-align: justify;
}

.policy-modal-body p:last-child {
    margin-bottom: 0;
}

.policy-last-updated {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-bottom: 24px;
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.policy-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    color: #666;
    font-size: 14px;
}

.policy-modal-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top: 2px solid #007AFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.policy-modal-error {
    text-align: center;
    padding: 40px;
    color: #d32f2f;
    background: rgba(211, 47, 47, 0.05);
    border-radius: 8px;
    margin: 20px;
}

.policy-modal-error p {
    margin: 8px 0;
}

body.modal-open {
    overflow: hidden;
    height: 100vh;
}


@media screen and (max-width: 880px) {
    .footer {
        padding: 70px 0 35px;
    }
    
    .footer::before {
        top: 35px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(40px, 8vw, 80px);
        margin-bottom: 32px;
        text-align: center;
        max-width: 900px;
        padding: 0 20px;
        margin-inline: auto;
        justify-content: center;
        justify-items: center;
        box-sizing: border-box;
    }
    
    .footer-section {
        align-items: center;
        width: 100%;
    }
    
    .footer-bottom {
        padding-left: 20px;
        padding-right: 20px;
        gap: 12px;
        position: static;
    }
    
    .footer-copyright {
        min-width: auto;
    }
    
    .footer-policies {
        flex-direction: column;
        gap: 8px;
        margin-top: 4px;
    }
    
    .policy-separator {
        display: none;
    }
    
    .language-selector {
        position: static;
        margin-top: 8px;
    }
    
    .policy-modal {
        padding: 10px;
    }
    
    .policy-modal-content {
        max-height: 85vh;
        border-radius: 12px;
    }
    
    .policy-modal-header {
        padding: 18px 20px 14px;
    }
    
    .policy-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .policy-modal-close {
        width: 36px;
        height: 36px;
    }
    
    .policy-modal-close svg {
        width: 18px;
        height: 18px;
    }
    
    .policy-modal-body {
        padding: 24px;
        max-height: calc(95vh - 90px);
    }
}

@media screen and (max-width: 600px) {
    .footer {
        padding: 60px 0 35px;
    }
    
    .footer::before {
        top: 30px;
        width: clamp(200px, 50vw, 300px);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 28px;
        padding: 0 15px;
    }
    
    .footer-section {
        max-width: 400px;
        width: 100%;
    }
    
    .footer-bottom {
        padding-left: 15px;
        padding-right: 15px;
        gap: 8px;
    }
    
    .footer-policies {
        gap: 6px;
        margin-top: 6px;
    }
}


@media screen and (max-width: 480px) {
    .footer {
        padding: 40px 0 30px;
    }
    
    .footer::before {
        top: 20px;
        width: 200px;
    }
    
    .footer-content {
        gap: 20px;
        margin-bottom: 24px;
        padding: 0 12px;
    }
    
    .footer-bottom {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .language-selector {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .language-dropdown {
        width: 160px;
        max-width: 160px;
    }
    
    .language-button {
        width: 100%;
    }
    
    .language-options {
        min-width: 160px;
        width: 160px;
        left: 0;
    }
    
    .policy-modal {
        padding: 8px;
    }
    
    .policy-modal-content {
        max-height: 80vh;
        border-radius: 8px;
    }
    
    .policy-modal-header {
        padding: 16px 18px 12px;
    }
    
    .policy-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .policy-modal-close {
        width: 38px;
        height: 38px;
    }
    
    .policy-modal-close svg {
        width: 16px;
        height: 16px;
    }
    
    .policy-modal-body {
        padding: 20px;
        max-height: calc(98vh - 75px);
        font-size: 0.9rem;
    }
    
    .policy-modal-body h3 {
        font-size: 1rem;
        margin: 20px 0 10px 0;
    }
}

@media screen and (-webkit-min-device-pixel-ratio: 2), 
       screen and (min-resolution: 192dpi) {
    .language-button, 
    .language-options {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-section a, 
    .footer-section .whatsapp-link,
    .language-button, 
    .language-option,
    .policy-modal-content {
        transition: none;
    }
    
    .language-options {
        animation: none;
    }
}