:root {
    color-scheme: light;
    --red: #e32b32;
    --deep-red: #a7161c;
    --ink: #171919;
    --body-text: #414646;
    --muted: #626868;
    --line: #dfe3e1;
    --paper: #f4f6f5;
    --white: #ffffff;
    --page-width: 1160px;
    --page-gutter: 1.5rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 2rem; }

body {
    min-width: 280px;
    margin: 0;
    color: var(--body-text);
    background: var(--white);
    font-family: "SF Compact Text", "SF Compact", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}

::selection { color: var(--ink); background: #ffd9d8; }

a { color: var(--deep-red); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.skip-link {
    position: absolute;
    z-index: 10;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.65rem 1rem;
    color: var(--ink);
    background: var(--white);
    transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header { border-top: 3px solid var(--red); background: #111111; }

.site-nav, .terms-header-inner, .terms-layout, .footer-inner {
    width: min(var(--page-width), calc(100% - var(--page-gutter) * 2));
    margin-inline: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 78px;
}

.brand, .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.brand img, .footer-brand img { display: block; width: 44px; height: 44px; object-fit: contain; }

.nav-links, .footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.75rem; }

.nav-links a, .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #c5cbca;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.nav-links a:hover, .footer-links a:hover { color: var(--white); text-decoration: underline; }

.terms-header {
    border-bottom: 1px solid var(--line);
    background-color: var(--paper);
    background-image: repeating-linear-gradient(90deg, transparent, transparent 79px, #e9edeb 79px, #e9edeb 80px);
}

.terms-header-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 3.5rem 3rem;
}

h1, h2 {
    color: var(--ink);
    font-family: "SF Compact Display", "SF Compact", -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 750;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

h1 { margin: 0; font-size: 3.25rem; }
h1::before { display: block; width: 40px; height: 4px; margin-bottom: 1rem; background: var(--red); content: ""; }

.last-updated {
    flex-shrink: 0;
    margin: 0;
    padding-left: 1.5rem;
    border-left: 1px solid #c8cecb;
    color: var(--muted);
    font-size: 0.8125rem;
    line-height: 2;
}

.last-updated time { color: var(--ink); font-weight: 650; }

.terms-layout {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    align-items: start;
    gap: 5rem;
    padding-block: 3.5rem 5rem;
}

.terms-sidebar { position: sticky; top: 2rem; min-width: 0; }

.terms-contents summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 44px;
    padding-block: 0.5rem 1rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 750;
    list-style: none;
    text-transform: uppercase;
    cursor: pointer;
}

.terms-contents summary::-webkit-details-marker { display: none; }
.terms-contents summary .fa { width: 1rem; text-align: center; font-size: 1rem; transition: transform 160ms ease; }
.terms-contents[open] summary .fa { transform: rotate(180deg); }

.terms-contents nav {
    max-height: calc(100svh - 8rem);
    padding: 0.75rem 0.25rem 0.25rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c8cecb transparent;
}

.terms-contents ol { margin: 0; padding: 0; list-style: none; counter-reset: terms-section; }
.terms-contents li { counter-increment: terms-section; }

.terms-contents a {
    display: grid;
    grid-template-columns: 1.4rem minmax(0, 1fr);
    align-items: baseline;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.7rem 0.25rem;
    color: var(--muted);
    font-size: 0.8125rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.terms-contents a::before { color: #747d78; font-size: 0.6875rem; font-variant-numeric: tabular-nums; content: counter(terms-section, decimal-leading-zero); }
.terms-contents a:hover, .terms-contents a:focus-visible { color: var(--deep-red); background: var(--paper); }

.terms-content { min-width: 0; overflow-wrap: anywhere; }
.terms-content p { margin: 0 0 1.1rem; }
.terms-content a { font-weight: 650; }

.terms-section { padding-block: 2.25rem; border-bottom: 1px solid var(--line); }
.terms-section:first-child { padding-top: 0; }
.terms-section:last-child { padding-bottom: 0; border-bottom: 0; }
.terms-section h2 { margin: 0 0 1rem; font-size: 1.5rem; }
.terms-section > :last-child { margin-bottom: 0; }

.urgent-section {
    padding-inline: 1.75rem;
    border-left: 3px solid var(--red);
    background: #fff3f1;
}

.urgent-section h2 { color: #922127; font-size: 1.2rem; }
.urgent-section .fa { margin-right: 0.35rem; }

.legal-section { color: #303535; font-size: 0.9375rem; }
.legal-section h2 { font-size: 1.25rem; }
.terms-content ul { margin: 0 0 1.1rem; padding-left: 1.25rem; }
.terms-content li { padding-left: 0.4rem; }
.terms-content li + li { margin-top: 0.65rem; }
.terms-content li::marker { color: var(--red); }

.site-footer { padding-block: 2.75rem 1.75rem; color: #aab1ae; background: #111111; }

.footer-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
.footer-brand { justify-self: start; }
.footer-inner > p { grid-column: 1 / -1; margin: 0; padding-top: 1.5rem; border-top: 1px solid #353a37; font-size: 0.75rem; }

@media (max-width: 959px) {
    .terms-header-inner { padding-block: 2.5rem; }
    h1 { font-size: 2.75rem; }
    .terms-layout { max-width: 760px; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 1.5rem 3.5rem; }
    .terms-sidebar { position: static; }
    .terms-contents summary { padding-block: 0.75rem; }
    .terms-contents nav { max-height: 55svh; }
    .terms-contents a { font-size: 0.875rem; }
}

@media (max-width: 600px) {
    :root { --page-gutter: 1.25rem; }
    .site-nav { flex-wrap: wrap; gap: 0; padding-top: 0.75rem; }
    .brand { margin-bottom: 0.5rem; }
    .nav-links { justify-content: space-between; gap: 0 0.75rem; width: 100%; padding-block: 0.2rem; border-top: 1px solid #353a37; }
    .nav-links a { font-size: 0.8125rem; }
    .terms-header-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; padding-block: 2rem; }
    h1 { font-size: 2.25rem; }
    .last-updated { padding-left: 0; border-left: 0; }
    .urgent-section { padding-inline: 1.25rem; }
    .terms-section { padding-block: 1.75rem; }
    .terms-section h2 { font-size: 1.3125rem; }
    .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
    .footer-links { gap: 0 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .terms-contents summary .fa { transition: none; }
}

@media print {
    body { color: #000000; font-size: 11pt; }
    .site-header, .terms-sidebar, .site-footer, .skip-link { display: none; }
    .terms-header { background: none; }
    .terms-header-inner, .terms-layout { width: 100%; padding-block: 1rem; }
    .terms-layout { display: block; }
    h1 { font-size: 28pt; }
    h2 { break-after: avoid; }
    .urgent-section { break-inside: avoid; }
    a { color: inherit; }
}