/* ============================================================
   Abogados.work — Páginas legales (T&C clientes, T&C abogados,
   Política de Tratamiento de Datos Personales)
   Wrapper: body.aw-legal-page

   Estructura tomada de legora.com/legal/security: título grande y
   ligero, una línea, y el texto en una columna de lectura de ~690 px
   con los números de sección colgando a su izquierda. A eso se suma el
   índice lateral que acompaña la lectura.

   Identidad de abogados.work: Visby, carbón #12161b y grafito #232a32
   sobre blanco roto; nada de morado. Las variables viven en el wrapper.

   Mobile-first: la base es el teléfono; 640 / 768 / 1100 suben.
   El tema no carga aquí (se quita en AW_Paginas_Legales), pero los
   estados :hover y :focus de botones van con especificidad propia por
   si otro plugin trae reglas genéricas.
   ============================================================ */

/* ── Visby (tres pesos oficiales del proyecto) ─────────────── */
@font-face {
    font-family: 'Visby';
    src: url('https://abogados.work/wp-content/uploads/2026/04/VisbyRegular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Visby';
    src: url('https://abogados.work/wp-content/uploads/2026/04/VisbyMedium.otf') format('opentype');
    font-weight: 500 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Visby';
    src: url('https://abogados.work/wp-content/uploads/2026/04/VisbyBold.otf') format('opentype');
    font-weight: 700 800;
    font-style: normal;
    font-display: swap;
}

/* ════════════════════════════ TOKENS ════════════════════════════ */
.aw-legal-page {
    --awl-bg:        #fafaf9;
    --awl-surface:   #ffffff;
    --awl-soft:      #f1f2f4;
    --awl-ink:       #12161b;   /* carbón: títulos, botones, texto fuerte */
    --awl-ink-2:     #232a32;   /* grafito: hover de lo oscuro */
    --awl-text:      #2a3139;   /* cuerpo del texto */
    --awl-muted:     #5b6470;   /* números, fechas, etiquetas (5,7:1 sobre el fondo) */
    --awl-line:      #e4e7eb;
    --awl-line-2:    #d3d8de;
    --awl-note-bg:   #f2f3f5;
    --awl-note-line: #bfc5cd;

    --awl-font: 'Visby', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --awl-t: .22s ease-in-out;

    --awl-wrap:    1320px;
    --awl-pad:     16px;    /* margen lateral de la página */
    --awl-gutter:  0px;     /* columna de los números (aparece desde 768) */
    --awl-measure: 690px;   /* ancho de lectura, el del referente */
    --awl-bar:     0px;     /* alto de la barra fija del índice (móvil/tableta) */

    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--awl-bg);
    color: var(--awl-text);
    font-family: var(--awl-font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
html.awl-js .aw-legal-page { --awl-bar: 53px; }

@media (min-width: 640px) {
    .aw-legal-page { --awl-pad: 24px; }
}
@media (min-width: 768px) {
    .aw-legal-page { --awl-gutter: 72px; }
}
@media (min-width: 1100px) {
    .aw-legal-page,
    html.awl-js .aw-legal-page { --awl-pad: 40px; --awl-gutter: 88px; --awl-bar: 0px; }
}

@media (prefers-reduced-motion: no-preference) {
    html:has(> body.aw-legal-page) { scroll-behavior: smooth; }
}

/* ── Reset mínimo (en :where para que cualquier componente lo gane) ── */
.aw-legal-page *,
.aw-legal-page *::before,
.aw-legal-page *::after { box-sizing: border-box; }
.aw-legal-page :where(h1, h2, h3, h4, p, ul, ol, figure) { margin: 0; }
.aw-legal-page :where(ul, ol) { padding: 0; list-style: none; }
.aw-legal-page :where(img, svg) { display: block; max-width: 100%; }
.aw-legal-page :where(a) { color: inherit; text-decoration: none; }
.aw-legal-page :where(table) { border-collapse: collapse; border-spacing: 0; }
.aw-legal-page :where(button) {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    min-height: 0;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: none;
    box-shadow: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.aw-legal-page :focus-visible { outline: 2px solid var(--awl-ink); outline-offset: 3px; border-radius: 4px; }
.aw-legal-page :focus:not(:focus-visible) { outline: none; }
/* Títulos y cláusulas reciben el foco al saltar a ellos: sin anillo. */
.aw-legal-page [tabindex="-1"]:focus { outline: none; }

.awl-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.awl-skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--awl-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: top var(--awl-t);
}
.aw-legal-page .awl-skip:focus { top: 12px; color: #fff; }

.awl-wrap {
    max-width: var(--awl-wrap);
    margin: 0 auto;
    padding-left: var(--awl-pad);
    padding-right: var(--awl-pad);
}

/* ════════════════════════════ BOTONES ════════════════════════════ */
.awl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color var(--awl-t), border-color var(--awl-t), color var(--awl-t);
}
.awl-btn--dark { background: var(--awl-ink); border-color: var(--awl-ink); color: #fff; }
.aw-legal-page .awl-btn--dark:hover,
.aw-legal-page .awl-btn--dark:focus { background: var(--awl-ink-2); border-color: var(--awl-ink-2); color: #fff; }
.aw-legal-page .awl-btn--dark:active { background: #000; border-color: #000; }

/* ════════════════════════════ CABECERA ════════════════════════════ */
.awl-head {
    position: relative;
    z-index: 40;
    background: var(--awl-bg);
    border-bottom: 1px solid var(--awl-line);
}
.awl-head__in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.awl-head__logo img { height: 24px; width: auto; }

.awl-head__burger { display: none; }
html.awl-js .awl-head__burger {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--awl-line-2);
    background: var(--awl-surface);
    color: var(--awl-ink);
    transition: border-color var(--awl-t), background-color var(--awl-t);
}
.aw-legal-page .awl-head__burger:hover,
.aw-legal-page .awl-head__burger:focus { border-color: var(--awl-ink); background: var(--awl-surface); color: var(--awl-ink); }

/* Sin JS el menú se ve siempre (y baja de fila si no cabe). */
.awl-head__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 18px;
}
html.awl-js .awl-head__nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 6px 0 10px;
}
html.awl-js .awl-head__nav.is-open { display: flex; }
html.awl-js .awl-head__nav .awl-btn { margin-top: 8px; }

.awl-head__link {
    padding: 10px 0;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--awl-text);
    transition: color var(--awl-t);
}
.aw-legal-page .awl-head__link:hover { color: var(--awl-ink); text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 768px) {
    .awl-head__in { flex-wrap: nowrap; min-height: 76px; }
    .awl-head__logo img { height: 28px; }
    html.awl-js .awl-head__burger { display: none; }
    .awl-head__nav,
    html.awl-js .awl-head__nav {
        display: flex;
        width: auto;
        flex-direction: row;
        align-items: center;
        gap: 26px;
        padding: 0;
    }
    html.awl-js .awl-head__nav .awl-btn { margin-top: 0; }
    .awl-head__link { padding: 8px 0; font-size: 14px; }
}

/* ════════════════════════════ TÍTULO ════════════════════════════ */
.awl-hero { padding-top: 24px; }
/* La línea bajo el título, dentro del margen de la página (como en el referente). */
.awl-hero::after {
    content: '';
    display: block;
    height: 1px;
    margin-top: 32px;
    background: var(--awl-line);
}

/* Pestañas entre los tres documentos: el «volver» del referente. */
.awl-docs { margin-bottom: 28px; }
/* Teléfono: las tres pestañas reparten el ancho. Desde 480, a su medida. */
.awl-docs__list {
    display: flex;
    gap: 2px;
    max-width: 100%;
    padding: 4px;
    border: 1px solid var(--awl-line);
    border-radius: 999px;
    background: var(--awl-soft);
    overflow-x: auto;
    scrollbar-width: none;
}
.awl-docs__list::-webkit-scrollbar { display: none; }
.awl-docs__list > li { flex: 1 1 auto; }
.awl-docs__tab {
    display: block;
    padding: 8px 8px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    color: var(--awl-muted);
    white-space: nowrap;
    transition: color var(--awl-t), background-color var(--awl-t);
}
@media (min-width: 480px) {
    .awl-docs__list { display: inline-flex; gap: 4px; }
    .awl-docs__list > li { flex: none; }
    .awl-docs__tab { padding: 8px 14px; font-size: 13px; }
}
.aw-legal-page .awl-docs__tab:hover { color: var(--awl-ink); background: rgba(255, 255, 255, .75); }
.aw-legal-page .awl-docs__tab.is-on {
    background: var(--awl-surface);
    color: var(--awl-ink);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(18, 22, 27, .08), 0 4px 10px -6px rgba(18, 22, 27, .3);
}

.awl-hero__eyebrow {
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--awl-muted);
}
.awl-hero__title {
    max-width: 16ch;
    font-size: clamp(36px, 8.4vw, 80px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -.03em;
    color: var(--awl-ink);
    text-wrap: balance;
    scroll-margin-top: 24px;
}

@media (min-width: 768px) {
    .awl-hero { padding-top: 48px; }
    .awl-hero::after { margin-top: 56px; }
    .awl-docs { margin-bottom: 40px; }
}

/* ════════════════════════════ REJILLA ════════════════════════════ */
.awl-grid { padding-bottom: 72px; }

@media (min-width: 1100px) {
    .awl-grid {
        display: grid;
        grid-template-columns: 248px minmax(0, 1fr);
        column-gap: 48px;
        padding-top: 40px;
        padding-bottom: 120px;
    }
}

/* ════════════════════════════ ÍNDICE ════════════════════════════
   Base (sin JS): la lista completa, normal, encima del texto.
   Móvil y tableta con JS: barra fija con la sección en curso que
   despliega la lista. Escritorio: columna fija a la izquierda. */
.awl-side { padding: 24px 0 8px; }
html.awl-js .awl-side {
    position: sticky;
    top: 0;
    z-index: 30;
    margin: 0 calc(-1 * var(--awl-pad));
    padding: 0 var(--awl-pad);
    background: rgba(250, 250, 249, .94);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--awl-line);
}

