@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-section {
    padding: 120px 20px 60px;
    min-height: 80vh;
    display: flex;
    justify-content: center;
}

.legal-container {
    background: transparent;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
    max-width: 900px;
    width: 100%;
    color: #ddd;
    animation: fadeInUp 0.8s ease-out forwards;
}

.legal-container h1 {
    color: #f1c40f;
    font-size: 3rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.legal-container h2 {
    color: #fff;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    border-left: 3px solid #f1c40f;
    padding-left: 15px;
}

.legal-container p {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 1.15rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.legal-container ul {
    margin-left: 20px;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.legal-container ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.contact-section {
    padding: 120px 20px 60px;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    max-width: 1100px;
    width: 100%;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out forwards;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background: transparent;
    border: none;
    padding: 20px 0;
}

.avatar-wrapper {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #f1c40f;
    object-fit: cover;
    box-shadow: 0 0 25px rgba(241, 196, 15, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(241, 196, 15, 0.6);
}

.contact-info h2 {
    color: #f1c40f;
    font-size: 2.5rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.contact-info p {
    color: #eee;
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.info-item span {
    color: #f1c40f;
    font-weight: bold;
    margin-right: 15px;
}

.contact-form-container {
    flex: 1.5;
    min-width: 300px;
    background: rgba(0, 0, 0, 0.4);
    padding: 40px;
    border-radius: 10px;
    border-left: 1px solid rgba(241, 196, 15, 0.5);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #f1c40f;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    transition: 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: #f1c40f;
    background: rgba(255, 255, 255, 0.12);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: rgba(241, 196, 15, 0.1);
    border: 1px solid #f1c40f;
    color: #f1c40f;
    font-size: 1.3rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 2px;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #f1c40f;
    color: #000;
    box-shadow: 0 0 30px rgba(241, 196, 15, 0.4);
}

@media (max-width: 1024px) {
    .contact-wrapper {
        gap: 30px;
    }
    .contact-form-container {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .legal-section, .contact-section {
        padding: 100px 15px 40px;
    }
    .legal-container h1 {
        font-size: 2.2rem;
    }
    .legal-container h2 {
        font-size: 1.5rem;
    }
    .contact-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    .contact-info, .contact-form-container {
        width: 100%;
        min-width: 100%;
    }
    .contact-info h2 {
        font-size: 2rem;
    }
    .contact-form-container {
        padding: 20px;
        border-left: none;
        border-top: 1px solid rgba(241, 196, 15, 0.5);
    }
    .avatar-wrapper {
        justify-content: center;
    }
    .contact-info {
        text-align: center;
    }
    .info-item {
        justify-content: center;
    }
}

@media (min-width: 1920px) {
    .legal-container, .contact-wrapper {
        max-width: 1400px;
    }
    .legal-container p, .legal-container ul li {
        font-size: 1.3rem;
    }
    .form-group input, .form-group textarea {
        font-size: 1.2rem;
        padding: 20px;
    }
    .profile-avatar {
        width: 140px;
        height: 140px;
    }
}