* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #080b0c;
  --surface: #101617;
  --ink: #f4f8f8;
  --muted: #b4c0c1;
  --line: rgb(180 205 207 / 0.28);
  --accent: #00b7c5;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Golos Text", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}

.legal-skip {
  background: var(--ink);
  color: var(--bg);
  left: 16px;
  padding: 12px 16px;
  position: fixed;
  top: 12px;
  transform: translateY(-180%);
  z-index: 4;
}

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

.legal-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 96px;
  padding: 18px clamp(18px, 5vw, 72px);
}

.legal-header img {
  height: auto;
  mix-blend-mode: screen;
  width: clamp(112px, 12vw, 162px);
}

.legal-header > a:last-child {
  align-items: center;
  border: 1px solid var(--line);
  display: inline-flex;
  font-size: 0.9rem;
  min-height: 46px;
  padding: 10px 16px;
  text-decoration: none;
}

.legal-main {
  margin-inline: auto;
  max-width: 980px;
  padding: clamp(56px, 9vw, 120px) clamp(18px, 5vw, 64px);
}

.legal-kicker {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  font-family: var(--display);
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  font-style: italic;
  letter-spacing: -0.035em;
  line-height: 0.86;
  margin: 18px 0 0;
  text-transform: uppercase;
  text-wrap: balance;
}

.legal-updated {
  color: var(--muted);
  line-height: 1.6;
  margin: 26px 0 0;
}

.legal-owner {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  display: grid;
  gap: 7px;
  margin-top: 44px;
  padding: 22px 24px;
}

.legal-owner span,
.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.legal-section {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 28px;
}

.legal-section h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-style: italic;
  line-height: 1;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.legal-section p {
  margin: 14px 0 0;
}

.legal-section ul,
.legal-section ol {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 22px;
}

.legal-note {
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.65;
  margin-top: 52px;
  padding: 20px 22px;
}

.legal-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.88rem;
  gap: 18px 30px;
  justify-content: space-between;
  padding: 26px clamp(18px, 5vw, 72px);
}

@media (max-width: 520px) {
  .legal-header {
    min-height: 82px;
  }

  .legal-header > a:last-child {
    font-size: 0.82rem;
    padding-inline: 12px;
  }

  h1 {
    overflow-wrap: anywhere;
  }
}

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