/*
 * CircleZone customer web app. Same identity as the admin panel (public/brand/index.html):
 * ink and Nile blue, gold only for collateral, Reem Kufi for names and figures.
 * Mobile first; on wider screens the app stays one comfortable column.
 * Plain CSS, no build step (cPanel).
 */

:root {
    --ink: #0a2533;
    --ink-2: #123a50;
    --nile: #0b6e8a;
    --nile-deep: #08566d;
    --nile-soft: #6fbfd2;
    --nile-bright: #38b6d6;
    --mist: #e3f1f5;
    --gold: #e0a526;
    --gold-ring: #a87508;

    --page: #edf2f4;
    --surface: #ffffff;
    --line: #d5e0e5;
    --text: #0a2533;
    --muted: #506975;

    --ok: #137f5c;
    --ok-bg: #e9f7f1;
    --bad: #b8324a;
    --bad-bg: #fcedef;
    --warn: #8a4b06;
    --warn-bg: #fef3dc;

    --radius: 14px;
    --display: 'Reem Kufi', 'IBM Plex Sans Arabic', sans-serif;
    --body: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --tabbar-h: 64px;

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --page: #0a1620;
        --surface: #12202b;
        --line: #24384a;
        --text: #e6f1f5;
        --muted: #97afbb;
        --mist: #173040;
        --nile: #38b6d6;
        --nile-deep: #6fcbe2;
        --gold-ring: #e0a526;
        --ok: #5fd3a6;
        --ok-bg: rgba(23, 147, 106, 0.16);
        --bad: #f59aa9;
        --bad-bg: rgba(200, 57, 79, 0.16);
        --warn: #f6c76b;
        --warn-bg: rgba(224, 165, 38, 0.14);
        color-scheme: dark;
    }
}

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

html {
    -webkit-text-size-adjust: 100%;
    background: var(--page);
}

body {
    margin: 0;
    min-height: 100dvh;
    font: 400 16px/1.6 var(--body);
    color: var(--text);
    background: var(--page);
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 {
    margin: 0;
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.3;
}

p {
    margin: 0;
}

a {
    color: var(--nile);
}

img {
    max-width: 100%;
}

:focus-visible {
    outline: 2px solid var(--nile);
    outline-offset: 2px;
}

.topbar :focus-visible,
.login-hero :focus-visible {
    outline-color: var(--nile-bright);
}

.skip {
    position: absolute;
    inset-inline-start: 8px;
    top: -60px;
    z-index: 50;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
}

.skip:focus {
    top: 8px;
}

/* Latin runs and numbers keep their order inside Arabic text */
.num {
    font-family: var(--display);
    font-weight: 600;
    direction: ltr;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
}

.ltr {
    direction: ltr;
    unicode-bidi: isolate;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 14px;
}

/* ---------------------------------------------------------------- shell */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 8px 16px;
    padding-top: max(8px, env(safe-area-inset-top));
    background: var(--ink);
    color: #fff;
}

.lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: #fff;
    text-decoration: none;
    font-family: var(--display);
    font-weight: 700;
    font-size: 19px;
}

.topbar-title {
    font-size: 14px;
    color: #a9c8d3;
}

.page {
    width: 100%;
    max-width: 34rem;
    margin: 0 auto;
    padding: 16px 16px calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom));
    outline: none;
}

.is-guest .page {
    max-width: none;
    padding: 0;
}

.tabbar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr; /* three tabs for customers, four for merchants */
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 44px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.tabbar svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tabbar a.is-active {
    color: var(--nile);
}

.tabbar a.is-active span {
    font-weight: 700;
}

@media (min-width: 640px) {
    .tabbar {
        inset-inline: 50%;
        width: 34rem;
        transform: translateX(50%);
        border: 1px solid var(--line);
        border-bottom: 0;
        border-radius: 16px 16px 0 0;
    }
}

/* ---------------------------------------------------------------- building blocks */
.stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-title {
    margin: 20px 0 10px;
    font-size: 18px;
}

.card {
    padding: 16px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
}

