/* ==========================================================
   BYONPB — Shared inner-page components (Find Players, Challenges, …)
   Loads AFTER home.css (colors, header, footer, hero, buttons, FAQ, app card).
   ========================================================== */

/* Hero: slightly shorter than the home hero */
.page-hero {
    min-height: 88vh;
}

.page-hero .hero-title {
    font-size: clamp(38px, 5.2vw, 68px);
}

/* ---------- Better matching (dark panel, copy on the left) ---------- */
.fp-match .match-panel {
    grid-template-columns: 1.05fr .95fr;
}

.fp-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.fp-points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
}

.fp-points span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
}

/* ---------- How it works: 6 numbered steps ---------- */
.steps-sec {
    position: relative;
    padding: 110px 0;
    background: linear-gradient(180deg, var(--court-pale) 0%, #fff 100%);
    overflow: hidden;
}

.steps-sec::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .55;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(45, 147, 172, .12) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    -webkit-mask: linear-gradient(180deg, #000, transparent 85%);
    mask: linear-gradient(180deg, #000, transparent 85%);
}

.steps-sec .container {
    position: relative;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    counter-reset: step;
}

.step {
    --accent: var(--court);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 30px 26px 26px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--sh-sm);
    overflow: hidden;
    counter-increment: step;
    transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
}

.step:nth-child(3n+2) {
    --accent: var(--yellow-dark);
}

.step:nth-child(3n) {
    --accent: #7c3aed;
}

.step::before {
    content: counter(step, decimal-leading-zero);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent);
    transition: transform .4s var(--ease);
}

.step::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--ease);
}

.step:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-lg);
    border-color: var(--accent);
}

.step:hover::before {
    transform: rotate(-8deg) scale(1.06);
}

.step:hover::after {
    transform: scaleX(1);
}

.step strong {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.2px;
    color: var(--text);
}

.step span {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-2);
}

/* ---------- Feature rows: text + photo ---------- */
.fp-row {
    padding: 100px 0;
    background: #fff;
}

.fp-row.tint {
    background: linear-gradient(180deg, #fff 0%, var(--court-pale) 100%);
}

.fp-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.fp-split.reverse .fp-media {
    order: -1;
}

.fp-copy .p {
    max-width: 500px;
}

.fp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.fp-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--court-dark);
    background: var(--court-pale);
    border: 1px solid var(--teal-border);
}

.fp-chip svg {
    width: 16px;
    height: 16px;
    color: var(--court);
}

.fp-media {
    position: relative;
}

.fp-photo {
    border-radius: 28px;
    aspect-ratio: 4/3;
    border: 6px solid #fff;
    box-shadow: var(--sh-xl);
    transition: transform .6s var(--ease);
}

.fp-photo:hover {
    transform: translateY(-6px);
}

.fp-photo:hover img {
    transform: scale(1.05);
}

.fp-media::before {
    content: "";
    position: absolute;
    inset: auto -18px -18px auto;
    width: 60%;
    height: 60%;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--court-light), var(--yellow));
    opacity: .25;
    z-index: -1;
}

.fp-split.reverse .fp-media::before {
    inset: auto auto -18px -18px;
}

.fp-badge {
    position: absolute;
    z-index: 3;
    left: -22px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--sh-lg);
    animation: floatY 6s ease-in-out infinite;
}

.fp-split.reverse .fp-badge {
    left: auto;
    right: -22px;
}

.fp-badge i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--court);
    color: #fff;
    font-style: normal;
}

.fp-badge i svg {
    width: 18px;
    height: 18px;
}

.fp-badge b {
    display: block;
    font-size: 13px;
    line-height: 1.3;
}

.fp-badge small {
    display: block;
    font-size: 11px;
    color: var(--text-3);
}

/* ---------- Related pages: 6 cards ---------- */
.related-grid.six {
    grid-template-columns: repeat(3, 1fr);
}

.rel-card:nth-child(5) {
    --accent: #0f766e;
}

.rel-card:nth-child(6) {
    --accent: var(--court-dark);
}

