/**
 * The legal pages (docs/ai/consent.md, "The legal pages"): oska-legal's fragments carry no styles, only the theme's
 * class="table" and the scroll region around each table. Loaded by {% legal_fragment %} only on the pages that render
 * one. No url references: the manifest storage fails collectstatic on a missing file. The focus ring of the region
 * comes from the theme's global *:focus-visible (static/shopper-template/src/scss/_user.scss).
 */

/* a wide table scrolls inside its region, which has a keyboard stop (tabindex="0") */
.oska-legal__table {
    overflow-x: auto;
}

/* two fragments on one page, e.g. withdrawal + returns; ~, not +: the opt-out form's scripts may sit between them */
.oska-legal ~ .oska-legal {
    margin-top: 3rem;
}

/* Matomo's opt-out form, drawn by its script as p + input + label: the checkbox beside its label */
.oska-legal__optout {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
    margin: 0 0 14px;
}

.oska-legal__optout p {
    flex: 0 0 100%;
}

.oska-legal__optout input {
    margin: 5px 0 0;
}

.oska-legal__optout label {
    cursor: pointer;
    flex: 1 1 0;
    min-width: 0;
}
