/* Headx1 working identity v0.2: primitives are shared within this repository. */
:root {
  --gold-soft: #f4e4bf;
  --gold-light: #e2b65a;
  --brand-gold: #d9a441;
  --gold-deep: #875817;
  --red-soft: #382022;
  --red-light: #d77672;
  --red-display: #be4a47;
  --brand-red: #9b3438;
  --red-deep: #632427;
  --accent-action-dark: var(--brand-gold);
  --accent-action-light: var(--gold-deep);
  --accent-identity-dark: var(--red-light);
  --accent-identity-light: var(--brand-red);
}


@font-face {
  font-family: Outfit;
  src: url('/legal-fonts/Outfit-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Mono';
  src: url('/legal-fonts/DMMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: Outfit, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:
    'DM Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    'Liberation Mono', 'Courier New', monospace;
  --header-wordmark-size: 1.5rem;
  --ink: #101010;
  --charcoal: #191919;
  --ivory: #f4f2ed;
  --paper: #faf9f6;
  --muted-dark: #a5a5a3;
  --muted-light: #656560;
  --line-dark: rgba(244, 242, 237, 0.18);
  --line-light: rgba(16, 16, 16, 0.2);
}

code,
pre,
kbd,
samp {
  font-family: var(--font-mono);
  font-weight: 400;
  font-variant-ligatures: none;
  font-feature-settings:
    'liga' 0,
    'clig' 0,
    'calt' 0;
}

:root {
  --scrollbar-thumb-color: #7c7472;
  --scrollbar-thumb: radial-gradient(
    ellipse 145% 90% at 50% 0%,
    #7d7d7a 0 58%,
    #7c7775 78%,
    #7a6e6d 100%
  );
}

html {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb-color) transparent;
}

html.overlay-scrollbar-ready {
  scrollbar-gutter: auto;
  scrollbar-width: none;
}

@supports selector(::-webkit-scrollbar) {
  html {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }

  html::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  html::-webkit-scrollbar-track {
    background: transparent;
  }

  html::-webkit-scrollbar-thumb {
    min-height: 40px;
    border: 2px solid transparent;
    border-radius: 6px;
    background: var(--scrollbar-thumb);
    background-clip: padding-box;
  }

  html::-webkit-scrollbar-thumb:hover {
    background: #9b5b59;
    background-clip: padding-box;
  }

  html::-webkit-scrollbar-thumb:active {
    background: #8c4646;
    background-clip: padding-box;
  }

  html::-webkit-scrollbar-button {
    display: none;
  }

  html.overlay-scrollbar-ready::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}

.overlay-scrollbar {
  position: fixed;
  z-index: 30;
  top: 4px;
  right: 2px;
  bottom: 4px;
  width: 14px;
  padding: 0;
  border: 0;
  outline: 0;
  touch-action: none;
  cursor: default;
}

.overlay-scrollbar[hidden] {
  display: none;
}

.overlay-scrollbar__thumb {
  --overlay-scrollbar-thumb-height: 40px;
  --overlay-scrollbar-thumb-top: 0px;
  --overlay-scrollbar-red-start: 99%;
  --overlay-scrollbar-red-core: 99.55%;
  position: absolute;
  top: 0;
  right: 3px;
  width: 6px;
  height: var(--overlay-scrollbar-thumb-height);
  overflow: hidden;
  border-radius: 4px;
  background: radial-gradient(
    ellipse 145% 90% at 50% 0%,
    #85827f 0 52%,
    #787270 78%,
    #6e6766 100%
  );
  transform: translate3d(0, var(--overlay-scrollbar-thumb-top), 0);
  will-change: transform;
}

.overlay-scrollbar__thumb::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      168deg,
      transparent 0 var(--overlay-scrollbar-red-start),
      rgb(190 74 71 / 28%) var(--overlay-scrollbar-red-core),
      rgb(190 74 71 / 46%) 100%
    ),
    linear-gradient(
      192deg,
      transparent 0 var(--overlay-scrollbar-red-start),
      rgb(155 52 56 / 20%) var(--overlay-scrollbar-red-core),
      rgb(155 52 56 / 38%) 100%
    );
  content: '';
  opacity: 0.72;
  transition: opacity 140ms ease;
}

.overlay-scrollbar:hover .overlay-scrollbar__thumb::after,
.overlay-scrollbar:focus-visible .overlay-scrollbar__thumb::after {
  opacity: 0.88;
}

.overlay-scrollbar.is-dragging .overlay-scrollbar__thumb::after {
  opacity: 1;
}

