/* Astyne company pages (About, Newsroom, articles): shared nav, footer, type and news tiles.
   Product pages (Aether, Outpost Go, Script Pilot) keep their own stylesheets. */

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

:root {
    --ink: #1d1d1f;
    --ink-2: #424245;
    --muted: #6e6e73;
    --faint: #707075;
    --line: #d2d2d7;
    --page: #ffffff;
    --page-alt: #f5f5f7;
    --link: #0066cc;
    --radius-lg: 28px;
    --radius: 18px;
    --nav-h: 52px;
    --wrap: 1180px;
    --gutter: clamp(20px, 4vw, 40px);
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--page);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-synthesis: none;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.wrap {
    width: min(var(--wrap), 100% - var(--gutter) * 2);
    margin-inline: auto;
}

/* "Learn more ›" text links */
.more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--link);
    font-size: 17px;
    font-weight: 400;
}

.more::after {
    content: '›';
    font-size: 1.15em;
    line-height: 1;
    transform: translateY(-1px);
    margin-left: 2px;
}

.more:hover {
    text-decoration: underline;
}

.more.on-dark {
    color: #2997ff;
}

.more.ext::after {
    content: '↗';
    font-size: .9em;
    transform: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 980px;
    background: var(--ink);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .2s ease;
}

.btn:hover {
    background: #000;
}

/* Fade-up on scroll; off without JS and for reduced motion */
html.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1);
}

html.js .reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html.js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Global nav ---------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 900;
    height: var(--nav-h);
    background: rgba(250, 250, 252, .8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.site-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}

.site-nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
    flex: none;
}

/* One wordmark, no text beside it. The PNG is white; tinted to ink here */
.site-nav-logo img {
    height: 18px;
    width: auto;
    filter: brightness(0);
    opacity: .88;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 36px);
}

.site-nav-links a {
    color: rgba(0, 0, 0, .8);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: -.01em;
    transition: color .2s ease;
}

.site-nav-links a:hover,
.site-nav-links a[aria-current='page'] {
    color: #000;
}

.site-nav-links a[aria-current='page'] {
    font-weight: 600;
}

.site-nav-links .ext::after {
    content: '↗';
    margin-left: 3px;
    font-size: .85em;
    opacity: .5;
}

.site-nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    margin-right: -12px;
    border: 0;
    background: none;
    cursor: pointer;
}

.site-nav-toggle span {
    position: absolute;
    left: 14px;
    width: 16px;
    height: 1.5px;
    border-radius: 1px;
    background: var(--ink);
    transition: transform .3s cubic-bezier(.16, 1, .3, 1), top .3s cubic-bezier(.16, 1, .3, 1);
}

.site-nav-toggle span:first-child {
    top: 18px;
}

.site-nav-toggle span:last-child {
    top: 25px;
}

.site-nav.is-open .site-nav-toggle span:first-child {
    top: 21.5px;
    transform: rotate(45deg);
}

.site-nav.is-open .site-nav-toggle span:last-child {
    top: 21.5px;
    transform: rotate(-45deg);
}

@media (max-width: 760px) {
    .site-nav-toggle {
        display: block;
    }

    /* Phone menu: the links drop down as a full-height sheet under the bar */
    .site-nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        height: calc(100vh - var(--nav-h));
        height: calc(100dvh - var(--nav-h));
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 18px var(--gutter) 40px;
        background: rgba(250, 250, 252, .97);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .25s ease, transform .35s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .35s;
    }

    .site-nav.is-open .site-nav-links {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity .25s ease, transform .35s cubic-bezier(.16, 1, .3, 1);
    }

    .site-nav-links a {
        padding: 10px 0;
        font-family: var(--font-display);
        font-size: 28px;
        font-weight: 600;
        letter-spacing: -.02em;
        color: var(--ink);
    }

    .site-nav-links a[aria-current='page'] {
        color: var(--muted);
    }
}

/* ---------- Footer: a solid light gray card ---------- */
.site-footer {
    padding: clamp(10px, 1.4vw, 20px);
}

