/* ==========================================================================
   SIBENITO THEME - ESTILOS DE PLANTILLAS LEGALES Y POLÍTICAS
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

.sibenito-legal-page {
    padding-top: 40px;
    padding-bottom: 70px;
    background-color: #ffffff;
}

.sibenito-legal-page .legal-main-container {
    display: flex;
    flex-direction: column;
    gap: 45px;
    max-width: var(--container-width, 1320px);
    margin: 0 auto;
    padding-left: var(--padding-x, 15px);
    padding-right: var(--padding-x, 15px);
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   1. TARJETAS DESTACADAS / RESUMEN RÁPIDO EN LA PARTE SUPERIOR
   -------------------------------------------------------------------------- */
.legal-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.legal-cards-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.legal-feature-card {
    background: #fbfbfb;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.legal-feature-card:hover {
    border-color: #111111;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.legal-card-icon {
    width: 48px;
    height: 48px;
    background: #111111;
    color: var(--gn-accent-color, #f8cb3a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.legal-feature-card:hover .legal-card-icon {
    background: var(--gn-accent-color, #f8cb3a);
    color: #111111;
}

.legal-card-text h4 {
    font-family: var(--gn-font-headings, 'Syne', sans-serif);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111111;
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
}

.legal-card-text p {
    font-size: 13px;
    color: #555555;
    margin: 0;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   2. ESTRUCTURA PRINCIPAL DE 2 COLUMNAS (SIDEBAR NAVEGACIÓN + CONTENIDO)
   -------------------------------------------------------------------------- */
.legal-layout-two-cols {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
}

/* COLUMNA IZQUIERDA: ÍNDICE NAVEGACIÓN STICKY */
.legal-sidebar-col {
    flex: 0 0 300px;
    width: 300px;
    position: sticky;
    top: 100px;
}

.legal-index-card {
    background: #fbfbfb;
    border: 1px solid #111111;
    border-radius: 8px;
    padding: 25px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.legal-index-title {
    font-family: var(--gn-font-headings, 'Syne', sans-serif);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: #111111;
    margin: 0 0 15px 0;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gn-accent-color, #f8cb3a);
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-index-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-index-menu li a {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #444444;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.legal-index-menu li a:hover {
    background: #ffffff;
    color: #111111;
    padding-left: 16px;
    border-left: 3px solid #111111;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* BLOQUE DE SOPORTE DIRECTO EN SIDEBAR */
.legal-support-card {
    margin-top: 25px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.legal-support-card h5 {
    font-family: var(--gn-font-headings, 'Syne', sans-serif);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: #111111;
    margin: 0 0 6px 0;
}

.legal-support-card p {
    font-size: 12px;
    color: #666666;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.sibenito-btn-legal-support {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 15px;
    background: #111111;
    color: #ffffff;
    font-family: var(--gn-font-headings, 'Syne', sans-serif);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.sibenito-btn-legal-support:hover {
    background: var(--gn-accent-color, #f8cb3a);
    color: #111111;
}

/* COLUMNA DERECHA: CONTENIDO DETALLADO */
.legal-content-col {
    flex: 1;
    min-width: 0;
    background: #ffffff;
}

/* BLOQUES DE TEXTO Y SECCIONES */
.legal-section-block {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.legal-section-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.legal-section-number {
    width: 32px;
    height: 32px;
    background: #111111;
    color: var(--gn-accent-color, #f8cb3a);
    font-family: var(--gn-font-headings, 'Syne', sans-serif);
    font-size: 14px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.legal-section-title {
    font-family: var(--gn-font-headings, 'Syne', sans-serif);
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    color: #111111;
    margin: 0;
    letter-spacing: 0.5px;
}

.legal-body-text {
    font-size: 15px;
    line-height: 1.7;
    color: #444444;
}

.legal-body-text p {
    margin: 0 0 15px 0;
}

.legal-body-text p:last-child {
    margin-bottom: 0;
}

.legal-body-text ul,
.legal-body-text ol {
    margin: 15px 0;
    padding-left: 20px;
}

.legal-body-text li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.legal-body-text strong {
    color: #111111;
}

/* CAJAS DESTACADAS Y ALERTAS DE ATENCIÓN */
.legal-callout-box {
    background: #fbfbfb;
    border-left: 4px solid #111111;
    border-radius: 0 8px 8px 0;
    padding: 20px;
    margin: 20px 0;
}

.legal-callout-box.accent-border {
    border-left-color: var(--gn-accent-color, #f8cb3a);
}

.legal-callout-box h5 {
    font-family: var(--gn-font-headings, 'Syne', sans-serif);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: #111111;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-callout-box p {
    font-size: 14px;
    color: #555555;
    margin: 0;
    line-height: 1.6;
}

/* TABLA ESTILIZADA DE TARIFA/TIEMPOS (Ej. Envíos) */
.legal-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #111111;
    border-radius: 8px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.legal-table th {
    background: #111111;
    color: #ffffff;
    font-family: var(--gn-font-headings, 'Syne', sans-serif);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 14px 18px;
    letter-spacing: 0.5px;
}

.legal-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #e8e8e8;
    color: #333333;
    line-height: 1.5;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-table tr:nth-child(even) td {
    background: #fbfbfb;
}

.badge-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #111111;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}

.badge-tag.accent {
    background: var(--gn-accent-color, #f8cb3a);
    color: #111111;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (MEDIA QUERIES)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .legal-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .legal-layout-two-cols {
        flex-direction: column;
    }

    .legal-sidebar-col {
        width: 100%;
        flex: 1 1 100%;
        position: relative;
        top: 0;
    }

    .legal-index-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .legal-cards-grid {
        grid-template-columns: 1fr !important;
    }

    .legal-index-menu {
        grid-template-columns: 1fr;
    }

    .legal-section-header {
        align-items: flex-start;
    }

    .legal-section-title {
        font-size: 17px;
    }
}
