/* =========================================
   Page: Legales (Consolidated)
   ========================================= */

.k-legal-page {
    background-color: #fff;
    padding-bottom: 80px;
    font-family: "Myriad Pro", "Segoe UI", Helvetica, Arial, sans-serif;
    color: #16161b;
}

/* --- Hero Section --- */
.k-legal-hero {
    background-color: #1A1A1A;
    padding: 0;
    margin-bottom: 0;
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
}

.k-legal-hero-bg {
    position: relative;
    width: 100%;
    z-index: 1;
}

.k-legal-hero-bg img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Removed Title Styles (Clean Banner) */
.k-legal-title {
    display: none;
}

/* --- Navigation Selector (Floating) --- */
.k-legal-nav {
    margin-top: -30px;
    /* Overlap Banner */
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.k-legal-select-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.k-legal-select {
    width: 100%;
    height: 55px;
    /* Taller click area */
    padding: 0 40px 0 20px;
    font-size: 16px;
    font-weight: 700;
    /* Bolder text */
    color: #16161b;
    background: transparent;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    /* Center text inside select */
    text-align-last: center;
}

.k-legal-select:focus {
    outline: none;
}

.k-legal-select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* --- Content Area --- */
.k-legal-text-content {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    max-width: 900px;
    margin: 0 auto;
    /* Center Content */
}

/* New Section Title Style (Below Selector) */
.k-legal-section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 40px;
    margin-top: 0;
}

/* Accordion Styles (Numbered Circles) */
.k-legal-text-content details {
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

.k-legal-text-content details:first-child {
    border-top: 1px solid #eee;
}

/* Initialize counter */
.k-legal-text-content {
    counter-reset: legal-counter;
}

.k-legal-text-content summary {
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    font-size: 18px;
    color: #16161b;
    position: relative;
    padding: 20px 40px 20px 50px;
    /* Space for number and arrow */
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.k-legal-text-content summary::-webkit-details-marker {
    display: none;
}

.k-legal-text-content summary:hover {
    background-color: #f9f9f9;
}

/* Numbered Circle */
.k-legal-text-content summary::before {
    counter-increment: legal-counter;
    content: counter(legal-counter);
    position: absolute;
    left: 10px;
    /* Add margin from edge */
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-color: #ffed00;
    /* Yellow Circle */
    color: #000;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: 700;
    font-size: 14px;
}

/* Arrow Icon (Blue Chevron) */
.k-legal-text-content summary::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 12px;
    height: 12px;
    border-right: 2px solid #0056b3;
    /* Blue arrow color matches reference */
    border-bottom: 2px solid #0056b3;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.3s;
}

.k-legal-text-content details[open] summary::after {
    transform: translateY(-30%) rotate(225deg);
}

.k-details-content {
    padding: 20px 0 30px 50px;
    /* Indent content */
    color: #666;
}

.k-details-content p {
    margin-bottom: 15px;
}

.k-details-content strong {
    color: #000;
}