.sf-card {
    position: relative;
    overflow: hidden;
    max-width: 1560px;
    margin: 0 auto;
    padding: clamp(36px, 5vw, 68px) clamp(22px, 5vw, 68px) clamp(20px, 2.4vw, 28px);
    border-radius: clamp(28px, 3vw, 44px);
    --muted: #5e5e63;
    background: #ececef;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.5;
}

.sf-top {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr);
    gap: 32px clamp(32px, 6vw, 96px);
    align-items: end;
    padding-bottom: clamp(36px, 4vw, 52px);
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.sf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
}

.sf-connect h2 {
    margin-top: 14px;
    color: var(--ink);
    font-size: clamp(40px, 5.4vw, 72px);
    line-height: .98;
    font-weight: 700;
    letter-spacing: -.04em;
}

.sf-connect p {
    max-width: 44ch;
    margin-top: 16px;
    color: var(--ink-2);
    font-size: clamp(15px, 1.25vw, 17px);
}

.sf-connect-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    margin-top: 24px;
}

/* Connect keeps its own blue, the one bright colour in the footer */
.sf-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 980px;
    background: #0d6bff;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    transition: background-color .2s ease, transform .25s cubic-bezier(.16, 1, .3, 1);
}

.sf-cta::after {
    content: '↗';
    font-size: .95em;
}

.sf-cta:hover {
    background: #2a7dff;
    transform: translateY(-2px);
}

.sf-spaces {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
}

.sf-spaces li {
    padding: 5px 11px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 600;
}

.sf-spaces .aether {
    background: rgba(201, 150, 52, .16);
    color: #74500e;
}

.sf-spaces .outpost {
    background: rgba(47, 117, 92, .12);
    color: #245f49;
}

.sf-spaces .astyne {
    background: rgba(13, 107, 255, .1);
    color: #0b57d0;
}

/* Newsletter: a white panel on the gray */
.sf-signup {
    padding: clamp(22px, 2.4vw, 30px);
    border: 1px solid rgba(0, 0, 0, .05);
    border-radius: 24px;
    background: #fff;
}

.sf-signup h3 {
    color: var(--ink);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.015em;
}

.sf-signup > p {
    margin-top: 6px;
    color: var(--muted);
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.newsletter-form input {
    flex: 1 1 140px;
    min-width: 0;
    height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 14px;
    background: #f5f5f7;
    color: var(--ink);
    font-size: 15px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.newsletter-form input::placeholder {
    color: rgba(0, 0, 0, .56);
}

.newsletter-form input:focus {
    border-color: var(--link);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, .15);
}

.newsletter-form button {
    flex: none;
    height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease;
}

.newsletter-form button:hover {
    background: #000;
    transform: translateY(-1px);
}

.newsletter-form [role='status'] {
    flex-basis: 100%;
    min-height: 1.4em;
    color: var(--ink-2);
    font-size: 13px;
}

.sf-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 24px;
    padding-top: clamp(32px, 4vw, 48px);
}

.sf-cols h3 {
    margin-bottom: 14px;
    color: var(--ink);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
}

.sf-cols ul {
    list-style: none;
}

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

.sf-cols a {
    display: inline-block;
    color: rgba(0, 0, 0, .6);
    font-size: 15px;
    transition: color .2s ease, transform .25s cubic-bezier(.16, 1, .3, 1);
}

.sf-cols a:hover {
    color: var(--ink);
    transform: translateX(3px);
}

.sf-cols .ext::after {
    content: ' ↗';
    color: rgba(0, 0, 0, .3);
}

.sf-cols .connect-link {
    color: #0b57d0;
    font-weight: 600;
}

.sf-bottom {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    margin-top: clamp(36px, 4.4vw, 56px);
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, .1);
}

.sf-lockup {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

.sf-year {
    color: var(--muted);
    font-weight: 400;
}

/* The family lineup, as in the brand graphics: Aether | RoleMetric | Outpost Go */
.sf-family {
    display: flex;
    align-items: center;
}

.sf-family a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 14px;
    color: var(--ink);
    font-size: 14px;
    opacity: .72;
    transition: opacity .2s ease;
}

.sf-family a + a {
    border-left: 1px solid rgba(0, 0, 0, .18);
}

