/* =========================================
   VIREXIS LEGAL CENTER V1.0
   Premium institutional design
   Miguel Minier | MDesign
   ========================================= */

.vx-legal {
    --vl-navy: #0b2036;
    --vl-deep: #071827;
    --vl-blue: #126b9a;
    --vl-cyan: #72d1f4;
    --vl-ink: #17344b;
    --vl-text: #42586a;
    --vl-muted: #687f91;
    --vl-border: #dce5ed;
    --vl-surface: #f3f6f9;
    --vl-offset: 120px;
    position: relative;
    width: 100%;
    color: var(--vl-ink);
    background: var(--vl-surface);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.7;
}

.vx-legal *,
.vx-legal *::before,
.vx-legal *::after {
    box-sizing: border-box;
}

.vx-legal [hidden] {
    display: none !important;
}

.vx-legal a {
    text-decoration: none;
}

.vx-legal a:focus-visible,
.vx-legal button:focus-visible,
.vx-legal input:focus-visible {
    outline: 3px solid #258ec0;
    outline-offset: 4px;
}

.vx-legal-container {
    width: min(92%, 1440px);
    margin-inline: auto;
}

/* READING PROGRESS */

.vx-legal-reading-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 100;
    pointer-events: none;
}

.vx-legal-reading-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(
        90deg, #126b9a, #72d1f4
    );
}

/* CINEMATIC HERO */

.vx-legal-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(65px, 7vw, 115px) 0 0;
    background:
        radial-gradient(
            ellipse at 80% 20%,
            rgba(33, 115, 163, .28),
            transparent 48%
        ),
        linear-gradient(
            125deg,
            #071827 0%,
            #0d2942 60%,
            #123b58 100%
        );
    color: #fff;
}

.vx-legal-hero > .vx-legal-container {
    position: relative;
    z-index: 2;
}

.vx-legal-ambient {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.vx-legal-ambient i {
    position: absolute;
    width: 700px;
    height: 700px;
    right: -200px;
    top: -200px;
    border: 1px solid rgba(120, 204, 243, .10);
    border-radius: 50%;
}

.vx-legal-ambient i:nth-child(2) {
    width: 900px;
    height: 900px;
    right: -300px;
    top: -300px;
}

.vx-legal-ambient i:nth-child(3) {
    width: 1100px;
    height: 1100px;
    right: -400px;
    top: -400px;
}

.vx-legal-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: #b4cadb;
    font-size: 12px;
    line-height: 1.6;
}

.vx-legal-breadcrumb a {
    color: #d2e4f0;
}

.vx-legal-breadcrumb a:hover {
    color: var(--vl-cyan);
}

.vx-legal-breadcrumb [aria-current] {
    color: #fff;
}

.vx-legal-preview-notice {
    margin-top: 22px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 210, 126, .35);
    border-radius: 8px;
    background: rgba(255, 210, 126, .08);
    color: #ffe0a1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
}

.vx-legal-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: clamp(30px, 6vw, 100px);
    align-items: center;
    min-height: 320px;
    padding: 45px 0 55px;
}

.vx-legal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #8dd8f6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
}

.vx-legal-eyebrow i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #72d1f4;
    box-shadow: 0 0 18px #72d1f4;
}

.vx-legal-hero h1 {
    max-width: 1000px;
    margin: 20px 0 22px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5.4vw, 82px);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.vx-legal-hero h1 em {
    color: var(--vl-cyan);
    font-style: normal;
}

.vx-legal-hero-copy > p {
    max-width: 660px;
    margin: 0;
    color: #c1d4e4;
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.75;
}

.vx-legal-hero-symbol {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.vx-legal-hero-symbol svg {
    width: min(100%, 240px);
    height: auto;
    overflow: visible;
}

.vx-legal-hero-symbol circle {
    stroke: rgba(119, 206, 245, .23);
    stroke-width: 1;
}

.vx-legal-shield {
    fill: rgba(94, 181, 225, .08);
    stroke: #78cdef;
    stroke-width: 1.6;
}

.vx-legal-check {
    stroke: #8ddcfa;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vx-legal-hero-symbol > span {
    color: #a5c5da;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .19em;
    text-align: center;
}

/* DOCUMENT METADATA */

.vx-legal-metadata {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    border-top: 1px solid rgba(188, 218, 238, .17);
}

.vx-legal-metadata > div {
    padding: 25px 24px;
    border-right: 1px solid rgba(188, 218, 238, .12);
}

.vx-legal-metadata > div:first-child {
    padding-left: 0;
}

.vx-legal-metadata > div:last-child {
    border-right: 0;
}

.vx-legal-metadata small {
    display: block;
    margin-bottom: 6px;
    color: #a5c3d7;
    font-size: 10px;
    letter-spacing: .12em;
}

.vx-legal-metadata strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

/* DOCUMENT SWITCHER */

.vx-legal-documents {
    background: #fff;
    border-bottom: 1px solid var(--vl-border);
}

.vx-legal-documents .vx-legal-container {
    display: flex;
    gap: 45px;
}

.vx-legal-documents a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    color: #536b7e;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.vx-legal-documents a > span {
    color: #72899b;
    font-size: 11px;
}

