body 
{
    background-color: #f4f4f4;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    overflow-y: scroll;
}

.header 
{
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 15px; 
    background: #000000;
    color: #ffffff;
    width: 100%;
    max-width: 100%;
    position: sticky;  
    top: 0;
    z-index: 1000;
    gap: 1rem;
}

.logo-container 
{
    display: flex;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
    text-decoration: none;
    color: #ffffff;
    flex-shrink: 0; 
    margin-right: auto;
}

.logo-container img 
{
    width: 70px;
    height: auto;
}

.logo-container div 
{
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    white-space: nowrap;
}

.header h1 
{
    font-size: 1.4rem;
    margin: 0;
    line-height: 1.1;
    text-align: center;
}

.eslogan 
{
    font-size: 0.75rem;
    font-style: italic;
    color: #ffffff;
    text-align: center;
    margin-top: 2px;
}

.contacto-container 
{
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.contacto-container a 
{
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.btn-volver 
{
    color: #ffffff; 
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 20px; 
    font-size: 0.9rem; 
    transition: 0.3s;
    margin-left: 10px;
    border: 1px solid rgba(255,255,255,0.3);
    margin-left: 10.5px;
}

.btn-volver:hover 
{
    background: rgba(255,255,255,0.1);
}

.legal-wrapper 
{
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
}

.legal-card 
{
    background-color: #ffffff;
    max-width: 900px;
    width: 100%;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 5px solid #c5a059;
}

.legal-title 
{
    color: #000000;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
}

.legal-date 
{
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 40px;
    font-style: italic;
}

.legal-body section 
{
    margin-bottom: 30px;
}

.legal-body h2 
{
    color: #c5a059;
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.legal-body p, 
.legal-body li 
{
    color: #444;
    line-height: 1.8;
    font-size: 1rem;
    text-align: justify;
}

.legal-body ul 
{
    padding-left: 20px;
    margin-top: 10px;
}

.legal-body li 
{
    margin-bottom: 8px;
}

.legal-body a 
{
    color: #c5a059;
    font-weight: bold;
    text-decoration: none;
}

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

.footer 
{
    background: #000000; 
    color: #ffffff; 
    text-align: center;
    padding: 2rem 1rem; 
    font-size: 0.9rem; 
    display: flex;
    flex-direction: column; 
    gap: 1.5rem;
}

.footer-legal-links 
{
    display: flex; 
    justify-content: center; 
    align-items: center;
    flex-wrap: wrap; 
    gap: 2rem; 
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal-links a 
{
    color: #ffffff; 
    text-decoration: none; 
    font-size: 0.95rem;
    font-weight: 500; 
    transition: color 0.3s ease; 
    display: flex; 
    align-items: center; 
    gap: 8px;
}

.footer-info p 
{ 
    margin: 0.4rem 0; 
    color: #ffffff; 
}

@media (max-width: 1024px) 
{
    .header 
    {
        flex-direction: column; 
        justify-content: center; 
        padding: 1rem 1rem; 
        gap: 1rem; 
    }
    .contacto-container 
    {
        justify-content: center; 
        width: 100%; 
        margin-right: 0;
    }
}

@media (max-width: 600px) 
{
    .header 
    {
        position: relative; 
        padding: 1.5rem 1rem;
    }

    .contacto-container 
    { 
        flex-direction: column; 
        gap: 0.8rem; 
    }
    
    .footer-legal-links 
    { 
        flex-direction: column; 
        gap: 1rem; 
    }

    .legal-card 
    {
        padding: 25px;
    }
    
    .legal-title 
    {
        font-size: 1.5rem;
    }
    
    .legal-body p, 
    .legal-body li 
    {
        text-align: left;
    }
}