.sf-family a:hover {
    opacity: 1;
}

/* Both logos are white artwork; tinted to ink on the light card */
.sf-family img[alt='Aether'] {
    height: 14px;
    width: auto;
    filter: brightness(0);
}

.sf-family .rolemetric {
    font-weight: 700;
}

.sf-family .outpost img {
    height: 14px;
    width: auto;
    filter: brightness(0);
    opacity: .75;
}

.sf-legal {
    display: flex;
    gap: 18px;
    margin-left: auto;
}

.sf-legal a {
    color: var(--ink-2);
    font-size: 13px;
}

.sf-legal a:hover {
    color: var(--ink);
}

.sf-socials {
    display: flex;
    gap: 6px;
}

.sf-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .05);
    color: var(--ink-2);
    transition: background-color .2s ease, color .2s ease, transform .25s cubic-bezier(.16, 1, .3, 1);
}

.sf-socials a:hover {
    background: rgba(0, 0, 0, .1);
    color: var(--ink);
    transform: translateY(-2px);
}

.sf-socials svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

/* Arrival: the copy settles in the first time the footer scrolls into view. Only with JS, never for reduced motion */
html.js .site-footer .sf-top,
html.js .site-footer .sf-cols > div,
html.js .site-footer .sf-bottom {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(8px);
    transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1), filter .9s cubic-bezier(.16, 1, .3, 1);
}

html.js .site-footer .sf-cols > div:nth-child(2) { transition-delay: .06s; }
html.js .site-footer .sf-cols > div:nth-child(3) { transition-delay: .12s; }
html.js .site-footer .sf-cols > div:nth-child(4) { transition-delay: .18s; }
html.js .site-footer .sf-bottom { transition-delay: .26s; }

html.js .site-footer.is-in .sf-top,
html.js .site-footer.is-in .sf-cols > div,
html.js .site-footer.is-in .sf-bottom {
    opacity: 1;
    transform: none;
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    html.js .site-footer .sf-top,
    html.js .site-footer .sf-cols > div,
    html.js .site-footer .sf-bottom {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

@media (max-width: 900px) {
    .sf-top {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .sf-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sf-legal {
        margin-left: 0;
    }
}

@media (max-width: 560px) {
    .sf-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .sf-family a:first-child {
        padding-left: 0;
    }
}

/* Articles end on the mark, the way magazine stories end on a small sign-off */
.article-body p:last-child::after {
    content: '';
    display: inline-block;
    width: 1em;
    height: .94em;
    margin-left: .4em;
    background: url('brand/astyne-mark.png') center / contain no-repeat;
    vertical-align: -.1em;
}

/* ---------- News tiles (Newsroom, About, "More news" under an article) ---------- */
.tiles {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
}

.tile {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .04);
    transition: box-shadow .35s ease, transform .35s cubic-bezier(.16, 1, .3, 1);
}

.tile:hover {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 0 18px 40px -18px rgba(0, 0, 0, .28);
}

.tile-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e8e8ed;
}

.tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}

.tile:hover .tile-media img {
    transform: scale(1.03);
}

.tile-media.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #ececf0, #dcdce2);
}

.tile-media.is-empty span {
    color: rgba(0, 0, 0, .28);
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.tile-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 24px 26px;
}

.tile-eyebrow {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tile h3 {
    margin-top: 8px;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -.015em;
}

.tile time {
    margin-top: auto;
    padding-top: 14px;
    color: var(--muted);
    font-size: 14px;
}

/* The lead story: wide, image beside the copy */
.tile.is-hero {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
}

.tile.is-hero .tile-media {
    aspect-ratio: auto;
    min-height: clamp(300px, 34vw, 440px);
}

.tile.is-hero .tile-copy {
    justify-content: center;
    padding: clamp(28px, 3.4vw, 48px);
}

.tile.is-hero h3 {
    font-size: clamp(26px, 2.8vw, 36px);
    line-height: 1.12;
    letter-spacing: -.02em;
}

.tile.is-hero time {
    margin-top: 16px;
    padding-top: 0;
}

.tile.is-hero.is-flip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
}

.tile.is-hero.is-flip .tile-media {
    order: 2;
}

