:root {
  color-scheme: light;
  --legal-blue: #859cc2;
  --legal-blue-dark: #315f9d;
  --legal-blue-soft: #eaf1fb;
  --legal-pink: #ff1b5f;
  --legal-brown: #765d46;
  --legal-cream: #fffaf1;
  --legal-paper: #fffdfb;
  --legal-ink: #2f3137;
  --legal-muted: #687287;
  --legal-line: #d8dee8;
  font-family: Lato, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--legal-ink);
  background: #e8edf5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: #e8edf5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 7px;
  color: #fff;
  background: var(--legal-pink);
  font-weight: 900;
  transform: translateY(-180%);
}

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

.site-topbar {
  width: 100%;
  min-height: 84px;
  color: #fff;
  background: var(--legal-blue);
}

.site-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  max-width: 1800px;
  min-height: 84px;
  margin-inline: auto;
  padding: 12px clamp(24px, 4.5vw, 72px);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  animation: brand-arrival 520ms cubic-bezier(.22, 1, .36, 1) both;
}

.site-brand img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  transform-origin: 50% 65%;
}

.site-brand span,
.site-brand strong,
.site-brand small {
  display: block;
}

.site-brand strong {
  font-family: "Arial Rounded MT Bold", Lato, system-ui, sans-serif;
  font-size: 23px;
  line-height: 1;
}

.site-brand small {
  margin-top: 5px;
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
  font-weight: 700;
}

.site-brand:hover img,
.site-brand:focus-visible img {
  animation: logo-greeting 520ms cubic-bezier(.36, .07, .19, .97);
}

@keyframes brand-arrival {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes logo-greeting {
  30% { transform: rotate(-7deg) translateY(-2px); }
  65% { transform: rotate(5deg) translateY(-1px); }
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(260px, 318px) minmax(0, 1fr);
  width: min(1500px, 100%);
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  background: var(--legal-paper);
  box-shadow: 0 20px 54px rgba(44, 60, 87, .12);
}

.legal-rail {
  position: relative;
  padding: 54px 34px 60px;
  background: #f7efe4;
  border-right: 1px solid #e3d8c9;
}

.legal-rail__eyebrow,
.legal-document__eyebrow {
  margin: 0 0 12px;
  color: var(--legal-blue-dark);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.legal-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}

.legal-status::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #45a466;
  box-shadow: 0 0 0 4px rgba(69, 164, 102, .14);
  content: "";
}

.legal-rail__warning {
  margin: 25px 0;
  padding: 15px 16px;
  border: 1px solid #ffc2d5;
  border-left: 4px solid var(--legal-pink);
  border-radius: 4px;
  color: #7e2342;
  background: #fff7fa;
  font-size: 13px;
  line-height: 1.55;
}

.legal-rail__meta {
  margin: 0;
  padding: 17px 0 18px;
  border-top: 1px dashed #cabba8;
  border-bottom: 1px dashed #cabba8;
  color: #716a62;
  font-size: 12px;
  line-height: 1.65;
}

.legal-rail__meta strong {
  color: var(--legal-ink);
}

.legal-rail nav {
  margin-top: 27px;
}

.legal-rail nav span {
  display: block;
  margin-bottom: 10px;
  color: #96897b;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.legal-rail nav a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 10px;
  border-left: 2px solid transparent;
  color: #58585d;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.legal-rail nav a:hover,
.legal-rail nav a:focus-visible {
  outline: 0;
  border-left-color: var(--legal-pink);
  color: var(--legal-ink);
  background: rgba(255, 255, 255, .62);
}

.legal-seal {
  display: block;
  width: min(230px, 100%);
  height: auto;
  margin: 36px auto 26px;
  mix-blend-mode: multiply;
  transform: rotate(-3deg);
}

.legal-rail__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--legal-blue-dark);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.legal-rail__back:hover,
.legal-rail__back:focus-visible {
  color: var(--legal-pink);
}

.legal-document {
  position: relative;
  min-width: 0;
  padding: 68px clamp(38px, 6vw, 96px) 100px;
  overflow: hidden;
}

.legal-receipt {
  position: absolute;
  z-index: 2;
  top: 0;
  right: clamp(28px, 4vw, 64px);
  width: 154px;
  margin: 0;
  transform: rotate(2deg);
  filter: drop-shadow(0 8px 9px rgba(78, 58, 38, .12));
}

.legal-receipt img {
  display: block;
  width: 100%;
  height: auto;
}

.legal-document__intro {
  max-width: 760px;
  padding-right: 158px;
}

