/* =============================================================
   Páginas legales (Terms, Privacy, Disclosures, etc.)
   Hoja compartida por las ocho. Prefijo .lgx-
   ============================================================= */

.lgx-hero {
    background: linear-gradient(135deg, #0B1A33 0%, #102A50 60%, #0D2444 100%);
    color: #fff;
    padding: 44px 0 52px;
}
.lgx-hero__title { font-size: clamp(27px, 3.4vw, 40px); margin: 14px 0 14px; }
.lgx-hero__text {
    font-size: 14.5px;
    color: rgba(255, 255, 255, .78);
    line-height: 1.8;
    max-width: 640px;
}
.lgx-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .68);
}
.lgx-hero__meta .ico { width: 14px; height: 14px; }

.lgx-body { background: var(--bg-alt); padding: 52px 0 68px; }
.lgx-layout {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 38px;
    align-items: start;
}

/* --- Barra lateral: índice + otros documentos --- */
.lgx-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.lgx-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 16px;
    box-shadow: var(--shadow-sm);
}
.lgx-card__title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 12px;
}
.lgx-nav { display: grid; gap: 2px; }
.lgx-nav a {
    display: flex;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-2);
    line-height: 1.45;
    transition: background .2s var(--ease), color .2s var(--ease);
}
.lgx-nav a:hover { background: var(--blue-soft); color: var(--blue); }
.lgx-nav a.is-active { background: var(--blue); color: #fff; }
.lgx-nav a.is-current { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.lgx-nav__num { flex-shrink: 0; font-size: 10.5px; font-weight: 800; color: var(--muted-2); padding-top: 1px; }
.lgx-nav a.is-active .lgx-nav__num { color: rgba(255, 255, 255, .6); }

/* Plegable en móvil */
.lgx-toggle { display: none; }

/* --- Documento ---
   minmax(0,1fr) + min-width:0 evitan que una tabla ancha estire la
   columna: sin eso, el min-content de la tabla ensancha toda la
   página en móvil en vez de hacer scroll dentro de su contenedor. */
.lgx-doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.lgx-section { min-width: 0; }
.lgx-section {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 32px 30px;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: calc(var(--header-h) + 20px);
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.lgx-section:hover { border-color: var(--blue-line); box-shadow: var(--shadow); }
.lgx-section__num {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--blue);
    margin-bottom: 8px;
}
.lgx-section__title { font-size: clamp(17px, 1.8vw, 22px); margin-bottom: 14px; }

.lgx-section p { font-size: 14px; color: var(--muted); line-height: 1.85; margin-bottom: 13px; }
.lgx-section p:last-child { margin-bottom: 0; }
.lgx-section strong { color: var(--ink); }
.lgx-section a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    /* Correos y URLs largas no tienen espacios donde cortar: sin esto
       desbordan el ancho de la pantalla en móvil. */
    overflow-wrap: anywhere;
}
.lgx-section h3 {
    font-size: 15px;
    color: var(--ink);
    margin: 20px 0 10px;
}
.lgx-section h3:first-child { margin-top: 0; }

/* Listas */
.lgx-section ul, .lgx-section ol { display: grid; gap: 8px; margin: 0 0 14px; }
.lgx-section ul li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.7;
}
.lgx-section ul li::before {
    content: '';
    position: absolute;
    left: 7px; top: 10px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--blue);
}
.lgx-section ol { counter-reset: lgx; }
.lgx-section ol li {
    counter-increment: lgx;
    position: relative;
    padding-left: 30px;
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.7;
}
.lgx-section ol li::before {
    content: counter(lgx);
    position: absolute;
    left: 0; top: 2px;
    width: 20px; height: 20px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}
/* Variantes de marcador. Van con .lgx-section delante porque
   `.lgx-section ul li::before` tiene más especificidad que `.lgx-no li::before`
   y si no, el punto azul gana siempre. */
.lgx-section ul.lgx-no li::before {
    content: '✕';
    left: 2px; top: 1px;
    width: auto; height: auto;
    background: none;
    color: #C0392B;
    font-size: 12px;
    font-weight: 800;
}
.lgx-section ul.lgx-yes li::before {
    content: '✓';
    left: 2px; top: 0;
    width: auto; height: auto;
    background: none;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
}