.tile.is-half {
    grid-column: span 3;
}

.tile.is-half h3 {
    font-size: 24px;
}

.tile.is-skeleton {
    pointer-events: none;
}

.tile.is-skeleton .tile-media {
    background: linear-gradient(100deg, #ececf0 30%, #f6f6f8 50%, #ececf0 70%) 0 0 / 300% 100%;
    animation: shimmer 1.4s linear infinite;
}

.tile.is-skeleton .tile-copy i {
    display: block;
    height: 14px;
    border-radius: 7px;
    background: #ececf0;
}

.tile.is-skeleton .tile-copy i + i {
    margin-top: 10px;
}

@keyframes shimmer {
    to {
        background-position: -150% 0;
    }
}

.tiles-empty {
    grid-column: 1 / -1;
    padding: 64px 24px;
    border-radius: var(--radius);
    background: #fff;
    color: var(--muted);
    font-size: 17px;
    text-align: center;
}

@media (max-width: 980px) {
    .tile,
    .tile.is-half {
        grid-column: span 3;
    }

    .tile.is-hero,
    .tile.is-hero.is-flip {
        grid-template-columns: 1fr;
    }

    .tile.is-hero .tile-media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .tile.is-hero.is-flip .tile-media {
        order: 0;
    }
}

@media (max-width: 640px) {
    .tiles {
        gap: 16px;
    }

    .tile,
    .tile.is-half {
        grid-column: 1 / -1;
    }
}

/* ---------- Legal pages (Privacy Policy, Terms of Service) ---------- */
.legal-page {
    --legal-toc-top: calc(var(--nav-h) + 20px);
}

.legal-main {
    padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
}

.legal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px clamp(32px, 6vw, 96px);
}

.legal-kicker {
    display: block;
    color: var(--muted);
    font-size: 17px;
    font-weight: 600;
}

.legal-hero h1 {
    margin-top: 8px;
    font-size: clamp(44px, 6.4vw, 80px);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -.035em;
}

.legal-hero p {
    max-width: 620px;
    margin-top: 20px;
    color: var(--ink-2);
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.45;
}

.legal-hero small {
    display: block;
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
}

/* The Astyne mark, large, on a quiet panel beside the title */
.legal-hero-mark {
    display: grid;
    place-items: center;
    width: clamp(200px, 22vw, 300px);
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    background: var(--page-alt);
}

.legal-hero-mark img {
    width: 56%;
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
    margin-top: clamp(40px, 6vw, 72px);
}

/* Contents: sticks beside the copy and scrolls on its own once it's taller than the window, so every entry is reachable.
   astyne.js marks the section being read and keeps it in view in the list */
.legal-toc {
    position: sticky;
    top: var(--legal-toc-top);
    max-height: calc(100vh - var(--legal-toc-top) - 20px);
    max-height: calc(100svh - var(--legal-toc-top) - 20px);
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    background: var(--page-alt);
}

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

.legal-toc-list {
    /* The offset parent for the entries, so astyne.js can measure them against the list's own scroll */
    position: relative;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px 10px 18px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, .2) transparent;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 22px), transparent 100%);
}