.awl-toc { position: relative; }

.awl-toc__toggle { display: none; }
html.awl-js .awl-toc__toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    text-align: left;
    color: var(--awl-ink);
}
.aw-legal-page .awl-toc__toggle:hover,
.aw-legal-page .awl-toc__toggle:focus { background: transparent; color: var(--awl-ink); }
.awl-toc__toggle-k {
    flex: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.awl-toc__toggle-v {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    color: var(--awl-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}
.awl-toc__chev { flex: none; transition: transform var(--awl-t); }
.awl-toc__toggle[aria-expanded="true"] .awl-toc__chev { transform: rotate(180deg); }

html.awl-js .awl-toc__panel {
    display: none;
    position: absolute;
    top: 100%;
    left: calc(-1 * var(--awl-pad));
    right: calc(-1 * var(--awl-pad));
    max-height: min(70vh, 560px);
    padding: 10px var(--awl-pad) 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--awl-surface);
    border-bottom: 1px solid var(--awl-line);
    box-shadow: 0 24px 40px -24px rgba(18, 22, 27, .35);
}
html.awl-js .awl-toc__panel.is-open { display: block; }

.awl-toc__title {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--awl-ink);
}
html.awl-js .awl-toc__title { display: none; }

.awl-toc__list { display: grid; gap: 1px; }
.awl-toc__link {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.35;
    color: var(--awl-muted);
    transition: color var(--awl-t), background-color var(--awl-t);
}
.awl-toc__n {
    flex: none;
    min-width: 1.5em;
    font-variant-numeric: tabular-nums;
}
.aw-legal-page .awl-toc__link:hover { color: var(--awl-ink); background: var(--awl-soft); }
.aw-legal-page .awl-toc__link.is-active { color: var(--awl-ink); font-weight: 600; background: var(--awl-soft); }