.card + .card {
    margin-top: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    font: 700 16px var(--body);
    text-decoration: none;
    cursor: pointer;
    background: var(--nile);
    color: #fff;
    transition: filter 0.15s ease;
    touch-action: manipulation;
}

.btn:hover {
    filter: brightness(1.06);
}

.btn:disabled,
.btn[aria-disabled='true'] {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-block {
    width: 100%;
}

.btn-ghost {
    background: transparent;
    color: var(--nile);
    border: 1.5px solid var(--line);
}

.btn-danger {
    background: transparent;
    color: var(--bad);
    border: 1.5px solid var(--bad-bg);
}

@media (prefers-color-scheme: dark) {
    .btn { color: #06222d; }
    .btn-ghost, .btn-danger { color: var(--nile); }
    .btn-danger { color: var(--bad); }
}

.btn-row {
    display: flex;
    gap: 10px;
}

.btn-row > * {
    flex: 1;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--nile);
    font: 600 15px var(--body);
    cursor: pointer;
}

/* ---------------------------------------------------------------- forms */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field + .field {
    margin-top: 14px;
}

.label {
    font-weight: 600;
    font-size: 15px;
}

.hint {
    font-size: 14px;
    color: var(--muted);
}

.input,
.textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    font: 500 16px var(--body); /* 16px stops iOS from zooming in */
    color: var(--text);
    background: var(--surface);
}

.textarea {
    min-height: 96px;
    resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
    color: var(--muted);
    opacity: 0.6;
}

.input:focus,
.textarea:focus {
    outline: none;
    border-color: var(--nile);
    box-shadow: 0 0 0 3px rgba(11, 110, 138, 0.18);
}

.input[aria-invalid='true'],
.textarea[aria-invalid='true'] {
    border-color: var(--bad);
}

.input-num {
    font-family: var(--display);
    font-size: 22px;
    direction: ltr;
    text-align: right;
}

.error {
    font-size: 14px;
    font-weight: 600;
    color: var(--bad);
}

.file-drop {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 12px 14px;
    border: 1.5px dashed var(--line);
    border-radius: 12px;
    cursor: pointer;
}

.file-drop input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.file-drop:focus-within {
    border-color: var(--nile);
}

.file-drop img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}

/* ---------------------------------------------------------------- notices */
.notice {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15px;
    background: var(--mist);
}

.notice-bad { background: var(--bad-bg); color: var(--bad); font-weight: 600; }
.notice-ok { background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.notice-warn { background: var(--warn-bg); color: var(--warn); }

.empty {
    padding: 36px 16px;
    text-align: center;
    color: var(--muted);
}

.empty strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 17px;
}

/* ---------------------------------------------------------------- buy / sell switch */
.seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.seg a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 10px;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
}

.seg a[aria-current='page'] {
    background: var(--ink);
    color: #fff;
}

@media (prefers-color-scheme: dark) {
    .seg a[aria-current='page'] { background: var(--nile); color: #06222d; }
}

/* ---------------------------------------------------------------- offers */
.offer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
}

.offer + .offer {
    margin-top: 10px;
}

.offer:hover {
    border-color: var(--nile-soft);
}

.offer-name {
    font-weight: 700;
    font-size: 17px;
}

.offer-price {
    grid-row: span 2;
    align-self: center;
    text-align: end;
}

.offer-price .num {
    display: block;
    font-size: 22px;
    line-height: 1.2;
}

.offer-price small {
    color: var(--muted);
    font-size: 13px;
}

.offer-meta {
    font-size: 14px;
    color: var(--muted);
}

.offer-foot {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 4px;
    font-size: 14px;
    color: var(--muted);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    background: var(--mist);
    color: var(--text);
}

/* the collateral shield: gold is used for collateral only */
.shield {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--muted);
}

.shield::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    flex: none;
}

/* ---------------------------------------------------------------- key / value lists */
.kv {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    margin: 0;
}

.kv dt {
    color: var(--muted);
    font-size: 15px;
}

.kv dd {
    margin: 0;
    text-align: left; /* the far edge in this RTL app, also for LTR values like @username and numbers */
    font-weight: 600;
    overflow-wrap: anywhere;
}

