/* ==========================================================================
   ADAPTACIÓ COMPLETA PER A LA POLÍTICA DE PRIVACITAT EXTERNA (elegal.php)
   ========================================================================== */

/* 1. ESTRUCTURA PRINCIPAL DEL DOCUMENT */
.content section {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Forcem el contenidor on hi ha el text legal (col-10) a comportar-se com la capsa premium */
.content .col-10 {
    background: rgba(30, 30, 30, 0.65) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 12px !important;
    padding: 45px !important;
    text-align: left !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    display: block;
    width: 100% !important; /* Fem que ocupi el 100% i ignori columnes antigues */
}

/* Ocultem les columnes buides laterals del PHP antic per centrar la capsa */
.content .col-1 {
    display: none !important;
}

/* 2. TÍTOL PRINCIPAL (H2 de la capçalera) */
.content header.titol h2 {
    font-family: 'Georgia', serif !important;
    color: #d4af37 !important; /* Or brillant */
    font-size: 1.4rem !important;
    letter-spacing: 0.5px !important;
    margin-top: 0 !important;
    margin-bottom: 35px !important;
    line-height: 1.4 !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
    padding-bottom: 20px !important;
    text-transform: uppercase !important;
    text-align: center !important;
}

/* 3. PARÀGRAF DE TEXT GENERAL */
.content p.info-gen {
    color: #dddddd !important;
    font-size: 0.95rem !important;
    line-height: 1.8 !important; /* Un pèl més espaiat ja que el PHP usa molts <br> */
    font-weight: 300 !important;
    font-family: Arial, sans-serif !important;
}

/* 4. SUBTÍTOLS (Els textos en negreta que fan de títols de secció) */
/* El PHP usa '<span style="font-weight:bold">' per als subtítols. Els convertim en Or Vell */
.content p.info-gen span[style*="font-weight:bold"],
.content p.info-gen strong {
    font-family: 'Georgia', serif !important;
    color: #b8860b !important; /* Metall or elegant */
    font-size: 1.1rem !important;
    letter-spacing: 0.5px !important;
    display: inline-block;
    margin-top: 25px !important;
    margin-bottom: 10px !important;
    font-weight: normal !important; /* El color ja li dona la força */
}

/* Excepció: El primer text de "PROTECCIÓ DE DADES" el volem blanc o daurat diferent */
.content p.info-gen span[style*="font-weight:bold"]:first-of-type {
    color: #d4af37 !important;
    font-size: 1.2rem !important;
    margin-top: 0 !important;
}

/* --- ADAPTACIÓ MÒBIL --- */
@media (max-width: 600px) {
    .content .col-10 {
        padding: 25px 20px !important;
    }
    
    .content header.titol h2 {
        font-size: 1.15rem !important;
        margin-bottom: 25px !important;
    }
    
    .content p.info-gen span[style*="font-weight:bold"] {
        font-size: 1rem !important;
    }
    
    .content p.info-gen {
        font-size: 0.9rem !important;
    }
}

/* --- CODI EXTRA DEL TEU BOTÓ SCROLL TOP (Es manté igual) --- */
html {
    scroll-behavior: smooth;
}

.btn-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: rgba(30, 30, 30, 0.75);
    border: 1px solid #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    text-decoration: none;
    z-index: 999;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.btn-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-scroll-top:hover {
    background: #d4af37;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-scroll-top:hover svg {
    transform: translateY(-2px);
}