.vx-legal-documents a.is-active,
.vx-legal-documents a:hover {
    color: var(--vl-blue);
}

.vx-legal-documents a.is-active::after {
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--vl-blue);
}

/* MAIN DOCUMENT LAYOUT */

.vx-legal-body {
    padding: clamp(35px, 5vw, 75px) 0 90px;
}

.vx-legal-layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(25px, 4vw, 65px);
}

.vx-legal-main {
    min-width: 0;
}

/* STICKY SIDEBAR */

.vx-legal-sidebar {
    position: sticky;
    top: var(--vl-offset);
    min-width: 0;
}

.vx-legal-sidebar-card {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--vl-offset) - 25px);
    padding: 25px 20px;
    border: 1px solid var(--vl-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 35px rgba(11, 32, 54, .035);
}

.vx-legal-sidebar-label {
    display: block;
    flex-shrink: 0;
    margin-bottom: 18px;
    color: var(--vl-ink);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
}

.vx-legal [data-legal-index] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 3px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #b9ccd9 transparent;
}

.vx-legal [data-legal-index] a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-left: 2px solid transparent;
    border-radius: 0 6px 6px 0;
    color: #536a7d;
    font-size: 12px;
    line-height: 1.5;
    transition:
        background .2s ease,
        color .2s ease;
}

.vx-legal [data-legal-index] a:hover,
.vx-legal [data-legal-index] a.is-active,
.vx-legal [data-legal-index] a[aria-current="location"] {
    border-left-color: #1685b7;
    background: #eaf4fa;
    color: #105f8b;
}

.vx-legal-index-number {
    flex-shrink: 0;
    color: #126b9a;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.8;
}

.vx-legal-sidebar-actions {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--vl-border);
}

.vx-legal-sidebar-actions button,
.vx-legal-sidebar-actions a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d5e4ee;
    border-radius: 8px;
    background: #f6f9fc;
    color: #165b82;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.vx-legal-sidebar-actions button:hover,
.vx-legal-sidebar-actions a:hover {
    background: #eaf4fa;
    border-color: #92bfd8;
}

.vx-legal-sidebar-actions svg {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
}

.vx-legal-sidebar-actions a span {
    margin-left: auto;
}

/* SEARCH TOOLBAR */

.vx-legal-toolbar {
    margin-bottom: 24px;
    padding: 24px 28px;
    border: 1px solid var(--vl-border);
    border-radius: 14px;
    background: #fff;
}

.vx-legal-toolbar label {
    display: block;
    margin-bottom: 10px;
    color: var(--vl-ink);
    font-size: 12px;
    font-weight: 700;
}

.vx-legal-search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid #d7e2eb;
    border-radius: 9px;
    background: #f8fafc;
}

.vx-legal-search-field:focus-within {
    border-color: #258ec0;
    box-shadow: 0 0 0 3px rgba(37, 142, 192, .09);
}

.vx-legal-search-field svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    color: #688599;
}

.vx-legal-search-field input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0;
    border: 0;
    outline: none;
    box-shadow: none;
    background: transparent;
    color: var(--vl-ink);
    font: inherit;
    font-size: 15px;
}

.vx-legal-search-field input:focus-visible {
    outline: none;
}

.vx-legal-search-field input::placeholder {
    color: #728697;
}

.vx-legal [data-legal-search-status] {
    margin: 10px 0 0;
    color: var(--vl-muted);
    font-size: 12px;
}

.vx-legal [data-legal-search-status]:empty {
    display: none;
}

/* EDITORIAL DOCUMENT */