.legal-toc-group {
    margin: 18px 10px 6px;
    color: var(--faint);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.legal-toc-group:first-child {
    margin-top: 2px;
}

.legal-toc ol {
    list-style: none;
}

.legal-toc a {
    display: flex;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 10px;
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1.32;
    transition: color .2s ease, background-color .2s ease;
}

.legal-toc a .legal-num {
    flex: 0 0 1.9em;
    color: var(--faint);
    font-variant-numeric: tabular-nums;
}

.legal-toc a:hover {
    color: var(--ink);
    background: rgba(0, 0, 0, .04);
}

.legal-toc a.is-active {
    color: var(--ink);
    font-weight: 600;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.legal-toc a.is-active .legal-num {
    color: var(--ink);
}

.legal-copy {
    min-width: 0;
    max-width: 780px;
}

.legal-section,
.legal-part,
.legal-copy h3 {
    scroll-margin-top: calc(var(--legal-toc-top) + 12px);
}

.legal-section + .legal-section {
    margin-top: 48px;
}

/* An addendum or Part opens with a rule and a small label, so the long document reads in chapters */
.legal-part {
    margin-top: 72px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.legal-part + .legal-section {
    margin-top: 36px;
}

.legal-copy h2 {
    margin-bottom: 16px;
    font-size: clamp(24px, 2.2vw, 30px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.02em;
}

.legal-copy h2 .legal-num {
    margin-right: .25em;
    color: var(--faint);
    font-variant-numeric: tabular-nums;
}

.legal-part h2 {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.legal-copy h3 {
    margin: 32px 0 10px;
    font-family: var(--font);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -.01em;
}

.legal-copy h2 + h3 {
    margin-top: 4px;
}

.legal-copy h3 .legal-num {
    margin-right: .3em;
    color: var(--faint);
    font-variant-numeric: tabular-nums;
}

.legal-copy h4 {
    margin: 26px 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.legal-copy p,
.legal-copy li,
.legal-copy address {
    color: var(--ink-2);
    font-size: 17px;
    line-height: 1.6;
}

.legal-copy p + p,
.legal-copy ul + p,
.legal-copy ol + p,
.legal-copy p + ul,
.legal-copy p + ol,
.legal-copy address + p,
.legal-copy p + address,
.legal-copy .legal-table-wrap + p {
    margin-top: 14px;
}

.legal-copy ul,
.legal-copy ol {
    margin: 12px 0 0;
    padding-left: 1.4em;
}

.legal-copy li {
    padding-left: .25em;
}

.legal-copy li::marker {
    color: var(--faint);
}

.legal-copy li + li {
    margin-top: 6px;
}

.legal-copy a {
    color: var(--link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(0, 102, 204, .45);
    text-underline-offset: .18em;
}

.legal-copy a:hover {
    text-decoration-color: currentColor;
}

/* Accessibility statement: one reading column under the legal hero, with the site settings (a11y.js) inline */
.access-copy {
    margin-top: clamp(40px, 6vw, 72px);
}

.access-settings {
    max-width: 560px;
    margin: 22px 0;
}

.access-copy h3 {
    margin-top: 26px;
}

.legal-address {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 14px;
    padding: 18px 22px;
    border-radius: 14px;
    background: var(--page-alt);
    font-style: normal;
}

.legal-address strong {
    color: var(--ink);
    font-weight: 600;
}

.legal-table-wrap {
    margin-top: 16px;
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--line);
}

.legal-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 14.5px;
    line-height: 1.5;
}

.legal-table th,
.legal-table td {
    padding: 13px 16px;
    text-align: left;
    vertical-align: top;
    border-top: 1px solid var(--line);
    color: var(--ink-2);
}

.legal-table thead th {
    border-top: 0;
    background: var(--page-alt);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.legal-table tbody th {
    width: 26%;
    color: var(--ink);
    font-weight: 600;
}

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

    /* Narrow screens: the contents fold into a bar under the nav that opens as a scrolling panel */
    .legal-toc {
        z-index: 20;
        max-height: none;
        background: rgba(245, 245, 247, .92);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    }

    .legal-toc-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-height: 48px;
        padding: 0 18px;
        border: 0;
        background: none;
        color: var(--ink);
        font-size: 15px;
        font-weight: 600;
        text-align: left;
        cursor: pointer;
    }

    .legal-toc-toggle span {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .legal-toc-toggle svg {
        flex: none;
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform .25s ease;
    }

    .legal-toc.is-open .legal-toc-toggle svg {
        transform: rotate(180deg);
    }

    .legal-toc-list {
        display: none;
        max-height: min(62vh, 520px);
        max-height: min(62svh, 520px);
        padding-top: 4px;
        border-top: 1px solid var(--line);
    }

    .legal-toc.is-open .legal-toc-list {
        display: block;
    }
}

@media (max-width: 640px) {
    .legal-hero {
        grid-template-columns: 1fr;
    }

    .legal-hero-mark {
        display: none;
    }

    .legal-copy p,
    .legal-copy li,
    .legal-copy address {
        font-size: 16px;
    }

    .legal-section + .legal-section {
        margin-top: 40px;
    }
}
