:root {
  --font-display: "Barlow Condensed", "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --accent: #ff5a1f;
  --accent-deep: #d12c00;
  --mark: #e85d2c;
  --ink: #050302;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hi: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-hi: rgba(255, 255, 255, 0.12);
  --text: #fff;
  --text-body: rgba(255, 255, 255, 0.78);
  --text-dim: rgba(255, 255, 255, 0.7);
  --text-label: rgba(255, 255, 255, 0.68);
  --r-card: 20px;
  --r-btn: 16px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --space: 8px;
  --gutter: clamp(20px, 5vw, 32px);
  --measure: 65ch;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
}

body.legal-page {
  background:
    radial-gradient(ellipse at top left, #1a0c05 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, #1a0806 0%, transparent 60%),
    var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
}

::selection {
  background: rgba(255, 90, 31, 0.3);
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

a:hover {
  color: #ff7a45;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.35);
  border-radius: 8px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

p,
li,
dd {
  color: var(--text-body);
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--text);
  text-wrap: balance;
  margin: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: calc(12px + env(safe-area-inset-top, 0px));
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  transform: translateY(-200%);
  z-index: 10000;
  text-decoration: none;
}

.skip:focus {
  transform: none;
  color: #fff;
}

.legal-wrap {
  width: min(720px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.legal-header {
  border-bottom: 1px solid var(--line);
  background: rgba(10, 7, 6, 0.72);
}

.legal-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding-block: 10px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

span.legal-brand {
  cursor: default;
}

.legal-brand:hover {
  color: #fff;
}

.legal-brand svg {
  width: 28px;
  height: 32px;
  flex: none;
}

.legal-header__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.legal-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  border-radius: var(--r-btn);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-home:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.legal-language-switcher {
  display: inline-flex;
  align-items: stretch;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-btn);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.legal-language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.legal-language-switcher a:hover {
  color: #fff;
}

.legal-language-switcher a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 90, 31, 0.22);
}

.legal-main {
  padding-block: 28px 56px;
}

.legal-article {
  max-width: var(--measure);
}

.legal-eyebrow {
  display: block;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.legal-article h1 {
  font-weight: 800;
  font-size: clamp(32px, 8vw, 44px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.legal-meta {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--text-dim);
}

.legal-article h2 {
  font-weight: 800;
  font-size: clamp(20px, 4.4vw, 26px);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 32px 0 12px;
  padding-top: 8px;
}

.legal-article h3 {
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 16px;
  line-height: 1.35;
  margin: 20px 0 8px;
  text-transform: none;
}

.legal-article p,
.legal-article ul,
.legal-article ol,
.legal-article table,
.legal-dl {
  margin: 0 0 16px;
}

.legal-article ul,
.legal-article ol {
  padding-left: 1.2em;
}

.legal-article li + li {
  margin-top: 8px;
}

.legal-notice {
  margin: 0 0 28px;
  padding: 18px;
  border-radius: var(--r-card);
  border: 1px solid rgba(255, 90, 31, 0.35);
  background: rgba(255, 90, 31, 0.08);
}

.legal-notice h2 {
  margin-top: 0;
  color: var(--accent);
}

.legal-notice p:last-child {
  margin-bottom: 0;
}

.legal-dl {
  display: grid;
  gap: 10px 16px;
}

.legal-dl div {
  display: grid;
  gap: 2px;
}

.legal-dl dt {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-label);
}

.legal-dl dd {
  margin: 0;
}

.legal-table-wrap {
  width: 100%;
  margin: 0 0 16px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.legal-table th {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-label);
  font-weight: 700;
}

.legal-table td {
  color: var(--text-body);
}

.legal-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px));
}

.legal-footer__grid {
  display: grid;
  gap: 24px;
}

.legal-footer__heading {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.legal-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.legal-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 14px;
}

.legal-footer__links a:hover,
.legal-footer__links a[aria-current="page"] {
  color: #fff;
}

.legal-footer__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.legal-footer__bar {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
}

.legal-footer__bar p {
  margin: 0;
  color: inherit;
}

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

  .legal-footer__grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 639px) {
  .legal-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table th {
    padding: 0 0 8px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 14px;
    letter-spacing: 0.04em;
  }

  .legal-table tr {
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-btn);
    background: var(--surface);
  }

  .legal-table td {
    padding: 6px 0;
    border-bottom: 0;
  }

  .legal-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-label);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  .legal-home,
  .legal-language-switcher a {
    transition: none;
  }
}

@media print {
  body.legal-page {
    background: #fff;
    color: #111;
    padding: 0;
  }

  .legal-header,
  .legal-footer,
  .skip {
    display: none;
  }

  .legal-article h1,
  .legal-article h2,
  .legal-article h3,
  p,
  li,
  dd,
  .legal-meta,
  .legal-table td {
    color: #111;
  }

  a {
    color: #111;
  }
}
