.ve-legal-page {
    --ve-bg: #020617;
    --ve-surface: #0b1220;
    --ve-line: #29364a;
    --ve-accent: #38bdf8;
    --ve-text: #f8fafc;
    --ve-copy: #d1dbe8;
    --ve-muted: #a5b4c8;
    margin: 0;
    background: var(--ve-bg);
    color: var(--ve-text);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.ve-legal-page .ve-legal-container {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

.ve-legal-header a,
.ve-legal-footer a,
.ve-legal-page :where(#contenido) a,
.ve-legal-page .ve-legal-skip {
    color: var(--ve-accent);
    text-underline-offset: 0.22em;
}

.ve-legal-header a:focus-visible,
.ve-legal-footer a:focus-visible,
.ve-legal-page :where(#contenido) a:focus-visible,
.ve-legal-page .ve-legal-skip:focus-visible {
    outline: 2px solid var(--ve-accent);
    outline-offset: 5px;
    border-radius: 3px;
}

.ve-legal-skip {
    position: absolute;
    z-index: 100;
    top: 10px;
    left: 12px;
    padding: 12px 16px;
    background: var(--ve-bg);
    transform: translateY(-150%);
}

.ve-legal-skip:focus {
    transform: translateY(0);
}

.ve-legal-header,
.ve-legal-footer {
    border-color: var(--ve-line);
    border-style: solid;
    border-width: 0 0 1px;
    background: var(--ve-bg);
}

.ve-legal-header-inner,
.ve-legal-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ve-legal-header-inner {
    min-height: 72px;
}

.ve-legal-page .ve-legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ve-text);
    text-decoration: none;
}

.ve-legal-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.ve-legal-brand strong,
.ve-legal-brand small {
    display: block;
    letter-spacing: 0.12em;
}

.ve-legal-brand strong {
    font-size: 1rem;
    font-weight: 800;
}

.ve-legal-brand strong span {
    color: var(--ve-accent);
}

.ve-legal-brand small {
    color: var(--ve-muted);
    font-size: 0.65rem;
    white-space: nowrap;
    text-transform: uppercase;
}

.ve-legal-page .ve-legal-client {
    padding: 8px 15px;
    border: 1px solid var(--ve-line);
    border-radius: 999px;
    color: var(--ve-text);
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
}

.ve-legal-page .ve-legal-client:hover {
    border-color: var(--ve-accent);
    color: var(--ve-accent);
}

.ve-legal-hero {
    margin-block: clamp(32px, 6vw, 80px) 32px;
    padding: clamp(28px, 6vw, 68px);
    border: 1px solid var(--ve-line);
    border-radius: 26px;
    background: radial-gradient(ellipse at 100% 0, #113c57 0, var(--ve-surface) 59%);
}

.ve-legal-page .ve-legal-hero h1 {
    margin: 0;
    color: var(--ve-text);
    font-family: inherit;
    font-size: clamp(2rem, 5.3vw, 4.05rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.ve-legal-layout {
    display: grid;
    grid-template-columns: minmax(190px, 238px) minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    margin-bottom: clamp(44px, 7vw, 90px);
}

.ve-legal-index {
    position: sticky;
    top: 24px;
    padding: 16px;
    border: 1px solid var(--ve-line);
    border-radius: 18px;
    background: var(--ve-surface);
}

.ve-legal-index ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ve-legal-page .ve-legal-index a {
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--ve-copy);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.ve-legal-page .ve-legal-index a:hover {
    background: #14243a;
    color: var(--ve-accent);
}

.ve-legal-page .ve-legal-index .ve-legal-contact {
    margin-top: 10px;
    padding-top: 13px;
    border-top: 1px solid var(--ve-line);
    border-radius: 0;
    color: var(--ve-accent);
    font-size: 0.83rem;
    overflow-wrap: anywhere;
}

.ve-legal-documents {
    min-width: 0;
}

.ve-legal-document {
    padding: clamp(20px, 4.3vw, 52px);
    border: 1px solid var(--ve-line);
    border-radius: 22px;
    background: var(--ve-surface);
    scroll-margin-top: 24px;
}

.ve-legal-document + .ve-legal-document {
    margin-top: 26px;
}

.ve-legal-page .ve-legal-document h2 {
    margin: 0 0 24px;
    color: var(--ve-text);
    font-family: inherit;
    font-size: clamp(1.4rem, 3.2vw, 2.25rem);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.ve-legal-copy {
    max-width: 72ch;
    color: var(--ve-copy);
    font-size: 1rem;
    line-height: 1.78;
    overflow-wrap: anywhere;
}

.ve-legal-copy b,
.ve-legal-copy strong {
    color: var(--ve-text);
    font-weight: 750;
}

.ve-legal-footer {
    border-width: 1px 0 0;
}

.ve-legal-footer-inner {
    padding-block: 24px;
    color: var(--ve-muted);
    font-size: 0.88rem;
}

@media (max-width: 740px) {
    .ve-legal-page .ve-legal-container {
        width: calc(100% - 32px);
    }

    .ve-legal-hero {
        margin-bottom: 20px;
    }

    .ve-legal-break {
        display: none;
    }

    .ve-legal-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .ve-legal-index {
        position: static;
    }

    .ve-legal-footer-inner {
        flex-wrap: wrap;
        gap: 8px 20px;
    }
}


@media (max-width: 360px) {
    .ve-legal-header-inner,
    .ve-legal-page .ve-legal-brand {
        gap: 8px;
    }

    .ve-legal-brand img {
        width: 36px;
        height: 36px;
    }

    .ve-legal-page .ve-legal-client {
        padding-inline: 10px;
    }
}