.big-figure {
    font-family: var(--display);
    font-weight: 700;
    font-size: 30px;
    line-height: 1.2;
    direction: ltr;
    unicode-bidi: isolate;
}

.copy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--page);
}

.copy-row code {
    font: 600 16px var(--body);
    direction: ltr;
    unicode-bidi: isolate;
    overflow-wrap: anywhere;
}

.copy-btn {
    flex: none;
    min-height: 44px;
    min-width: 64px;
    padding: 0 12px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--nile);
    font: 700 14px var(--body);
    cursor: pointer;
}

.bank {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.bank + .bank {
    margin-top: 8px;
}

/* ---------------------------------------------------------------- order status */
.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    background: var(--mist);
    color: var(--text);
    white-space: nowrap;
}

.status-success { background: var(--ok-bg); color: var(--ok); }
.status-danger { background: var(--bad-bg); color: var(--bad); }
.status-warning { background: var(--warn-bg); color: var(--warn); }

/* the order's four steps: a real sequence, so it is numbered */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 14px 0 4px;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    text-align: center;
    color: var(--muted);
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font: 700 14px var(--display);
    background: var(--page);
    border: 1.5px solid var(--line);
}

.steps li.done::before {
    content: '✓';
    background: var(--nile);
    border-color: var(--nile);
    color: #fff;
}

.steps li.now {
    color: var(--text);
    font-weight: 700;
}

.steps li.now::before {
    border-color: var(--nile);
    color: var(--nile);
    box-shadow: 0 0 0 3px rgba(11, 110, 138, 0.15);
}

.deadline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--warn-bg);
    color: var(--warn);
    font-weight: 600;
}

.order-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
}

.order-row + .order-row {
    margin-top: 10px;
}

.order-row .status {
    align-self: start;
    justify-self: end;
}

.stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 6px;
}

.stars button {
    width: 48px;
    height: 48px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    font-size: 22px;
    cursor: pointer;
    filter: grayscale(1);
    opacity: 0.6;
}

.stars button.on {
    filter: none;
    opacity: 1;
    border-color: var(--gold);
}

/* ---------------------------------------------------------------- sign in */
.login {
    display: grid;
    min-height: 100dvh;
    grid-template-rows: auto 1fr;
}

.login-hero {
    position: relative;
    overflow: hidden;
    padding: 40px 24px 36px;
    padding-top: max(40px, env(safe-area-inset-top));
    background: var(--ink);
    color: #fff;
}

/* the ring motif, bleeding off the corner */
.login-hero::before,
.login-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(111, 191, 210, 0.22);
    pointer-events: none;
}

.login-hero::before {
    width: 340px;
    height: 340px;
    inset-inline-start: -120px;
    top: -150px;
}

.login-hero::after {
    width: 560px;
    height: 560px;
    inset-inline-start: -230px;
    top: -260px;
    border-color: rgba(111, 191, 210, 0.1);
}

.login-hero > * {
    position: relative;
}

.login-hero img {
    width: 64px;
    height: 64px;
}

.login-hero h1 {
    margin-top: 14px;
    font-size: 32px;
}

.login-hero p {
    margin-top: 6px;
    max-width: 24rem;
    color: #a9c8d3;
}

.login-body {
    width: 100%;
    max-width: 30rem;
    margin: 0 auto;
    padding: 24px 16px 32px;
}

.tg-btn {
    background: #229ed9; /* Telegram's own blue, so the action reads as "open Telegram" */
    color: #fff;
}

@media (prefers-color-scheme: dark) {
    .tg-btn { color: #fff; }
}

.how {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: how;
}

.how li {
    position: relative;
    padding-inline-start: 36px;
    min-height: 28px;
    font-size: 15px;
}

.how li + li {
    margin-top: 10px;
}

.how li::before {
    counter-increment: how;
    content: counter(how);
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font: 700 13px var(--display);
    background: var(--mist);
    color: var(--nile);
}

.spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2.5px solid currentColor;
    border-inline-end-color: transparent;
    animation: spin 0.8s linear infinite;
    flex: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (min-width: 900px) {
    .login {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
    }

    .login-hero {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 64px;
    }

    .login-hero h1 {
        font-size: 44px;
    }

    .login-body {
        align-self: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================================================ merchant side */
.m-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.online-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 99px;
    border: 1.5px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font: 700 15px var(--body);
    cursor: pointer;
    white-space: nowrap;
}

.online-switch .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--muted);
}

