
.legal-shell .tabs-glass {
    background: linear-gradient(180deg, rgba(10, 15, 27, .75), rgba(10, 15, 27, .35)), var(--glass);
    border: 1px solid rgba(160, 190, 235, .14);
    border-radius: 26px;
    padding: .95rem;
    box-shadow: 0 24px 60px rgba(4, 10, 31, .22);
    display: flex;
    gap: .4rem;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap
}

.legal-shell .tabs-glass .nav-item {
    margin: 0
}

.legal-shell .tabs-glass .nav-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .78rem 1.08rem;
    font-weight: 800;
    letter-spacing: .2px;
    color: rgba(236, 243, 255, .9);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
    transition: transform .12s, box-shadow .18s, background .18s, border .18s, color .18s
}

.legal-shell .tabs-glass .nav-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .24);
    color: #fff;
    text-decoration: none
}

.legal-shell .tabs-glass .nav-link.active {
    color: #9af557;
    background: linear-gradient(180deg, rgba(90, 134, 74, .34), rgba(58, 92, 53, .3));
    border-color: rgba(154, 245, 87, .24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 12px 28px rgba(3, 10, 33, .18), 0 0 0 1px rgba(154, 245, 87, .08);
    transform: translateY(-1px)
}

.legal-shell .tabs-glass .nav-link i {
    font-size: 1rem;
    opacity: .95;
    color: rgba(97, 199, 211, .92)
}

.legal-shell .legal-panel {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(160, 190, 235, .14);
    background: linear-gradient(180deg, rgba(10, 15, 27, .75), rgba(10, 15, 27, .35)), var(--glass);
    box-shadow: 0 24px 60px rgba(4, 10, 31, .22)
}

.legal-shell .legal-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: transparent
}

.legal-shell .legal-panel .card-body {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    background: 0 0
}

.legal-shell .legal-content {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, .3) rgba(0, 0, 0, .1);
    padding: 0 .6rem 0 0;
    color: rgba(236, 243, 255, .9)
}

.legal-shell .legal-content h2 {
    display: inline-flex;
    align-items: center;
    margin: 0 0 1.15rem;
    padding: .88rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(154, 245, 87, .24);
    background: linear-gradient(180deg, rgba(90, 134, 74, .34), rgba(58, 92, 53, .3));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 12px 28px rgba(3, 10, 33, .18), 0 0 0 1px rgba(154, 245, 87, .08);
    color: #9af557;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1
}

.legal-shell .legal-content h3 {
    margin: 1.6rem 0 .8rem;
    color: rgba(97, 199, 211, .96);
    font-size: .92rem;
    line-height: 1.2;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 800
}

.legal-shell .legal-content li,
.legal-shell .legal-content p {
    color: rgba(236, 243, 255, .9);
    line-height: 1.72;
    font-size: 1rem
}

.legal-shell .legal-content li strong,
.legal-shell .legal-content p strong {
    color: #f6fbff
}

.legal-shell .legal-content ul {
    margin: 0;
    padding-left: 1.2rem
}

.legal-shell .legal-content li+li,
.legal-shell .legal-content p+p {
    margin-top: .5rem
}

.legal-shell .tab-pane {
    margin-top: 1.2rem
}

.nav-auth .btn-easyidp {
    border: 1px solid var(--glass-b);
    padding: .65rem 1rem;
    font-weight: 800;
    letter-spacing: .3px;
    background: linear-gradient(180deg, #031938);
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(4, 34, 77, .75);
    transition: transform .12s, box-shadow .2s, filter .2s;
    white-space: nowrap
}

.nav-auth .btn-easyidp:hover {
    transform: translateY(-1px);
    color: #fff;
    filter: brightness(1.05);
    text-decoration: none;
    cursor: pointer
}

@media (max-width:767.98px) {
    .legal-shell .tabs-glass {
        border-radius: 20px;
        justify-content: flex-start
    }

    .legal-shell .tabs-glass .nav-link {
        width: 100%;
        justify-content: center
    }

    .legal-shell .legal-panel .card-body {
        padding: 1rem
    }

    .legal-shell .legal-content {
        max-height: none;
        padding: 0
    }

    .legal-shell .legal-content h2 {
        padding: .72rem 1rem;
        font-size: .96rem
    }
}

/* The six documents are the only way to move around this page, and the bar holding
   them scrolled away the moment you started reading — you had to go back to the top
   to switch document. It is pinned under the top bar instead. Once you are properly
   into a document it condenses to its icons, so it keeps its place without eating
   the reading area on a phone.

   The labels are bare text nodes next to each <i>, so there is nothing to target
   directly; font-size:0 on the link collapses them and the icon gets its size back.
   That keeps the labels in the accessibility tree — a screen reader still announces
   each tab by name — which display:none would not. */
.legal-tabs-sticky {
    position: sticky;
    top: var(--coach-nav-h, 76px);
    z-index: 1020;
    padding-top: .5rem;
    padding-bottom: .5rem;
    background: linear-gradient(180deg, rgba(10, 15, 27, .94), rgba(10, 15, 27, .74));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: padding .18s ease
}

.legal-tabs-sticky .tabs-glass .nav-link {
    transition: font-size .18s ease, padding .18s ease
}

.legal-tabs-sticky.is-condensed {
    padding-top: .25rem;
    padding-bottom: .25rem
}

.legal-tabs-sticky.is-condensed .tabs-glass .nav-link {
    font-size: 0;
    padding-left: .85rem;
    padding-right: .85rem
}

.legal-tabs-sticky.is-condensed .tabs-glass .nav-link i {
    font-size: 1rem;
    margin: 0
}

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

    .legal-tabs-sticky,
    .legal-tabs-sticky .tabs-glass .nav-link {
        transition: none
    }
}

/* On a phone the six labelled pills cannot share a line and wrapped onto three
   rows, which ate a third of the screen before a word of the document. Below the
   tablet breakpoint they are icons from the start: one row, evenly spread, each
   icon centred in a 44px square — the minimum comfortable tap target. The labels
   stay in the DOM (font-size:0, not display:none), so a screen reader still
   announces each tab by name and the accessible name of the link is unchanged. */
@media (max-width: 767.98px) {
    .legal-tabs-sticky .tabs-glass {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: .25rem
    }

    .legal-tabs-sticky .tabs-glass .nav-item {
        flex: 0 0 auto
    }

    .legal-tabs-sticky .tabs-glass .nav-link {
        font-size: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        /* The link keeps a gap meant to separate the icon from its label. The label
           is collapsed to font-size:0 but the gap is not, so it still reserved space
           to the icon's right and pushed it 5-6px off centre. */
        gap: 0
    }

    .legal-tabs-sticky .tabs-glass .nav-link i {
        font-size: .95rem;
        margin: 0;
        line-height: 1
    }
}