.overlay-scrollbar:focus-visible .overlay-scrollbar__thumb {
  outline: 2px solid #be4a47;
  outline-offset: 2px;
}

html.overlay-scrollbar-dragging,
html.overlay-scrollbar-dragging * {
  cursor: default;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .overlay-scrollbar__thumb::after {
    transition: none;
  }
}

@media (pointer: coarse) {
  .overlay-scrollbar {
    display: none;
  }
}

@media (forced-colors: active) {
  html {
    scrollbar-color: auto;
    scrollbar-width: auto;
  }

  html.overlay-scrollbar-ready {
    scrollbar-gutter: stable;
    scrollbar-width: auto;
  }

  .overlay-scrollbar {
    display: none;
  }

  html::-webkit-scrollbar-track {
    background: Canvas;
  }

  html::-webkit-scrollbar-thumb {
    background: ButtonText;
    border-color: Canvas;
  }

  html.overlay-scrollbar-ready::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted-dark);
  text-transform: uppercase;
}
.footer-bottom p {
  margin: 0;
}
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--accent-action-dark);
  text-underline-offset: 0.3em;
}
@media (max-width: 640px) {
  .footer-bottom {
    align-items: start;
    flex-direction: column;
    gap: 0.75rem;
  }
}

:root {
  color-scheme: light;
  font-family: var(--font-sans);
  font-synthesis: none;
  --accent-action: var(--accent-action-light);
  --legal-gutter: clamp(1.25rem, 4.45vw, 5rem);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.7;
}
.legal-frame {
  width: min(100% - 2 * var(--legal-gutter), 87.5rem);
  margin-inline: auto;
}
a {
  color: var(--accent-action);
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 2px solid var(--accent-action);
  outline-offset: 4px;
}
.skip-link {
  position: absolute;
  top: 0.75rem;
  left: var(--legal-gutter);
  z-index: 21;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--ivory);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
.legal-footer {
  background: var(--ink);
  color: var(--ivory);
  --accent-action: var(--accent-action-dark);
}

html {
  scroll-padding-top: var(--settled-header-height);
}

.legal-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.legal-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line-light);
  font-size: 1rem;
  font-weight: 550;
}
.document-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.document-navigation a {
  text-decoration: none;
}
.document-navigation a[aria-current='page'] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brand-red);
  text-decoration-thickness: 2px;
}
article {
  max-width: 46rem;
  margin-inline: auto;
  padding-block: clamp(2rem, 5vw, 4rem);
}
h1 {
  margin: 0 0 2.5rem;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
h2 {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.35;
}
section + section {
  margin-top: 2rem;
}
p {
  margin: 0;
  overflow-wrap: break-word;
}
.legal-sources {
  margin-top: 2rem;
  font-size: 0.9375rem;
}
.legal-footer .footer-bottom {
  border-top: 0;
}
@media (max-width: 600px) {
  .legal-navigation {
    padding-block: 1rem;
  }
}

@property --topbar-retraction {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

:root {
  --expanded-header-height: 5.75rem;
  --settled-header-height: 4rem;
  --topbar-gutter: clamp(1.25rem, 3vw, 3.75rem);
}

.topbar-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--expanded-header-height);
  pointer-events: none;
}

.site-header {
  position: relative;
  height: calc(
    var(--expanded-header-height) -
      (var(--expanded-header-height) - var(--settled-header-height)) *
      var(--topbar-retraction, 0)
  );
  color: var(--ivory);
  background: var(--ink);
  pointer-events: auto;
  transition: --topbar-retraction 250ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.site-header[data-retracted] {
  --topbar-retraction: 1;
}

.topbar-inner {
  display: flex;
  height: 100%;
  max-width: 112rem;
  margin-inline: auto;
  padding-inline: var(--topbar-gutter);
  align-items: center;
  gap: clamp(0.5rem, 2vw, 2rem);
}

.topbar-inner .header-brand {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-inline-end: auto;
  color: var(--ivory);
  font-size: var(--header-wordmark-size);
  font-weight: 760;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.header-brand span {
  color: var(--accent-identity-dark);
}

.topbar-pages {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(0.5rem, 1.6vw, 1.75rem);
}

.topbar-pages a,
.topbar-menu nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.topbar-menu {
  display: none;
}

.topbar-preferences,
.site-header .language-switch {
  display: flex;
  flex: none;
  align-items: center;
}

.topbar-preferences {
  margin-inline-start: auto;
  gap: 0.125rem;
}

.header-brand + .topbar-preferences {
  margin-inline-start: 0;
}

.topbar-pages ~ .topbar-preferences {
  margin-inline-start: 0;
}

.topbar-preferences button,
.site-header .language-switch > * {
  display: inline-grid;
  place-items: center;
  min-width: 2.25rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: 600 0.75rem var(--font-sans);
  text-decoration: none;
}

.site-header .language-switch {
  margin-inline-end: 0.375rem;
  border: 0;
}

.site-header .language-switch [aria-current] {
  color: var(--accent-action-dark);
}

.topbar-preferences :is(button:enabled, a),
.topbar-menu-button {
  cursor: pointer;
}

.topbar-preferences button:disabled {
  color: var(--muted-dark);
  opacity: 0.75;
}

.topbar-preferences svg {
  width: 1.125rem;
  fill: currentColor;
}

.site-header :is(a, button, summary):focus-visible {
  outline: 2px solid var(--accent-action-dark);
  outline-offset: -3px;
}

.site-header :is(a, button:enabled):hover,
.motion-control[aria-pressed='true'] {
  color: var(--accent-action-dark);
}

.scroll-progress {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  pointer-events: none;
  background: var(--line-dark);
}

.scroll-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent-action-dark);
  transform: scaleX(0);
  transform-origin: left;
}