@media (min-width: 640px) {
    html.awl-js .awl-toc__panel { left: 0; right: 0; border: 1px solid var(--awl-line); border-top: 0; border-radius: 0 0 16px 16px; }
}

@media (min-width: 1100px) {
    .awl-side,
    html.awl-js .awl-side {
        position: sticky;
        top: 24px;
        align-self: start;
        display: flex;
        max-height: calc(100vh - 48px);
        margin: 0;
        padding: 0;
        background: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        border: 0;
    }
    .awl-toc { display: flex; flex-direction: column; min-height: 0; width: 100%; }
    html.awl-js .awl-toc__toggle { display: none; }
    .awl-toc__panel,
    html.awl-js .awl-toc__panel {
        display: flex;
        flex-direction: column;
        position: static;
        min-height: 0;
        max-height: none;
        padding: 0;
        overflow: hidden;
        background: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .awl-toc__title,
    html.awl-js .awl-toc__title { display: block; margin-bottom: 14px; padding-left: 15px; }

    /* La lista se desplaza sola si no cabe; la raya marca dónde va la lectura. */
    .awl-toc__list {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: var(--awl-line-2) transparent;
        border-left: 1px solid var(--awl-line);
    }
    .awl-toc__link { padding: 6px 10px 6px 14px; border-radius: 0 8px 8px 0; font-size: 13.5px; }
    .awl-toc__link::before {
        content: '';
        position: absolute;
        left: -1px;
        top: 4px;
        bottom: 4px;
        width: 2px;
        border-radius: 2px;
        background: transparent;
        transition: background-color var(--awl-t);
    }
    .aw-legal-page .awl-toc__link:hover { background: transparent; }
    .aw-legal-page .awl-toc__link.is-active { background: transparent; }
    .awl-toc__link.is-active::before { background: var(--awl-ink); }
}

/* ════════════════════════════ TEXTO ════════════════════════════ */
.awl-main {
    min-width: 0;
    max-width: calc(var(--awl-measure) + var(--awl-gutter));
    padding-top: 28px;
    padding-left: var(--awl-gutter);
}
@media (min-width: 768px) and (max-width: 1099.98px) {
    /* Tableta: la columna de lectura, centrada. */
    .awl-main { margin: 0 auto; padding-top: 40px; }
}
@media (min-width: 1100px) {
    .awl-main { padding-top: 0; }
}

.awl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--awl-muted);
}
.awl-meta__edit {
    color: var(--awl-ink);
    text-decoration: underline;
    text-decoration-color: var(--awl-line-2);
    text-underline-offset: 3px;
}
.aw-legal-page .awl-meta__edit:hover { text-decoration-color: var(--awl-ink); }