/* ---------- Responsive ---------- */
@media (max-width:1000px) {
    .fp-match .match-panel {
        grid-template-columns: 1fr;
    }

    .fp-points {
        justify-content: center;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .fp-split {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .fp-split .fp-media,
    .fp-split.reverse .fp-media {
        order: -1;
        max-width: 560px;
        margin: 0 auto;
        width: 100%;
    }

    .fp-copy {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .fp-chips {
        justify-content: center;
    }

    .related-grid.six {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:768px) {

    .steps-sec,
    .fp-row {
        padding: 70px 0;
    }

    .fp-badge,
    .fp-split.reverse .fp-badge {
        left: 10px;
        right: auto;
        bottom: 14px;
    }
}

@media (max-width:540px) {
    .steps {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .step {
        padding: 22px 20px;
    }

    .fp-photo {
        border-width: 4px;
        border-radius: 22px;
    }

    .related-grid.six {
        grid-template-columns: 1fr;
    }
}

@media (hover:none) and (pointer:coarse) {

    .step:hover,
    .fp-photo:hover {
        transform: none;
    }
}

/* =========================================================
   Added for the Challenges page
   ========================================================= */

/* Match-type cards reuse .bento from home.css; this just gives the section spacing */
.types-sec {
    padding: 100px 0;
    background: #fff;
}

.types-sec .bento {
    margin-top: 0;
}

/* Timeline: sticky heading + photo on the left, numbered steps on the right */
.flow-sec {
    position: relative;
    padding: 110px 0;
    background: linear-gradient(180deg, var(--court-pale) 0%, #fff 100%);
}

.flow-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 64px;
    align-items: start;
}

.flow-aside {
    position: sticky;
    top: 110px;
}

.flow-aside .h2 {
    margin-bottom: 22px;
}

.flow-photo {
    border-radius: 26px;
    aspect-ratio: 4/3.4;
    border: 6px solid #fff;
    box-shadow: var(--sh-xl);
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    counter-reset: flow;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: linear-gradient(180deg, var(--court), var(--court-light), var(--yellow));
    opacity: .5;
    border-radius: 2px;
}

.t-step {
    --accent: var(--court);
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    align-items: start;
    counter-increment: flow;
}

.t-step:nth-child(2) {
    --accent: var(--court-dark);
}

.t-step:nth-child(3) {
    --accent: var(--yellow-dark);
}

.t-step:nth-child(4) {
    --accent: #7c3aed;
}

.t-step:nth-child(5) {
    --accent: #0f766e;
}

.t-num {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    background: var(--accent);
    border: 4px solid #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent);
    transition: transform .4s var(--ease);
}

.t-num::before {
    content: counter(flow, decimal-leading-zero);
}

.t-card {
    padding: 22px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--sh-sm);
    transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
}

.t-card strong {
    display: block;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.2px;
    margin-bottom: 6px;
}

.t-card span {
    display: block;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-2);
}

.t-step:hover .t-card {
    transform: translateX(6px);
    box-shadow: var(--sh-lg);
    border-color: var(--accent);
}

.t-step:hover .t-num {
    transform: scale(1.08) rotate(-6deg);
}

/* Related pages: 5 cards in one row */
.related-grid.five {
    grid-template-columns: repeat(5, 1fr);
}

.related-grid.five .rel-foot {
    font-size: 15.5px;
}

@media (max-width:1000px) {
    .flow-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .flow-aside {
        position: static;
        text-align: center;
    }

    .flow-photo {
        max-width: 560px;
        margin: 0 auto;
    }

    .related-grid.five {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width:768px) {

    .types-sec,
    .flow-sec {
        padding: 70px 0;
    }

    .related-grid.five {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:540px) {
    .t-step {
        grid-template-columns: 44px 1fr;
        gap: 12px;
    }

    .t-num {
        width: 44px;
        height: 44px;
        font-size: 14px;
        border-width: 3px;
    }

    .timeline::before {
        left: 21px;
    }

    .t-card {
        padding: 18px;
    }

    .related-grid.five {
        grid-template-columns: 1fr;
    }
}

@media (hover:none) and (pointer:coarse) {
    .t-step:hover .t-card {
        transform: none;
    }
}

/* =========================================================
   Added for the Open Play page
   ========================================================= */

/* Feature cards: icon + title + text, colored top edge */
.cards-sec {
    position: relative;
    padding: 110px 0;
    background: linear-gradient(180deg, var(--court-pale) 0%, #fff 100%);
    overflow: hidden;
}

.cards-sec::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .55;
    pointer-events: none;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    mask: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.cards-sec .container {
    position: relative;
}

.f-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.f-card {
    --accent: var(--court);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 28px 30px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-top: 4px solid var(--accent);
    box-shadow: var(--sh-sm);
    overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
}

.f-card:nth-child(2) {
    --accent: var(--yellow-dark);
}

.f-card:nth-child(3) {
    --accent: #7c3aed;
}

.f-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(125deg, transparent 40%, rgba(255, 255, 255, .7) 50%, transparent 60%);
    background-size: 200% 100%;
    background-position: -100% 0;
    opacity: 0;
    transition: opacity .4s;
}

.f-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sh-lg);
    border-color: var(--accent);
}

.f-card:hover::before {
    opacity: 1;
    animation: glassShine 1.2s ease forwards;
}

.f-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 22px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    transition: transform .4s var(--ease), background .3s, color .3s;
}

.f-icon svg {
    width: 26px;
    height: 26px;
}

.f-card:hover .f-icon {
    transform: rotate(-8deg) scale(1.08);
    background: var(--accent);
    color: #fff;
}

.f-card h3 {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.2px;
    margin-bottom: 10px;
}

.f-card p {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text-2);
}

.f-card .f-link {
    margin-top: auto;
    padding-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

.f-card .f-link span {
    transition: transform .3s var(--ease);
}

.f-card .f-link:hover span {
    transform: translateX(4px);
}

/* "Open spots" court graphic shown on a photo */
.spots {
    position: absolute;
    z-index: 3;
    right: -22px;
    top: 28px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--sh-lg);
    animation: floatY 6s ease-in-out infinite;
}

.spots-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 10px;
}