.legal-document h1 {
  max-width: 780px;
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(3.2rem, 5.1vw, 5.15rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .96;
}

.legal-document__lead {
  max-width: 720px;
  margin: 20px 0 0;
  color: #626b7c;
  font-size: 16px;
  line-height: 1.7;
}

.legal-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 13px;
  max-width: 760px;
  margin: 34px 0;
  color: var(--legal-blue);
}

.legal-divider::before,
.legal-divider::after {
  height: 1px;
  background: var(--legal-line);
  content: "";
}

.legal-notice {
  max-width: 820px;
  margin-bottom: 32px;
  padding: 18px 20px;
  border: 1px solid #c8d8ee;
  border-left: 5px solid var(--legal-blue-dark);
  border-radius: 4px;
  color: #314867;
  background: var(--legal-blue-soft);
  font-size: 14px;
  line-height: 1.6;
}

.legal-clauses {
  max-width: 980px;
  border-top: 1px solid var(--legal-line);
}

.legal-clause {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) minmax(150px, 218px);
  gap: 20px;
  padding: 27px 0 28px;
  border-bottom: 1px solid var(--legal-line);
}

.legal-clause__number {
  color: var(--legal-blue);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 24px;
  font-weight: 700;
}

.legal-clause h2 {
  margin: 0 0 8px;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 23px;
  line-height: 1.15;
}

.legal-clause p {
  margin: 0;
  color: var(--legal-muted);
  font-size: 14px;
  line-height: 1.68;
}

.legal-clause p + p {
  margin-top: 10px;
}

.legal-clause a {
  color: var(--legal-blue-dark);
  font-weight: 800;
}

.legal-note {
  align-self: center;
  padding-left: 16px;
  border-left: 2px solid #ffc2d5;
  color: var(--legal-pink);
  font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
  transform: rotate(-2deg);
}

.legal-note::before {
  content: "↳ ";
}

.legal-signature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  max-width: 840px;
  margin-top: 56px;
}

.legal-signature div {
  padding-top: 14px;
  border-top: 1px solid #aab2bf;
}

.legal-signature strong,
.legal-signature span {
  display: block;
}

.legal-signature strong {
  font-family: "Bradley Hand", "Segoe Print", cursive;
  color: var(--legal-blue-dark);
  font-size: 21px;
}

.legal-signature span {
  margin-top: 4px;
  color: #818a98;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-footer {
  --mascot-hide-offset: 34px;

  position: relative;
  isolation: isolate;
  width: 100%;
  padding: 48px clamp(24px, 5vw, 76px) 24px;
  color: #fff;
  background: var(--legal-brown);
  text-align: center;
}

.site-footer::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: var(--legal-brown);
  content: "";
  pointer-events: none;
}

.site-footer__edge {
  position: absolute;
  z-index: 2;
  top: -7px;
  right: 0;
  left: 0;
  height: 8px;
  background:
    linear-gradient(var(--legal-brown), var(--legal-brown)) bottom / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, var(--legal-brown) 0 14px, transparent 14px 22px) top / auto 6px repeat-x;
  pointer-events: none;
}

.site-footer__mascot-head,
.site-footer__mascot-paw {
  position: absolute;
  top: auto;
  bottom: calc(100% - 7px);
  height: auto;
  transform-origin: 50% 100%;
  pointer-events: none;
}

.site-footer__mascot-head {
  z-index: 0;
  left: 50%;
  width: 78px;
  transform: translateX(-50%);
  filter: drop-shadow(0 3px 3px rgba(48, 34, 22, .18));
  animation: footer-peek-in 560ms cubic-bezier(.22, 1, .36, 1) both;
}

.site-footer__mascot-paw {
  --paw-scale-x: 1;

  z-index: 3;
  bottom: calc(100% - 4px);
  width: 27px;
  transform: translateX(-50%) scaleX(var(--paw-scale-x));
  filter: drop-shadow(0 2px 2px rgba(48, 34, 22, .16));
  animation: footer-paws-in 420ms 120ms ease-out both;
}

.site-footer__mascot-paw--left {
  left: calc(50% - 28px);
}

.site-footer__mascot-paw--right {
  --paw-scale-x: -1;

  left: calc(50% + 28px);
}

.site-footer__inner {
  position: relative;
  z-index: 4;
  max-width: 960px;
  margin: 0 auto;
}

.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 3px 5px;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  outline: 0;
  color: #fffdfb;
  background: rgba(255, 255, 255, .08);
}

.site-footer nav a:focus-visible {
  box-shadow: 0 0 0 2px var(--legal-pink);
}

