
/* =======================================================
   POLÍTICA DE COOKIES
   Ayuntamiento de Güevéjar
======================================================= */


/* ===== HERO PRINCIPAL ===== */

.hero-legal{
    position:relative;
    height:70vh;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(
        180deg,
        #626966 0%,
        #315f4c 100%
    );
}

.hero-legal h1{
    color:#ffffff;
}

.hero-legal p{
    color:#ffffff;
    max-width:850px;
    margin:0 auto;
    line-height:1.7;
}


/* ===== CONTENIDO GENERAL ===== */

.legal-content{
    padding:60px 0;
}


/* ===== TARJETAS ===== */

.legal-card{
    background:#ffffff;
    border-radius:12px;
    padding:35px;
    margin-bottom:35px;
    box-shadow:0 5px 20px rgba(0,0,0,.06);
}

.legal-card h2{
    font-size:1.6rem;
    color:#b8860b;
    margin-bottom:20px;
    padding-bottom:10px;
    border-bottom:2px solid #f0f0f0;
}

.legal-card p{
    color:#444444;
    font-size:1.02rem;
    line-height:1.9;
    text-align:justify;
}


/* ===== TEXTO LEGAL ===== */

.legal-text{
    width:100%;
}

.legal-text p{
    margin-bottom:22px;
}

.legal-text h3{
    margin:35px 0 18px;
    font-size:1.25rem;
    color:#1f2d3d;
    font-weight:700;
}

.legal-text h3:first-child{
    margin-top:0;
}

.legal-text strong{
    color:#1f2d3d;
}


/* ===== ENLACES DEL TEXTO ===== */

.legal-text a{
    color:#0d6efd;
    text-decoration:none;
    overflow-wrap:anywhere;
}

.legal-text a:hover{
    text-decoration:underline;
}


/* ===== ÍNDICE ===== */

.legal-index{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.legal-index a{
    display:block;
    padding:12px 18px;
    background:#f8f9fa;
    border-left:4px solid #b8860b;
    border-radius:6px;
    color:#1f2d3d;
    font-weight:600;
    text-decoration:none;
    transition:all .25s ease;
}

.legal-index a:hover{
    background:#fff7e6;
    color:#b8860b;
    padding-left:25px;
}


/* ===== LISTAS ===== */

.legal-list{
    margin:15px 0 22px 20px;
    padding-left:12px;
}

.legal-list li{
    margin-bottom:10px;
    color:#444444;
    font-size:1.02rem;
    line-height:1.8;
}


/* ===== TABLAS DE COOKIES ===== */

.legal-table-wrapper{
    width:100%;
    margin:25px 0;
    overflow-x:auto;
}

.legal-table{
    width:100%;
    min-width:700px;
    border-collapse:collapse;
    background:#ffffff;
}

.legal-table th,
.legal-table td{
    padding:14px 16px;
    border:1px solid #dddddd;
    text-align:left;
    vertical-align:top;
    color:#444444;
    line-height:1.6;
}

.legal-table th{
    background:#315f4c;
    color:#ffffff;
    font-weight:700;
}

.legal-table tbody tr:nth-child(even){
    background:#f8f9fa;
}


/* ===== BLOQUES DESTACADOS ===== */

.legal-notice{
    margin:22px 0;
    padding:18px 20px;
    background:#f8f9fa;
    border-left:4px solid #b8860b;
    border-radius:6px;
    color:#444444;
    line-height:1.8;
}


/* ===== ENLACES DE NAVEGADORES ===== */

.browser-links{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:20px;
}

.browser-links a{
    display:block;
    padding:11px 15px;
    background:#f8f9fa;
    border-radius:6px;
    color:#1f2d3d;
    font-weight:600;
    text-decoration:none;
    transition:all .25s ease;
}

.browser-links a:hover{
    background:#fff7e6;
    color:#b8860b;
    padding-left:22px;
}


/* ===== SALTO A LOS APARTADOS ===== */

.legal-card[id]{
    scroll-margin-top:110px;
}


/* ===== DESPLAZAMIENTO SUAVE ===== */

html{
    scroll-behavior:smooth;
}
/* ===== ESTADO DE LAS COOKIES ===== */

.cookie-status-table{
    min-width:0;
}

.cookie-status-table td{
    padding:25px;
    background:#f3f2ff;
    text-align:center;
}


/* ===== ENLACE AL PANEL DE COOKIES ===== */

.cookie-panel-container{
    text-align:center !important;
}

.cookie-panel-link{
    display:inline-block;
    padding:12px 24px;
    background:#315f4c;
    border-radius:6px;
    color:#ffffff !important;
    font-weight:700;
    text-decoration:none !important;
    transition:all .25s ease;
}

.cookie-panel-link:hover{
    background:#b8860b;
    transform:translateY(-2px);
}


/* ===== TABLAS DE GESTIÓN ===== */

.browser-management-table th{
    width:240px;
}

.browser-links-table th{
    width:170px;
}

.browser-links-table a{
    overflow-wrap:anywhere;
}


/* ===== RESPONSIVE ===== */

@media (max-width:768px){

    .browser-management-table,
    .browser-links-table{
        min-width:650px;
    }

    .hero-legal{
        height:60vh;
        min-height:430px;
        padding:80px 20px 40px;
    }

    .hero-legal h1{
        font-size:2.2rem;
    }

    .hero-legal p{
        font-size:1rem;
    }

    .legal-content{
        padding:40px 0;
    }

    .legal-card{
        padding:25px;
        margin-bottom:25px;
    }

    .legal-card h2{
        font-size:1.35rem;
    }

    .legal-card p,
    .legal-list li{
        font-size:1rem;
        text-align:left;
    }

    .legal-text h3{
        margin-top:28px;
        font-size:1.15rem;
    }

    .legal-index a{
        padding:12px 14px;
    }

    .legal-table th,
    .legal-table td{
        padding:12px;
        font-size:.95rem;
    }

}