.online-switch.is-on {
    color: var(--ok);
    border-color: var(--ok);
    background: var(--ok-bg);
}

.online-switch.is-on .dot {
    background: var(--ok);
    box-shadow: 0 0 0 4px rgba(19, 127, 92, 0.18);
}

/* collateral: the ring is the one place gold is used */
.collateral-card {
    display: flex;
    align-items: center;
    gap: 16px;
    color: inherit;
    text-decoration: none;
}

.ring {
    position: relative;
    flex: none;
    width: 76px;
    height: 76px;
}

.ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring circle {
    fill: none;
    stroke-width: 4;
}

.ring-track {
    stroke: var(--mist);
}

.ring-value {
    stroke: var(--gold-ring);
    stroke-linecap: round;
    stroke-dasharray: var(--p) 100;
}

.ring.is-empty .ring-value {
    stroke-opacity: 0;
}

.ring > .num {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    font-size: 16px;
}

.quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.quick a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 64px;
    padding: 8px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    text-align: center;
    font-size: 14px;
}

.quick .num {
    color: var(--nile);
}

.order-row.is-yours {
    border-color: var(--gold);
    box-shadow: inset -4px 0 0 var(--gold); /* RTL: marked on the reading edge */
}

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

/* the pill is the span after the hidden input, so the selected state works without :has() */
.radio-row label {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.radio-row label > span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: var(--surface);
    font-weight: 600;
}

.radio-row input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.radio-row input:checked + span {
    border-color: var(--nile);
    color: var(--nile);
    background: var(--mist);
}

.radio-row input:focus-visible + span {
    outline: 2px solid var(--nile);
    outline-offset: 2px;
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.row-actions .btn {
    min-height: 44px;
    padding: 0 14px;
    font-size: 15px;
}

.ledger-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}

.ledger-row:last-child {
    border-bottom: 0;
}

.plus { color: var(--ok); }
.minus { color: var(--bad); }

.proof-img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    margin-top: 10px;
    border-radius: 12px;
    background: var(--page);
    border: 1px solid var(--line);
}

.check-list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-inline-start: 28px;
    min-height: 26px;
}

.check-list li + li {
    margin-top: 8px;
}

.check-list li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid var(--nile);
}

/* the sign-in confirmation number, matched in the bot */
.login-code {
    display: grid;
    justify-items: center;
    gap: 2px;
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 14px;
    border: 1.5px dashed var(--nile-soft);
    background: var(--surface);
    font-weight: 600;
}

.login-code strong {
    font-size: 44px;
    line-height: 1.1;
    color: var(--nile);
    letter-spacing: 0.08em;
}

/* visible only to screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* in dark mode the ink top bar and the page are close: a hairline keeps them apart */
@media (prefers-color-scheme: dark) {
    .topbar {
        border-bottom: 1px solid var(--line);
    }
}

/* ================================================================ terms and privacy pages */
.legal {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 20px 16px;
}

.legal h1 {
    font-size: 26px;
}

.legal-body h2 {
    margin: 24px 0 6px;
    font-size: 18px;
}

.legal-body p,
.legal-body li {
    line-height: 1.9;
    max-width: 38rem;
}

.legal-body ul {
    margin: 6px 0;
    padding-inline-start: 22px;
}

.legal-nav {
    display: flex;
    gap: 4px;
}

.legal-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    color: #c3d8e0;
    text-decoration: none;
    font-weight: 600;
}

.legal-nav a[aria-current='page'] {
    background: rgba(56, 182, 214, 0.18);
    color: #fff;
}

/* a checkbox with its sentence, big enough to hit */
.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 44px;
    cursor: pointer;
    font-size: 15px;
}

.check input {
    flex: none;
    width: 22px;
    height: 22px;
    margin: 2px 0 0;
    accent-color: var(--nile);
}

/* Elements marked hidden stay hidden even when a component class sets display. */
[hidden] { display: none !important; }