.site-footer nav a:hover .site-footer__arrow,
.site-footer nav a:focus-visible .site-footer__arrow {
  transform: translateX(3px);
}

.site-footer nav svg {
  width: 14px;
  height: 14px;
  color: #d4bd98;
  fill: currentColor;
}

.site-footer__separator {
  width: 1px;
  height: 22px;
  border-left: 1px dashed rgba(212, 189, 152, .72);
}

.site-footer__arrow {
  color: var(--legal-pink);
  font-size: 17px;
  line-height: 1;
  transition: transform .18s ease;
}

.site-footer__disclaimer {
  display: grid;
  grid-template-columns: minmax(38px, 84px) minmax(0, auto) minmax(38px, 84px);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}

.site-footer__disclaimer p {
  margin: 0;
  color: #e2d5c7;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.45;
}

.site-footer__rule {
  min-width: 0;
  border-top: 2px dashed rgba(212, 189, 152, .72);
}

@keyframes footer-peek-in {
  from {
    opacity: 0;
    transform: translate(-50%, 18px) scale(.9);
  }
}

@keyframes footer-paws-in {
  from {
    opacity: 0;
    transform: translate(-50%, 5px) scaleX(var(--paw-scale-x));
  }
}

@media (max-width: 980px) {
  .legal-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .legal-rail {
    padding-inline: 24px;
  }

  .legal-document {
    padding-inline: 36px;
  }

  .legal-document__intro {
    padding-right: 100px;
  }

  .legal-receipt {
    right: 20px;
    width: 112px;
  }

  .legal-clause {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .legal-note {
    grid-column: 2;
    margin-top: -6px;
  }
}

@media (max-width: 720px) {
  .site-topbar,
  .site-topbar__inner {
    min-height: 72px;
  }

  .site-topbar__inner {
    padding: 10px 18px;
  }

  .site-brand img {
    width: 52px;
    height: 52px;
  }

  .site-brand strong {
    font-size: 21px;
  }

  .legal-shell {
    display: block;
  }

  .legal-rail {
    padding: 30px 22px 28px;
    border-right: 0;
    border-bottom: 1px solid #e3d8c9;
  }

  .legal-rail nav {
    display: flex;
    gap: 6px;
    margin-top: 20px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .legal-rail nav span {
    display: none;
  }

  .legal-rail nav a {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 10px 13px;
    border: 1px solid #ddcfbe;
    border-radius: 6px;
    background: rgba(255, 255, 255, .5);
  }

  .legal-seal {
    position: absolute;
    right: 18px;
    bottom: 17px;
    width: 96px;
    margin: 0;
    opacity: .92;
  }

  .legal-rail__back {
    max-width: 160px;
    min-height: 42px;
    margin-top: 18px;
  }

  .legal-document {
    padding: 48px 22px 78px;
  }

  .legal-document__intro {
    padding-right: 80px;
  }

  .legal-document h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .legal-receipt {
    right: -4px;
    width: 92px;
  }

  .legal-clause {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }

  .legal-clause__number {
    font-size: 20px;
  }

  .legal-clause h2 {
    font-size: 21px;
  }

  .legal-note {
    padding-left: 12px;
    font-size: 15px;
  }

  .legal-signature {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .site-footer {
    --mascot-hide-offset: 28px;
    padding: 42px 18px 22px;
  }

  .site-footer__mascot-head {
    width: 64px;
  }

  .site-footer__mascot-paw {
    width: 23px;
  }

  .site-footer__mascot-paw--left {
    left: calc(50% - 23px);
  }

  .site-footer__mascot-paw--right {
    left: calc(50% + 23px);
  }

  .site-footer nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-footer nav a {
    gap: 6px;
    font-size: 11px;
  }

  .site-footer__separator {
    height: 18px;
  }

  .site-footer__disclaimer {
    grid-template-columns: 18px minmax(0, 1fr) 18px;
    gap: 10px;
    margin-top: 14px;
  }

  .site-footer__disclaimer p {
    font-size: 9px;
  }
}

@media (max-width: 420px) {
  .site-brand small {
    display: none;
  }

  .site-footer nav {
    align-items: center;
    gap: 5px;
  }

  .site-footer nav a {
    justify-content: center;
    min-width: 0;
  }

  .site-footer__arrow {
    display: none;
  }

  .site-footer__disclaimer {
    grid-template-columns: 1fr;
  }

  .site-footer__rule {
    display: none;
  }
}

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

  .site-brand,
  .site-footer__mascot-head,
  .site-footer__mascot-paw,
  .site-footer__arrow {
    animation: none;
    transition: none;
  }
}