.site-header .progress-navigation {
  position: absolute;
  inset: calc(100% + 0.5rem)
    calc(var(--topbar-gutter) + max(0px, (100% - 112rem) / 2)) auto auto;
  display: block;
  width: min(14rem, calc(100% - 2 * var(--topbar-gutter)));
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.25;
}

.progress-navigation details,
.topbar-menu nav {
  background: var(--ink);
  border: 1px solid var(--line-dark);
}

.progress-navigation summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  padding-inline: 0.75rem;
  cursor: pointer;
  list-style: none;
}

.site-header summary::-webkit-details-marker {
  display: none;
}

.progress-count,
.progress-navigation li span {
  flex: none;
  color: var(--accent-action-dark);
  font: 500 0.72rem var(--font-sans);
  font-variant-numeric: tabular-nums;
}

.progress-symbol {
  margin-inline-start: auto;
  font-size: 1.25rem;
}

.progress-navigation details[open] .progress-symbol {
  transform: rotate(45deg);
}

.progress-navigation ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
  max-height: min(24rem, calc(100dvh - var(--expanded-header-height) - 4.5rem));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.progress-navigation li a {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.75rem;
  color: var(--ivory);
  text-decoration: none;
}

.progress-navigation a[aria-current='location'] {
  background: var(--charcoal);
}

@media (max-width: 900px) {
  :root {
    --expanded-header-height: 3.25rem;
    --settled-header-height: var(--expanded-header-height);
  }

  .site-header {
    transition: none;
  }

  .topbar-inner {
    gap: 0.25rem;
    padding-inline: min(var(--topbar-gutter), 1rem);
  }

  .topbar-inner .header-brand {
    font-size: min(1.125rem, 5.4vw);
  }

  .topbar-preferences button,
  .site-header .language-switch > * {
    min-width: 36px;
  }

  .topbar-pages {
    display: none;
  }

  .topbar-menu {
    display: block;
  }

  .topbar-menu-button {
    position: relative;
    display: grid;
    width: 36px;
    min-height: 2.75rem;
    padding: 0 0.5rem;
    border: 0;
    background: transparent;
    color: inherit;
    place-content: center;
    gap: 4px;
  }

  .topbar-menu-button span {
    display: block;
    width: 1.125rem;
    height: 1px;
    background: currentColor;
    transition:
      transform 160ms ease,
      opacity 160ms ease;
  }

  .topbar-menu-button[aria-expanded='true'] span:first-child {
    transform: translateY(5px) rotate(45deg);
  }

  .topbar-menu-button[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
  }

  .topbar-menu-button[aria-expanded='true'] span:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

  .topbar-menu nav {
    position: absolute;
    top: 100%;
    inset-inline-start: min(var(--topbar-gutter), 1rem);
    z-index: 1;
    display: grid;
    gap: 0;
    max-height: calc(100dvh - var(--expanded-header-height));
    overflow: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.375rem);
    transition:
      opacity 160ms ease,
      transform 160ms ease,
      visibility 0s linear 160ms;
  }

  .topbar-menu nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .topbar-menu nav a {
    padding-inline: 0.75rem;
  }

  .site-header .progress-navigation {
    width: min(12rem, calc(100% - 2 * var(--topbar-gutter)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }

  .topbar-menu-button span,
  .topbar-menu nav {
    transition: none;
  }
}
