:root {
  --system-black: #050505;
  --system-paper: #f4f4f2;
  --system-ink: #111;
  --system-muted: #62625e;
  --system-line: #d7d7d2;
  --system-red: #e64b45;
}

html { scroll-padding-top: 88px; }

body {
  background: var(--system-paper) !important;
  color: #333 !important;
  font-family: Inter, Arial, sans-serif !important;
}

.system-legal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.16);
  background: var(--system-black);
}

.system-legal-header__inner {
  width: min(1120px, calc(100% - 96px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.system-legal-return {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: #fff !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.system-legal-return__icon {
  width: 36px;
  height: 36px;
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 50%;
  font-size: 0;
  line-height: 0;
}

.system-legal-return__icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.system-legal-return__icon::after {
  content: "";
  position: absolute;
  left: calc(50% - 8px);
  top: 50%;
  width: 7px;
  height: 7px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.system-legal-return:focus-visible {
  outline: 2px solid var(--system-red);
  outline-offset: 5px;
}

.document-shell {
  max-width: 840px !important;
  padding-top: 60px !important;
}

.document-shell h1,
.document-shell h2 {
  color: var(--system-ink) !important;
  font-family: Inter, Arial, sans-serif !important;
  letter-spacing: -.02em;
}

.document-shell h1 { font-weight: 600 !important; }
.document-shell h2 { font-weight: 600 !important; }
.document-shell a { color: var(--system-ink) !important; }

.table-wrap {
  border-color: var(--system-line) !important;
  border-radius: 0 !important;
}

@media (max-width: 640px) {
  .system-legal-header__inner {
    width: 100%;
    min-height: 64px;
    padding: 0 20px;
  }

  .system-legal-return { gap: 11px; font-size: 10px; }
  .system-legal-return__icon { width: 32px; height: 32px; }
  .document-shell { padding-top: 38px !important; }
}

@media print {
  .system-legal-header { display: none; }
}