.awl-body {
    font-size: 16px;
    line-height: 1.65;
    color: var(--awl-text);
    overflow-wrap: break-word;
}
@media (min-width: 768px) {
    .awl-body { font-size: 16.5px; }
}

.awl-body p { margin: 0 0 16px; }
.awl-body strong { font-weight: 600; color: var(--awl-ink); }
.awl-body em { font-style: italic; }

.awl-body a {
    color: var(--awl-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--awl-note-line);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--awl-t);
}
.aw-legal-page .awl-body a:hover { text-decoration-color: var(--awl-ink); }

/* Secciones: el número va en su columna desde 768; antes, en línea. */
.awl-body h2 {
    position: relative;
    margin: 56px 0 20px;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.28;
    letter-spacing: -.01em;
    color: var(--awl-ink);
    scroll-margin-top: calc(var(--awl-bar) + 20px);
}
.awl-body > h2:first-child { margin-top: 0; }
.awl-body h2 .aw-legal-num { font-variant-numeric: tabular-nums; }

.awl-body .aw-legal-clause {
    position: relative;
    margin-bottom: 18px;
    scroll-margin-top: calc(var(--awl-bar) + 20px);
}
.awl-body .aw-legal-clause .aw-legal-num {
    font-weight: 500;
    color: var(--awl-muted);
    font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
    .awl-body h2 { margin-top: 72px; font-size: 24px; }
    .awl-body .aw-legal-num {
        position: absolute;
        top: 0;
        left: calc(-1 * var(--awl-gutter));
        width: calc(var(--awl-gutter) - 16px);
    }
}

