/* The transverse screens: the errors, the legal pages, the request follow-up and the e-mails block
   of the profile. Prefixed gx-. */

:root {
    --gx-slate: #8E99AB;
    --gx-warn: #F0C030;
    --gx-err: #F06A75;
    --gx-info: #34A4E0;
}

/* The errors are drawn in entry.css, with the sign-in pages. */

/* The public shell is drawn in entry.css, with the sign-in pages. */

/* ── 123 · the legal pages ─────────────────────────────────────── */

.gx-legal { display: flex; flex-direction: column; gap: 18px; }

.gx-legal__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.gx-legal__eyebrow {
    font: 700 11px/1 var(--font-condensed);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--thonon-yellow, #F0C030);
}

.gx-legal__title {
    margin: 10px 0 0;
    font: 700 28px/1.1 var(--font-condensed);
    text-transform: uppercase;
    color: #fff;
}

.gx-legal__sub { margin: 8px 0 0; font-size: 13px; color: var(--dark-fg-3); }

.gx-legal__tabs { display: flex; flex-wrap: wrap; gap: 6px; }

.gx-legal__tab {
    padding: 8px 12px;
    border: 1px solid var(--dark-border-1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--dark-fg-2);
    font: 700 11px/1 var(--font-condensed);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.gx-legal__tab--on {
    border-color: rgba(240, 192, 48, 0.40);
    background: rgba(240, 192, 48, 0.14);
    color: var(--thonon-yellow, #F0C030);
}

.gx-legal__grid {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    border: 1px solid var(--dark-border-1);
    border-radius: 8px;
    background: var(--thonon-night, #101216);
}

.gx-legal__toc {
    position: sticky;
    top: 64px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 16px 16px 20px;
    border-right: 1px solid var(--dark-border-1);
}

.gx-legal__toc-title {
    margin-bottom: 8px;
    font: 700 10px/1 var(--font-condensed);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gx-legal__toc-link {
    display: flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 10px;
    border-left: 2px solid transparent;
    border-radius: 5px;
    color: var(--dark-fg-2);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.gx-legal__toc-link:hover { border-left-color: var(--thonon-yellow, #F0C030); background: rgba(255, 255, 255, 0.05); color: #fff; }

.gx-legal__toc-note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--dark-fg-3); }

.gx-legal__body {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 760px;
    padding: 20px 26px 26px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--dark-fg-1);
}

.gx-legal__section { scroll-margin-top: 72px; }

.gx-legal__section-title {
    margin: 0 0 10px;
    font: 700 15px/1.2 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.gx-legal__section h3 { margin: 16px 0 6px; font-size: 14px; color: #fff; }
.gx-legal__section p { margin: 0 0 10px; }
.gx-legal__section ul,
.gx-legal__section ol { margin: 0 0 10px; padding-left: 22px; }
.gx-legal__section li + li { margin-top: 5px; }
.gx-legal__section strong { color: #fff; font-weight: 600; }

.gx-legal__table { margin: 4px 0 12px; overflow-x: auto; }
.gx-legal__table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gx-legal__table th,
.gx-legal__table td { padding: 8px 10px; border-bottom: 1px solid var(--dark-border-1); text-align: left; vertical-align: top; }
.gx-legal__table th { font: 700 11px/1.2 var(--font-condensed); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark-fg-3); }
.gx-legal__table td:first-child { color: var(--dark-fg-2); white-space: nowrap; }

/* A club document: the page's frame, the banner, then a column of
   text with its contents in a rail on its left, no card around it. */
.gx-legal--club {
    gap: 28px;
    padding: 32px 40px 56px;
}

.gx-legal__hero-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gx-legal--club .gx-legal__grid {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
    border: 0;
    background: none;
}

.gx-legal--club .gx-legal__toc {
    top: 76px;
    padding: 0;
    border-right: 0;
}

.gx-legal--club .gx-legal__toc-title {
    margin: 0 10px 10px;
    font-size: 12px;
}

.gx-legal--club .gx-legal__toc-link {
    min-height: 44px;
    border-left: 0;
    border-radius: var(--radius-control);
    font-size: 14px;
    font-weight: 400;
}

.gx-legal--club .gx-legal__toc-link:hover { background: var(--thonon-surface-2); }

.gx-legal--club .gx-legal__body {
    max-width: 820px;
    padding: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-fg-2);
}

.gx-legal--club .gx-legal__section-title {
    margin-bottom: 14px;
    font: 800 22px/1.2 var(--font-condensed);
    letter-spacing: 0.02em;
}

.gx-legal__note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--dark-border-1);
    border-radius: var(--radius-card);
    background: var(--thonon-surface-2);
    font-size: 14px;
    color: var(--dark-fg-2);
}

.gx-legal__note svg { flex-shrink: 0; margin-top: 2px; fill: var(--thonon-blue-bright); }
.gx-legal__note a { color: var(--thonon-blue-bright); }

.gx-legal__lead {
    margin-bottom: 22px;
    font-size: 1.02rem;
    line-height: 1.7;
}

.gx-blank {
    padding: 0 3px;
    border-radius: 3px;
    background: rgba(240, 192, 48, 0.16);
    color: var(--thonon-yellow, #F0C030);
}

@media (max-width: 900px) {
    .gx-legal__grid { grid-template-columns: minmax(0, 1fr); }
    .gx-legal__toc { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--dark-border-1); }
    .gx-legal__body { padding: 16px; }
    .gx-legal__table td:first-child { white-space: normal; }
}

@media (max-width: 1099px) {
    .gx-legal--club { gap: 24px; padding: 24px 24px 40px; }
    .gx-legal--club .gx-legal__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .gx-legal--club .gx-legal__toc { position: static; max-height: none; border-bottom: 1px solid var(--dark-border-1); padding-bottom: 12px; }
    .gx-legal--club .gx-legal__body { padding: 0; }
}

@media (max-width: 699px) {
    .gx-legal--club { gap: 22px; padding: 20px 16px 32px; }
}

/* ── 125 · what the profile receives by e-mail ─────────────────── */

.gx-mails__eyebrow {
    margin-bottom: 8px;
    font: 700 10px/1 var(--font-condensed);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--thonon-yellow, #F0C030);
}

.gx-mails {
    display: flex;
    flex-direction: column;
    margin: 12px 0 14px;
    padding: 0;
    list-style: none;
}

/* A row per family, its switch on the right. */
.gx-mails__item {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 56px;
    padding: 10px 0;
    border-bottom: 1px solid var(--dark-border-1);
}

.gx-mails__item:last-child { border-bottom: 0; }
.gx-mails__item > svg { display: none; }
.gx-mails__title { font-size: 16px; font-weight: 600; color: #fff; }
.gx-mails__text { margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--dark-fg-3); }
.gx-mails__body { flex: 1; min-width: 0; }
.gx-mails__note { margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--dark-fg-3); }
.gx-mails__item--greyed .gx-mails__title { color: var(--dark-fg-2); }
label.gx-mails__title { cursor: pointer; }
.gx-mails__item--greyed label.gx-mails__title { cursor: default; }

/* A switch: on is the club's blue, off a dark track; greyed when it cannot be moved. 52 × 30, in a
   44 px row at least. */
.gx-switch {
    appearance: none;
    flex-shrink: 0;
    position: relative;
    width: 52px;
    height: 30px;
    margin: 7px 0;
    border: 0;
    border-radius: 999px;
    background: var(--dark-border-2);
    cursor: pointer;
    transition: background 0.15s ease;
}

.gx-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.15s ease;
}

.gx-switch:checked { background: var(--thonon-blue); }
.gx-switch:checked::after { transform: translateX(22px); }
.gx-switch:focus-visible { outline: 2px solid var(--thonon-yellow, #F0C030); outline-offset: 2px; }
.gx-switch:disabled { opacity: 0.55; }