.spots-row {
    display: flex;
    gap: 8px;
}

.spot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--court);
    border: 2px solid #fff;
    box-shadow: var(--sh-sm);
}

.spot.open {
    background: transparent;
    color: var(--court);
    border: 2px dashed var(--court);
    box-shadow: none;
    animation: pulse 2s ease-in-out infinite;
}

@media (max-width:1000px) {
    .f-cards {
        grid-template-columns: 1fr 1fr;
    }

    .f-cards .f-card:last-child {
        grid-column: 1/-1;
    }
}

@media (max-width:768px) {
    .cards-sec {
        padding: 70px 0;
    }

    .f-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .spots {
        right: 10px;
        top: 14px;
    }
}

@media (hover:none) and (pointer:coarse) {
    .f-card:hover {
        transform: none;
    }
}

/* =========================================================
   Added for the Skill Levels page
   ========================================================= */

/* Level tiers: 3 cards that step up, each with a strength meter */
.tiers-sec {
    position: relative;
    padding: 110px 0;
    background: linear-gradient(180deg, var(--court-pale) 0%, #fff 100%);
    overflow: hidden;
}

.tiers-sec::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .55;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(45, 147, 172, .12) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    -webkit-mask: linear-gradient(180deg, #000, transparent 85%);
    mask: linear-gradient(180deg, #000, transparent 85%);
}

.tiers-sec .container {
    position: relative;
}

.tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: end;
}

.tier {
    --accent: var(--court-light);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 28px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--sh-sm);
    overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
}

.tier:nth-child(1) {
    min-height: 300px;
}

.tier:nth-child(2) {
    --accent: var(--court);
    min-height: 330px;
}

.tier:nth-child(3) {
    --accent: var(--court-dark);
    min-height: 360px;
}

.tier::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--accent), var(--yellow));
}

.tier:hover {
    transform: translateY(-8px);
    box-shadow: var(--sh-lg);
    border-color: var(--accent);
}

.tier-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.tier-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 50px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.meter {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 30px;
}

.meter i {
    width: 9px;
    border-radius: 3px;
    background: var(--border);
}

.meter i:nth-child(1) {
    height: 40%;
}

.meter i:nth-child(2) {
    height: 70%;
}

.meter i:nth-child(3) {
    height: 100%;
}

.meter i.on {
    background: var(--accent);
}

.tier h3 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.4px;
    margin-bottom: 10px;
}

.tier p {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text-2);
}

/* Related pages: 2 cards */
.related-grid.two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
    margin: 0 auto;
}

@media (max-width:1000px) {
    .tiers {
        grid-template-columns: 1fr;
        max-width: 620px;
        margin: 0 auto;
    }

    .tier:nth-child(n) {
        min-height: 0;
    }
}

@media (max-width:768px) {
    .tiers-sec {
        padding: 70px 0;
    }
}

@media (max-width:540px) {
    .related-grid.two {
        grid-template-columns: 1fr;
    }
}

@media (hover:none) and (pointer:coarse) {
    .tier:hover {
        transform: none;
    }
}

/* ================= CLUB MANAGEMENT ================= */
.club-sched {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.club-sched li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-2);
}

.club-sched b {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    padding: 3px 0;
    border-radius: 8px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--court-dark);
    background: var(--court-pale);
}

.check-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(45, 147, 172, .14);
    box-shadow: var(--sh-sm);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-2);
    transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}