/* Listas (a), (b)… (i), (ii)…: la marca literal del documento, colgada. */
.awl-body .aw-legal-list { display: grid; gap: 8px; margin: 2px 0 20px; }
.awl-body .aw-legal-list li { position: relative; padding-left: 2.6em; }
.awl-body .aw-legal-mark {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--awl-muted);
    font-variant-numeric: tabular-nums;
}

/* Notas internas del documento («PENDIENTE — …»): se publican, pero se
   distinguen del texto legal. */
.awl-body .aw-legal-pending {
    margin: 4px 0 22px;
    padding: 12px 16px;
    border: 1px dashed var(--awl-note-line);
    border-radius: 10px;
    background: var(--awl-note-bg);
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--awl-ink-2);
}
.awl-body .aw-legal-pending strong { font-size: 12.5px; letter-spacing: .06em; }

/* Datos aún por completar: «[PENDIENTE]». */
.awl-body .aw-legal-tbd {
    padding: 1px 6px;
    border-radius: 6px;
    background: #e8ebee;
    color: var(--awl-ink-2);
    font-size: .9em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* Al saltar a una sección o cláusula, un destello breve dice dónde. */
@media (prefers-reduced-motion: no-preference) {
    .awl-body :target { animation: awl-flash 1.8s ease-out; border-radius: 6px; }
}
@keyframes awl-flash {
    0%, 35% { background-color: rgba(18, 22, 27, .07); box-shadow: 0 0 0 8px rgba(18, 22, 27, .07); }
    100%    { background-color: rgba(18, 22, 27, 0);   box-shadow: 0 0 0 8px rgba(18, 22, 27, 0); }
}

/* ── Tablas ────────────────────────────────────────────────────
   Teléfono: cada fila es un bloque (la primera columna arriba en
   negrita, el resto con su etiqueta). Desde 640: tabla normal. */
.awl-body .aw-legal-table { margin: 6px 0 28px; font-size: 15px; line-height: 1.5; }
.awl-body .aw-legal-table table,
.awl-body .aw-legal-table tbody,
.awl-body .aw-legal-table tr,
.awl-body .aw-legal-table th,
.awl-body .aw-legal-table td { display: block; width: auto; }
.awl-body .aw-legal-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}
.awl-body .aw-legal-table tbody { border-top: 1px solid var(--awl-ink); }
.awl-body .aw-legal-table tr { padding: 14px 0; border-bottom: 1px solid var(--awl-line); }
.awl-body .aw-legal-table th,
.awl-body .aw-legal-table td { padding: 0; text-align: left; border: 0; }
.awl-body .aw-legal-table tbody th { margin-bottom: 4px; font-weight: 600; color: var(--awl-ink); }
.awl-body .aw-legal-table td + td { margin-top: 10px; }
.awl-body .aw-legal-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--awl-muted);
}
.awl-body .aw-legal-table--pairs td[data-label]::before { content: none; }

@media (min-width: 640px) {
    .awl-body .aw-legal-table table { display: table; width: 100%; }
    .awl-body .aw-legal-table thead {
        display: table-header-group;
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        clip-path: none;
        white-space: normal;
    }
    .awl-body .aw-legal-table tbody { display: table-row-group; border-top: 0; }
    .awl-body .aw-legal-table tr { display: table-row; padding: 0; border: 0; }
    .awl-body .aw-legal-table th,
    .awl-body .aw-legal-table td {
        display: table-cell;
        padding: 12px 18px 12px 0;
        vertical-align: top;
        border-bottom: 1px solid var(--awl-line);
    }
    .awl-body .aw-legal-table th:last-child,
    .awl-body .aw-legal-table td:last-child { padding-right: 0; }
    .awl-body .aw-legal-table thead th {
        padding-top: 0;
        padding-bottom: 10px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--awl-muted);
        border-bottom: 1px solid var(--awl-ink);
    }
    .awl-body .aw-legal-table tbody th { margin: 0; font-weight: 500; }
    .awl-body .aw-legal-table td + td { margin-top: 0; }
    .awl-body .aw-legal-table td[data-label]::before { content: none; }
    .awl-body .aw-legal-table--pairs tbody th { width: 36%; }
}