/* Aviso destacado */
.lgx-callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--blue-tint);
    border: 1px solid var(--blue-line);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 13.5px;
    color: #1E3A5F;
    line-height: 1.75;
    margin: 4px 0 13px;
}
.lgx-callout .ico { flex-shrink: 0; width: 18px; height: 18px; fill: var(--blue); margin-top: 2px; }
.lgx-callout--green { background: var(--green-soft); border-color: #BFE6CE; color: #15603A; }
.lgx-callout--green .ico { fill: var(--green); }
.lgx-callout--warn { background: #FFF9EC; border-color: #F0DDAF; color: #7A5F13; }
.lgx-callout--warn .ico { fill: #C79A2B; }

/* Tabla simple para documentos con datos */
.lgx-table-wrap { max-width: 100%; overflow-x: auto; margin-bottom: 14px; }
.lgx-table {
    width: 100%;
    min-width: 420px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13.5px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.lgx-table th, .lgx-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.lgx-table thead th { background: var(--bg-alt); font-weight: 700; color: var(--ink); font-size: 12.5px; }
.lgx-table td { color: var(--muted); }
.lgx-table tbody tr:last-child td { border-bottom: none; }

/* Bloque de contacto al final */
.lgx-contact {
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 18px 20px;
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.8;
}
.lgx-contact a { color: var(--blue); font-weight: 600; }

/* --- Responsive --- */
@media (max-width: 1080px) {
    .lgx-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .lgx-side { position: static; }
    .lgx-card--toc { padding: 0; overflow: hidden; }
    .lgx-card--toc .lgx-card__title { display: none; }
    .lgx-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        padding: 16px 18px;
        background: none;
        border: none;
        cursor: pointer;
        font-family: inherit;
        font-size: 14px;
        font-weight: 700;
        color: var(--ink);
        text-align: left;
    }
    .lgx-toggle .ico {
        width: 18px; height: 18px;
        fill: var(--blue);
        transform: rotate(90deg);
        transition: transform .3s var(--ease);
    }
    .lgx-card--toc.is-open .lgx-toggle .ico { transform: rotate(-90deg); }
    .lgx-card--toc .lgx-nav { display: none; padding: 0 12px 14px; }
    .lgx-card--toc.is-open .lgx-nav { display: grid; }
}

@media (max-width: 620px) {
    .lgx-hero { padding: 30px 0 38px; }
    .lgx-body { padding: 34px 0 44px; }
    .lgx-section { padding: 22px 20px 24px; border-radius: var(--radius); }

    /* Con dos columnas cortas la tabla se lee mejor ajustada al ancho
       que obligando a un scroll horizontal dentro del documento. */
    .lgx-table { min-width: 0; }
    .lgx-table th, .lgx-table td { padding: 10px 12px; font-size: 13px; }
}

/* =============================================================
   Formulario de solicitud de privacidad (Do Not Sell / Limit)
   ============================================================= */
.lgx-form { display: grid; gap: 14px; margin-top: 6px; }
.lgx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lgx-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-2);
    margin-bottom: 6px;
}
.lgx-field input,
.lgx-field select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    outline: none;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
    appearance: none;
    -webkit-appearance: none;
}
.lgx-field input:focus,
.lgx-field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 90, 166, .12); }
.lgx-field small { display: block; margin-top: 5px; font-size: 11.5px; color: var(--muted-2); }
.lgx-field.has-error input,
.lgx-field.has-error select { border-color: #D24545; background: #FDF7F7; }
.lgx-field .lgx-err { display: block; margin-top: 5px; font-size: 11.5px; color: #C0392B; }

.lgx-radios { display: grid; gap: 10px; }
.lgx-radios label {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 15px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2);
    transition: border-color .2s var(--ease), background .2s var(--ease);
}
.lgx-radios label:hover { border-color: var(--blue-line); background: var(--blue-tint); }
.lgx-radios input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--blue); flex-shrink: 0; }

.lgx-trap { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.lgx-submit {
    height: 50px;
    border: none;
    border-radius: 12px;
    background: var(--blue);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(31, 90, 166, .24);
    transition: background .2s var(--ease), transform .18s var(--ease);
}
.lgx-submit:hover { background: var(--blue-dark); transform: translateY(-2px); }
.lgx-fine { font-size: 11.5px; color: var(--muted-2); line-height: 1.7; }

.lgx-done {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    background: var(--green-soft);
    border: 1px solid #BFE6CE;
    border-radius: 12px;
    padding: 18px 20px;
    color: #15603A;
    font-size: 14px;
    line-height: 1.75;
}
.lgx-done .ico { flex-shrink: 0; width: 22px; height: 22px; fill: var(--green); margin-top: 2px; }

@media (max-width: 620px) {
    .lgx-row { grid-template-columns: minmax(0, 1fr); }
    .lgx-submit { width: 100%; }
}