.check-list li:hover {
    transform: translateX(6px);
    border-color: var(--court);
    box-shadow: var(--sh-md);
}

.check-list i {
    flex: none;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--court), var(--court-dark));
    color: #fff;
}

.check-list i svg {
    width: 14px;
    height: 14px;
}

.f-card .soon {
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #713f12;
    background: var(--yellow);
}

.related-grid.three {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width:760px) {
    .related-grid.three {
        grid-template-columns: 1fr;
    }

    .check-list li {
        font-size: 14px;
        text-align: left;
    }

    .check-list li:hover {
        transform: none;
    }
}

/* ================= LOCATION PAGES ================= */
.loc-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.loc-pill svg {
    flex: none;
    width: 30px;
    height: 30px;
    padding: 6px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--court), var(--court-dark));
    color: #fff;
}

.loc-pill b {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.loc-pill small {
    display: block;
    font-size: 11px;
    color: var(--text-2);
}

/* ================= LEGAL PAGES (Terms / Privacy) ================= */
.legal-hero {
    position: relative;
    overflow: hidden;
    padding: 150px 0 110px;
}

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

.crumbs ol {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--text-3);
}

.crumbs li+li::before {
    content: "/";
    margin-right: 8px;
    color: #cbd5e1;
}

.crumbs a {
    color: var(--court-dark);
    font-weight: 600;
}

.crumbs a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-title {
    font-size: clamp(38px, 5.4vw, 64px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.legal-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(45, 147, 172, .18);
    box-shadow: var(--sh-sm);
}

.legal-meta svg {
    width: 15px;
    height: 15px;
    color: var(--court);
}

.legal-intro {
    max-width: 68ch;
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--text-2);
}

.legal-body {
    padding: 40px 0 110px;
    background: #fff;
}

.legal-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 56px;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 22px 16px 22px 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, #fff, var(--court-pale));
    border: 1px solid rgba(45, 147, 172, .14);
    box-shadow: var(--sh-sm);
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(45, 147, 172, .3) transparent;
}

.legal-toc-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--court-dark);
    margin: 0 0 12px 8px;
}

.legal-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}

.legal-toc a {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--text-2);
    transition: background .2s, color .2s, box-shadow .2s;
}

.legal-toc .toc-num {
    flex: none;
    min-width: 22px;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.6;
    color: var(--court);
}

.legal-toc a:hover {
    background: #fff;
    color: var(--court-dark);
}

.legal-toc a.is-active {
    background: #fff;
    color: var(--court-dark);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--court), var(--sh-sm);
}

.legal-content {
    min-width: 0;
    display: grid;
    gap: 18px;
}

.legal-sec {
    padding: 30px 32px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .07);
    box-shadow: var(--sh-sm);
    transition: border-color .3s, box-shadow .3s;
}

.legal-sec:hover {
    border-color: rgba(45, 147, 172, .3);
    box-shadow: var(--sh-md);
}

.legal-sec h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: clamp(19px, 2vw, 23px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.3px;
    margin: 0 0 14px;
}

.legal-sec h2 .num {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--court), var(--court-dark));
    box-shadow: 0 6px 16px rgba(45, 147, 172, .25);
}

.legal-sec p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-2);
    max-width: 78ch;
    margin: 0 0 14px;
}

.legal-sec p:last-child {
    margin-bottom: 0;
}

.legal-sec p.legal-caps {
    font-size: 13.5px;
    line-height: 1.75;
    letter-spacing: .01em;
    color: var(--text);
    padding: 16px 18px;
    border-radius: 14px;
    background: #fffbeb;
    border-left: 3px solid var(--yellow);
}

.legal-contact {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-top: 4px;
    padding: 22px 24px;
    border-radius: 18px;
    background: var(--court-pale);
    border: 1px solid rgba(45, 147, 172, .18);
}

.legal-contact-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff;
    color: var(--court);
    box-shadow: var(--sh-sm);
}

.legal-contact-icon svg {
    width: 20px;
    height: 20px;
}

.legal-contact dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 18px;
    margin: 0;
    font-size: 14.5px;
}

.legal-contact dt {
    font-weight: 700;
    color: var(--text);
}

.legal-contact dd {
    margin: 0;
    color: var(--text-2);
}

.legal-contact a {
    color: var(--court-dark);
    font-weight: 600;
}

.legal-contact a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* sheet header + floating button (used on tablet/phone only) */
.legal-toc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.legal-toc-close {
    display: none;
}

.toc-fab,
.toc-overlay {
    display: none;
}

