:root {
  color-scheme: light;
  --blue: var(--kq-blue);
  --blue-deep: var(--kq-blue-deep);
  --yellow: var(--kq-yellow);
  --ink: #fff;
  --paper: var(--kq-paper);
  --white: var(--kq-white);
  --line: rgba(255, 255, 255, 0.26);
  --muted: rgba(255, 255, 255, 0.72);
  --surface: rgba(255, 255, 255, 0.14);
  --surface-strong: rgba(255, 255, 255, 0.20);
  --text-dark: #111018;
  --shadow: 0 18px 42px rgba(17, 16, 24, 0.20);
  --font-display: var(--kq-font-display);
  --font-ui: var(--kq-font-ui);
  --font-data: var(--kq-font-data);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  letter-spacing: 0;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: min(58vw, 720px);
  height: min(32vh, 340px);
  right: -12vw;
  top: 74px;
  border-radius: 140px 0 0 220px;
  background: var(--kq-pink);
}

body::after {
  width: min(52vw, 680px);
  height: min(38vh, 390px);
  right: -14vw;
  bottom: 0;
  border-radius: 260px 0 0 90px;
  background: var(--kq-aqua);
}

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

a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.legal-shell {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 28px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 22px 0 32px;
}

.legal-top {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wordmark strong,
.legal-card h1,
.legal-card h2 {
  font-family: var(--font-display);
}

.wordmark strong {
  display: block;
  color: var(--ink);
  font-size: clamp(24px, 5vw, 42px);
  font-weight: 950;
  line-height: 0.92;
}

.wordmark small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-link {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-deep);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 950;
  white-space: nowrap;
}

.legal-card {
  margin-top: 18px;
  padding: clamp(20px, 5vw, 44px);
  display: grid;
  gap: 22px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-card h1 {
  margin: 0;
  font-size: clamp(38px, 8vw, 72px);
  font-weight: 950;
  line-height: 0.9;
}

.legal-card h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 950;
  line-height: 1;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 16px;
  font-weight: 760;
  line-height: 1.42;
}

.legal-card p {
  margin: 0;
}

.legal-card ul,
.legal-card ol {
  margin: 0;
  padding-left: 20px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legal-links a {
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--surface-strong);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  font-weight: 950;
}

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

  .home-link {
    width: 100%;
  }
}