/* ════════════════════════ OTROS DOCUMENTOS ════════════════════════ */
.awl-related {
    margin-top: 64px;
    padding-top: 28px;
    border-top: 1px solid var(--awl-line);
}
.awl-related__title {
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--awl-ink);
}
.awl-related__list { display: grid; gap: 12px; }
@media (min-width: 640px) {
    .awl-related__list { grid-template-columns: 1fr 1fr; }
}
.awl-related__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 14px;
    row-gap: 4px;
    height: 100%;
    padding: 18px 18px 18px 20px;
    border: 1px solid var(--awl-line);
    border-radius: 16px;
    background: var(--awl-surface);
    transition: border-color var(--awl-t), box-shadow var(--awl-t);
}
.awl-related__k { grid-column: 1; font-size: 12px; color: var(--awl-muted); }
.awl-related__t { grid-column: 1; font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--awl-ink); }
.awl-related__go {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--awl-soft);
    color: var(--awl-ink);
    transition: background-color var(--awl-t), color var(--awl-t);
}
.aw-legal-page .awl-related__card:hover { border-color: var(--awl-ink); box-shadow: 0 12px 30px -20px rgba(18, 22, 27, .45); }
.aw-legal-page .awl-related__card:hover .awl-related__go { background: var(--awl-ink); color: #fff; }

.awl-end { margin-top: 28px; }
.awl-end__top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--awl-ink);
}
.aw-legal-page .awl-end__top:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ════════════════════════ VOLVER ARRIBA ════════════════════════ */
.awl-totop {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 50;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--awl-ink);
    color: #fff;
    /* El anillo claro lo separa del pie, que también es carbón. */
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 12px 26px -12px rgba(18, 22, 27, .6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--awl-t), transform var(--awl-t), visibility 0s linear .22s, background-color var(--awl-t);
}
.awl-totop[hidden] { display: none; }
.awl-totop.is-on {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--awl-t), transform var(--awl-t), visibility 0s, background-color var(--awl-t);
}
.aw-legal-page .awl-totop:hover,
.aw-legal-page .awl-totop:focus { background: var(--awl-ink-2); color: #fff; }
@media (min-width: 768px) {
    .awl-totop { right: 28px; bottom: 28px; }
}

/* ════════════════════════════ PIE ════════════════════════════ */
.awl-foot {
    padding: 56px 0 28px;
    background: var(--awl-ink);
    color: rgba(255, 255, 255, .72);
    font-size: 14.5px;
    line-height: 1.6;
}
.awl-foot__top { display: grid; gap: 36px; }
.awl-foot__brand img { width: auto; height: 30px; margin-bottom: 18px; }
.awl-foot__brand p { max-width: 42ch; }
.awl-foot__h {
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
}
.awl-foot__col ul { display: grid; gap: 10px; }
.awl-foot a { color: rgba(255, 255, 255, .72); transition: color var(--awl-t); }
.aw-legal-page .awl-foot a:hover,
.aw-legal-page .awl-foot a[aria-current="page"] { color: #fff; }
.aw-legal-page .awl-foot :focus-visible { outline-color: #fff; }
.awl-foot__bottom {
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 13px;
    color: rgba(255, 255, 255, .62);
}
@media (min-width: 768px) {
    .awl-foot { padding-top: 72px; }
    .awl-foot__top {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
        gap: 48px;
    }
}

/* ════════════════════════════ IMPRESIÓN ════════════════════════════ */
@media print {
    .awl-skip,
    .awl-head,
    .awl-docs,
    .awl-side,
    .awl-related,
    .awl-end,
    .awl-totop,
    .awl-foot { display: none !important; }

    .aw-legal-page { --awl-gutter: 0px; background: #fff; color: #000; font-size: 11pt; }
    .awl-grid { display: block; padding: 0; }
    .awl-main { max-width: none; padding: 0; }
    .awl-hero__title { font-size: 26pt; max-width: none; }
    .awl-body .aw-legal-num { position: static; }
    .awl-body h2 { margin-top: 18pt; break-after: avoid; }
    .awl-body a { text-decoration: none; }
}