@media (max-width:980px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* the contents list becomes a bottom sheet */
    .legal-toc {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        z-index: 1003;
        max-height: 78vh;
        overflow-y: auto;
        padding: 0 16px 22px;
        border-radius: 24px 24px 0 0;
        background: #fff;
        border: 0;
        box-shadow: 0 -20px 60px rgba(15, 23, 42, .22);
        transform: translateY(105%);
        visibility: hidden;
        transition: transform .42s var(--ease), visibility 0s linear .42s;
    }

    .legal-toc.is-open {
        transform: none;
        visibility: visible;
        transition: transform .42s var(--ease), visibility 0s;
    }

    .legal-toc-head {
        position: sticky;
        top: 0;
        z-index: 1;
        margin: 0 -16px 8px;
        padding: 20px 20px 12px;
        background: #fff;
        border-bottom: 1px solid rgba(15, 23, 42, .06);
    }

    .legal-toc-head::before {
        content: "";
        position: absolute;
        top: 8px;
        left: 50%;
        width: 42px;
        height: 4px;
        margin-left: -21px;
        border-radius: 4px;
        background: #e2e8f0;
    }

    .legal-toc-title {
        margin: 0;
        font-size: 12px;
    }

    .legal-toc-close {
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 50%;
        background: var(--court-pale);
        color: var(--court-dark);
        cursor: pointer;
    }

    .legal-toc-close svg {
        width: 18px;
        height: 18px;
    }

    .legal-toc a {
        padding: 11px 12px;
        font-size: 14.5px;
    }

    .toc-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1002;
        background: rgba(15, 23, 42, .45);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s, visibility 0s linear .3s;
    }

    .toc-overlay.is-open {
        opacity: 1;
        visibility: visible;
        transition: opacity .3s, visibility 0s;
    }

    /* floating button */
    .toc-fab {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        position: fixed;
        left: 50%;
        bottom: calc(18px + env(safe-area-inset-bottom));
        z-index: 990;
        max-width: calc(100vw - 32px);
        padding: 12px 18px 12px 16px;
        border: 0;
        border-radius: 50px;
        font: 600 14px/1 var(--font);
        color: #fff;
        background: linear-gradient(135deg, var(--court), var(--court-dark));
        box-shadow: 0 12px 30px rgba(30, 107, 128, .35), 0 0 0 1px rgba(255, 255, 255, .15) inset;
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, 20px);
        transition: opacity .3s, transform .35s var(--ease), visibility 0s linear .35s;
    }

    .toc-fab.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
        transition: opacity .3s, transform .35s var(--ease), visibility 0s;
    }

    .toc-fab svg {
        flex: none;
        width: 18px;
        height: 18px;
    }

    .toc-fab-cur {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 48vw;
        padding-left: 10px;
        border-left: 1px solid rgba(255, 255, 255, .3);
        font-weight: 500;
        color: rgba(255, 255, 255, .88);
    }

    .toc-fab-cur:empty {
        display: none;
    }
}

@media (max-width:640px) {
    .legal-hero {
        padding: 120px 0 80px;
    }

    .legal-sec {
        padding: 22px 20px;
        border-radius: 18px;
    }

    .legal-sec h2 {
        gap: 12px;
    }

    .legal-sec h2 .num {
        width: 34px;
        height: 34px;
        font-size: 13px;
        border-radius: 10px;
    }

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

    .legal-contact dl {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .legal-contact dd {
        margin-bottom: 8px;
    }
}

.legal-list {
    list-style: none;
    margin: 4px 0 16px;
    padding: 0;
    display: grid;
    gap: 10px;
    max-width: 78ch;
}

.legal-list li {
    position: relative;
    padding: 12px 16px 12px 42px;
    border-radius: 14px;
    background: var(--court-pale);
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-2);
}

.legal-list li::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--court);
    box-shadow: 0 0 0 4px rgba(45, 147, 172, .18);
}

.legal-sec strong {
    color: var(--text);
    font-weight: 600;
}
/* A long unbreakable token (email address, URL) in a section was
   stretching the implicit grid track past the viewport on phones. */
.legal-content {
    grid-template-columns: minmax(0, 1fr);
}

.legal-sec {
    min-width: 0;
    overflow-wrap: break-word;
}

/* 10px uppercase chip was below the legible floor on phones */
.legal-hero .tag,
.legal-tag {
    font-size: 11px;
}

/* Only the slash-joined technical strings in the bullet lists need
   to break mid-token; prose keeps normal word wrapping. */
.legal-list li {
    overflow-wrap: anywhere;
    min-width: 0;
}
