:root {
  color-scheme: light;
  --paper: #f3f4f2;
  --ink: #202124;
  --muted: #70736f;
  --line: #d8dad6;
  --accent: #f15a29;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration-color: #a9aca7;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover,
a:focus-visible {
  color: #000;
  text-decoration-color: var(--accent);
}

.experience {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background: #f5f5f2;
}

#system-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.brand {
  position: absolute;
  top: clamp(24px, 4vh, 46px);
  left: 50%;
  display: flex;
  align-items: center;
  flex-direction: column;
  transform: translateX(-50%);
}

.brand img {
  display: block;
  width: clamp(138px, 13vw, 176px);
  height: auto;
}

.site-footer {
  position: absolute;
  right: clamp(22px, 5vw, 72px);
  bottom: clamp(18px, 3vh, 34px);
  left: clamp(22px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.legal-page {
  min-height: 100svh;
  background: #f7f7f5;
}

.legal-shell {
  width: min(760px, calc(100% - 44px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.legal-header img {
  width: 140px;
  height: auto;
}

.legal-header a {
  font-size: 13px;
}

.legal-content {
  padding-top: 58px;
}

.legal-content h1 {
  max-width: 680px;
  margin: 0 0 42px;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.04;
}

.legal-content h2 {
  margin: 38px 0 12px;
  font-size: 17px;
  font-weight: 600;
}

.legal-content p,
.legal-content li {
  max-width: 660px;
  color: #4d504d;
  font-size: 16px;
  line-height: 1.65;
}

.legal-content ul {
  padding-left: 20px;
}

.legal-note {
  padding-top: 28px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  .brand {
    top: 20px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .legal-shell {
    padding-top: 24px;
  }

  .legal-header {
    padding-bottom: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #system-canvas {
    opacity: 1;
  }
}
