/* The closing strip of apple.com's footer (copyright first, then links split by hairlines) on Chrome's grey footer. */
.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 30px;
    row-gap: var(--space-2);

    width: 100%;
    padding:
        var(--space-6)
        max(var(--gutter), env(safe-area-inset-right, 0px), calc((100% - var(--page-max-width)) / 2))
        calc(var(--space-6) + env(safe-area-inset-bottom, 0px))
        max(var(--gutter), env(safe-area-inset-left, 0px), calc((100% - var(--page-max-width)) / 2));

    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    color: var(--color-text-muted);

    background-color: var(--color-surface-strong);
}

.site-footer > p {
    order: -1;
}

/* Every link carries a hairline on its left; the row is clipped by that one pixel, so no line starts with a divider
   however the links wrap. */
.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    row-gap: var(--space-1);

    margin-left: -11px;

    clip-path: inset(0 0 0 1px);
}

.site-footer-links a {
    padding: 0 10px;

    border-left: 1px solid var(--color-border);
}

.site-footer a {
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
    text-decoration: none;

    transition: color 0.3s;
}

.site-footer a:hover {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.site-footer a:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: -2px;
    border-radius: 2px;
}