.vx-legal-content {
    min-width: 0;
    padding: clamp(25px, 4vw, 60px);
    border: 1px solid var(--vl-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 50px rgba(11, 32, 54, .035);
    overflow-wrap: anywhere;
}

.vx-legal-content p,
.vx-legal-content li {
    color: var(--vl-text);
    font-size: 16px;
    line-height: 1.9;
}

.vx-legal-content p {
    margin: 0 0 18px;
}

.vx-legal-content > p:first-child {
    margin-bottom: 38px;
    padding: 23px 25px;
    border-left: 3px solid #258ec0;
    border-radius: 0 9px 9px 0;
    background: #eef5fa;
    color: #25465e;
    font-size: 17px;
    line-height: 1.8;
}

.vx-legal-content h2 {
    margin: 42px 0 20px;
    padding-top: 30px;
    border-top: 1px solid var(--vl-border);
    color: var(--vl-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 2.2vw, 34px);
    font-weight: 400;
    letter-spacing: -.025em;
    line-height: 1.25;
    scroll-margin-top: calc(var(--vl-offset) + 20px);
}

.vx-legal-content h3 {
    color: var(--vl-ink);
    font-size: 20px;
    line-height: 1.4;
}

.vx-legal-content h2 .vx-legal-article-number {
    display: block;
    margin-bottom: 10px;
    color: var(--vl-blue);
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.5;
}

.vx-legal-content ul,
.vx-legal-content ol {
    margin: 15px 0 25px;
    padding-left: 24px;
}

.vx-legal-content li {
    padding-left: 4px;
    margin-bottom: 8px;
}

.vx-legal-content li::marker {
    color: var(--vl-blue);
}

.vx-legal-content strong {
    color: var(--vl-ink);
    font-weight: 650;
}

.vx-legal-content a {
    color: #126b9a;
    text-decoration: underline;
    text-decoration-color: #9fc9df;
    text-underline-offset: 3px;
}

.vx-legal-content a:hover {
    text-decoration-color: #126b9a;
}

.vx-legal-content mark {
    padding: 1px 3px;
    border-radius: 3px;
    background: #d9effb;
    color: #153c58;
}

.vx-legal-content > :last-child {
    margin-bottom: 0;
}

/* CONTACT PANEL */

.vx-legal-contact {
    position: relative;
    overflow: hidden;
    margin-top: 28px;
    padding: clamp(30px, 4vw, 50px);
    border-radius: 16px;
    background:
        radial-gradient(
            ellipse at 100% 0%,
            rgba(61, 154, 202, .2),
            transparent 55%
        ),
        linear-gradient(125deg, #0b2036, #143c58);
    color: #fff;
}

.vx-legal-contact > span {
    color: #8ed6f5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
}

.vx-legal-contact h2 {
    margin: 15px 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 400;
    line-height: 1.2;
}

.vx-legal-contact p {
    max-width: 650px;
    margin: 0 0 25px;
    color: #c1d5e5;
    font-size: 15px;
}

.vx-legal-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.vx-legal-contact-actions a {
    padding: 12px 20px;
    border: 1px solid rgba(174, 216, 241, .3);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.vx-legal-contact-actions a:hover {
    background: rgba(255, 255, 255, .13);
}

/* PROTECTED DOCUMENT */

.vx-legal-protected {
    width: min(92%, 850px);
    margin: 120px auto 80px;
    padding: 35px;
}

/* TABLET */

@media (max-width: 1100px) {

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

    .vx-legal-hero-grid {
        grid-template-columns: minmax(0, 1fr) 200px;
        min-height: 280px;
    }

    .vx-legal-sidebar-card {
        padding: 20px 14px;
    }

    .vx-legal-content {
        padding: 30px;
    }
}

/* MOBILE */

@media (max-width: 767px) {

    .vx-legal {
        --vl-offset: 95px;
    }

    .vx-legal-container {
        width: 92%;
    }

    .vx-legal-hero {
        padding-top: 55px;
    }

    .vx-legal-breadcrumb {
        gap: 6px;
        font-size: 10px;
    }

    .vx-legal-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        gap: 22px;
        padding: 35px 0;
    }

    .vx-legal-hero h1 {
        margin: 17px 0;
        font-size: clamp(37px, 9vw, 56px);
    }

    .vx-legal-hero-copy > p {
        font-size: 15px;
    }

    .vx-legal-eyebrow {
        font-size: 9px;
        letter-spacing: .12em;
    }

    .vx-legal-hero-symbol {
        display: none;
    }

    .vx-legal-metadata {
        grid-template-columns: 1fr 1fr;
    }

    .vx-legal-metadata > div {
        padding: 17px 12px;
    }

    .vx-legal-metadata > div:nth-child(2) {
        border-right: 0;
    }

    .vx-legal-metadata > div:last-child {
        grid-column: 1 / -1;
        padding-left: 0;
        border-top: 1px solid rgba(188, 218, 238, .12);
    }

    .vx-legal-metadata small {
        font-size: 9px;
    }

    .vx-legal-metadata strong {
        font-size: 12px;
    }

    .vx-legal-documents .vx-legal-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .vx-legal-documents a {
        gap: 7px;
        padding: 17px 0;
        font-size: 12px;
    }

    .vx-legal-body {
        padding: 25px 0 50px;
    }

    .vx-legal-layout {
        display: block;
    }

    .vx-legal-sidebar {
        position: static;
        margin-bottom: 20px;
    }

    .vx-legal-sidebar-card {
        max-height: none;
        padding: 18px;
        border-radius: 12px;
    }

    .vx-legal [data-legal-index] {
        max-height: 240px;
    }

    .vx-legal-sidebar-actions {
        flex-direction: row;
    }

    .vx-legal-sidebar-actions button,
    .vx-legal-sidebar-actions a {
        flex: 1;
        min-width: 0;
        padding: 10px;
        font-size: 11px;
    }

    .vx-legal-toolbar {
        padding: 18px;
        margin-bottom: 18px;
    }

    .vx-legal-search-field input {
        font-size: 16px;
    }

    .vx-legal-content {
        padding: 23px 20px;
        border-radius: 12px;
    }

    .vx-legal-content p,
    .vx-legal-content li {
        font-size: 15px;
        line-height: 1.85;
    }

    .vx-legal-content > p:first-child {
        padding: 18px;
        font-size: 15px;
    }

    .vx-legal-content h2 {
        margin-top: 30px;
        padding-top: 25px;
        font-size: 26px;
    }

    .vx-legal-contact {
        padding: 25px;
        border-radius: 12px;
    }

    .vx-legal-contact-actions {
        flex-direction: column;
    }

    .vx-legal-contact-actions a {
        text-align: center;
    }
}

/* MOBILE INDEX TOGGLE - JS READY */

.vx-legal-index-toggle {
    display: none;
}

@media (max-width: 767px) {

    .vx-legal-index-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 14px;
        margin-bottom: 10px;
        border: 1px solid var(--vl-border);
        border-radius: 8px;
        background: #f6f9fc;
        color: var(--vl-ink);
        font: inherit;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .vx-legal *,
    .vx-legal *::before,
    .vx-legal *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* PRINT DOCUMENT */

@media print {

    @page {
        margin: 18mm;
    }

    body:has(.vx-legal) {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body:has(.vx-legal) header,
    body:has(.vx-legal) footer,
    body:has(.vx-legal) #wpadminbar,
    .vx-legal-sidebar,
    .vx-legal-toolbar,
    .vx-legal-documents,
    .vx-legal-reading-progress,
    .vx-legal-breadcrumb,
    .vx-legal-hero-symbol,
    .vx-legal-ambient,
    .vx-legal-contact {
        display: none !important;
    }

    .vx-legal,
    .vx-legal-hero,
    .vx-legal-body {
        background: #fff !important;
        color: #000 !important;
        padding: 0 !important;
    }

    .vx-legal-container {
        width: 100% !important;
        max-width: none !important;
    }

    .vx-legal-layout,
    .vx-legal-hero-grid {
        display: block !important;
        min-height: 0 !important;
        padding: 0 !important;
    }

    .vx-legal-hero h1 {
        color: #000 !important;
        font-size: 28pt !important;
        margin: 12pt 0 !important;
    }

    .vx-legal-hero h1 em,
    .vx-legal-eyebrow,
    .vx-legal-hero-copy p,
    .vx-legal-metadata small,
    .vx-legal-metadata strong {
        color: #333 !important;
    }

    .vx-legal-metadata {
        margin-bottom: 15pt;
        border-top: 1px solid #aaa;
        border-bottom: 1px solid #aaa;
    }

    .vx-legal-metadata > div {
        padding: 8pt !important;
    }

    .vx-legal-content {
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .vx-legal-content p,
    .vx-legal-content li {
        color: #111 !important;
        font-size: 10.5pt !important;
        line-height: 1.6 !important;
        orphans: 3;
        widows: 3;
    }

    .vx-legal-content h2 {
        color: #000 !important;
        font-size: 17pt !important;
        break-after: avoid;
        page-break-after: avoid;
        margin-top: 20pt !important;
        padding-top: 10pt !important;
    }

    .vx-legal-content h2 .vx-legal-article-number {
        color: #333 !important;
    }

    .vx-legal-content > p:first-child {
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    .vx-legal-content a {
        color: #111 !important;
    }

    .vx-legal-content mark {
        background: transparent !important;
        color: inherit !important;
    }

    .vx-legal-content [hidden] {
        display: revert !important;
    }

    .vx-legal-preview-notice {
        color: #000 !important;
        border: 1px solid #555 !important;
        background: #fff !important;
    }
}

/* END VIREXIS LEGAL CENTER V1.0 */
