* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #f8f9fa;
    padding-top: 90px;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1; /* Asegura que el contenedor principal ocupe el espacio restante */
    display: flex;
    flex-direction: column;
}

.btn-back {
    text-align: center;
    margin: 40px 0; /* Añade margen superior e inferior */
}


h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: #003c96;
    text-align: center;
    padding-top: 40px;
}

h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: #02a9d6;
    text-align: left;
    border-bottom: 2px solid #003c96;
    padding-bottom: 10px;
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

a {
    color: #02a9d6;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #003c96;
    text-decoration: underline;
}

/* Header estil */
.legal-header {
    background-color: #003c96;
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.legal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 60, 150, 0.9), rgba(2, 169, 214, 0.7));
    z-index: 1;
}

.legal-header h1 {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 3.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Contingut principal */
.legal-content {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
}

section {
    margin-bottom: 40px;
}

.btn-back button {
    font-weight: 600;
    color: white;
    padding: 12px 28px;
    background: linear-gradient(135deg, #02a9d6, #00c6ff);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0 4px 10px rgba(2, 169, 214, 0.3);
    transition: all 0.3s ease;
}

.btn-back button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(2, 169, 214, 0.4);
    background: linear-gradient(135deg, #00c6ff, #02a9d6);
}

/* Footer */
footer {
    background-color: #003c96;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: auto; /* Para que el footer se mantenga abajo */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

footer p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .legal-content {
        padding: 20px;
    }

    .legal-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .btn-back {
        margin-bottom: 20px; /* Ajusta el valor según sea necesario */
    }
}
