:root {
  --legal-black: #050505;
  --legal-ink: #18130f;
  --legal-cream: #f6e4cb;
  --legal-cream-deep: #ead0aa;
  --legal-red: #e30713;
  --legal-yellow: #efb903;
  --legal-muted: #6b5d4d;
  --legal-panel-width: 920px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--legal-black);
  color: var(--legal-cream);
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(227, 7, 19, .18), transparent 27rem),
    radial-gradient(circle at 92% 38%, rgba(239, 185, 3, .1), transparent 24rem),
    var(--legal-black);
  color: var(--legal-cream);
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.68;
}

a {
  color: inherit;
  text-decoration-thickness: .11em;
  text-underline-offset: .18em;
}

a:hover {
  text-decoration-color: var(--legal-yellow);
}

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

.legal-skip {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  transform: translateY(-180%);
  background: var(--legal-yellow);
  color: var(--legal-black);
  font-family: "Courier Prime", monospace;
  font-size: 15px;
  font-weight: 700;
}

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

.legal-site-header {
  border-bottom: 2px solid var(--legal-red);
  background: rgba(5, 5, 5, .96);
}

.legal-site-header__inner,
.legal-site-footer__inner {
  width: min(100% - 40px, 1160px);
  margin-inline: auto;
}

.legal-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 112px;
  padding-block: 18px;
}

.legal-brand {
  visibility:hidden;
  pointer-events:none;
  display: inline-flex;
  flex-direction: column;
  color: var(--legal-cream);
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(25px, 3vw, 37px);
  font-weight: 400;
  letter-spacing: .025em;
  line-height: .84;
  text-decoration: none;
}

.legal-brand span:last-child {
  color: var(--legal-red);
}

.legal-nav {
  display: flex;
  align-items: center;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 2px solid var(--legal-yellow);
  padding: 10px 14px;
  color: var(--legal-yellow);
  font-family: "Courier Prime", monospace;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.legal-back::before {
  content: "←";
  font-size: 1.25em;
}

.legal-back:hover {
  background: var(--legal-yellow);
  color: var(--legal-black);
  transform: translateY(-2px);
}

.legal-main {
  display: block;
  padding: clamp(36px, 7vw, 92px) 20px;
}

.legal-document {
  position: relative;
  width: min(100%, var(--legal-panel-width));
  margin-inline: auto;
  border: 2px solid var(--legal-red);
  background: var(--legal-cream);
  box-shadow: 18px 18px 0 var(--legal-red), 28px 28px 0 rgba(239, 185, 3, .85);
  color: var(--legal-ink);
  padding: clamp(32px, 6vw, 74px);
}

.legal-decoration {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-columns: 50px 50px;
  height: 18px;
}

.legal-decoration span:first-child {
  background: var(--legal-red);
}

.legal-decoration span:last-child {
  background: var(--legal-yellow);
}

.legal-document__header {
  padding-bottom: clamp(32px, 5vw, 52px);
  border-bottom: 5px solid var(--legal-ink);
}

.legal-kicker,
.legal-effective {
  font-family: "Courier Prime", monospace;
  font-weight: 700;
}

.legal-kicker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 9px;
  background: var(--legal-red);
  color: #fff8ee;
  font-size: 14px;
  letter-spacing: .12em;
  line-height: 1.25;
  text-transform: uppercase;
}

h1,
h2 {
  margin-top: 0;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
}

h1 {
  max-width: 15ch;
  margin-bottom: 24px;
  color: var(--legal-ink);
  font-size: clamp(42px, 7.2vw, 72px);
  letter-spacing: -.01em;
  line-height: .98;
  overflow-wrap: anywhere;
}

.legal-effective {
  margin: 0;
  color: var(--legal-muted);
  font-size: 16px;
  line-height: 1.45;
}

.legal-document section {
  padding-top: clamp(38px, 6vw, 58px);
  scroll-margin-top: 24px;
}

.legal-document section + section {
  margin-top: clamp(36px, 5vw, 52px);
  border-top: 1px solid #c7aa83;
}

h2 {
  margin-bottom: 22px;
  padding-left: 15px;
  border-left: 7px solid var(--legal-red);
  color: var(--legal-ink);
  font-size: clamp(29px, 4.2vw, 41px);
  letter-spacing: .005em;
  line-height: 1.08;
}

.legal-list {
  margin: 0;
  padding-left: 1.65em;
}

.legal-list > li {
  padding-left: .35em;
}

.legal-list > li + li {
  margin-top: 1.05em;
}

.legal-list > li::marker {
  color: var(--legal-red);
  font-family: "Courier Prime", monospace;
  font-weight: 700;
}

.legal-list--letters {
  margin-top: .75em;
}

.legal-list--letters > li + li {
  margin-top: .5em;
}

.legal-document a {
  color: #a5000a;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.legal-document a:hover {
  color: #730008;
}

.legal-address {
  margin: .9em 0 .2em;
  padding: 13px 16px;
  border-left: 5px solid var(--legal-yellow);
  background: rgba(255, 255, 255, .32);
  color: var(--legal-ink);
  font-style: normal;
  font-weight: 650;
  line-height: 1.55;
}

.legal-address--inline {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-weight: inherit;
}

.legal-site-footer {
  border-top: 2px solid var(--legal-red);
  background: var(--legal-black);
}

.legal-site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 36px;
  padding-block: 38px;
}

.legal-site-footer p {
  margin: 0;
}

.legal-site-footer p:first-child {
  color: var(--legal-cream);
  font-family: Anton, Impact, sans-serif;
  font-size: 25px;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
}

.legal-site-footer p:nth-child(2) {
  grid-column: 1;
  font-family: "Courier Prime", monospace;
  font-size: 15px;
}

.legal-site-footer p:nth-child(2) a {
  color: var(--legal-yellow);
  overflow-wrap: anywhere;
}

.legal-back--footer {
  grid-column: 2;
  grid-row: 1 / span 2;
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .legal-site-header__inner,
  .legal-site-footer__inner {
    width: min(100% - 28px, 1160px);
  }

  .legal-site-header__inner {
    min-height: 94px;
    gap: 18px;
  }

  .legal-brand {
    font-size: clamp(21px, 7vw, 29px);
  }

  .legal-back {
    padding: 9px 10px;
    font-size: 13px;
  }

  .legal-main {
    padding: 28px 14px 58px;
  }

  .legal-document {
    padding: 36px 18px 40px;
    box-shadow: 8px 8px 0 var(--legal-red), 13px 13px 0 rgba(239, 185, 3, .85);
  }

  .legal-decoration {
    grid-template-columns: 34px 34px;
    height: 12px;
  }

  h1 {
    max-width: none;
    font-size: clamp(37px, 11.5vw, 54px);
  }

  h2 {
    padding-left: 11px;
    border-left-width: 5px;
    font-size: clamp(27px, 8vw, 35px);
  }

  .legal-list {
    padding-left: 1.35em;
  }

  .legal-list > li {
    padding-left: .18em;
  }

  .legal-site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding-block: 30px;
  }

  .legal-site-footer p:nth-child(2),
  .legal-back--footer {
    grid-column: 1;
    grid-row: auto;
  }

  .legal-back--footer {
    justify-self: start;
    margin-top: 8px;
  }
}

@media (max-width: 359px) {
  .legal-site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media print {
  @page {
    margin: 17mm 16mm 19mm;
  }

  html,
  body {
    background: #fff;
    color: #000;
  }

  body {
    font-family: Arial, sans-serif;
    font-size: 10.5pt;
    line-height: 1.5;
  }

  .legal-skip,
  .legal-site-header,
  .legal-site-footer,
  .legal-decoration {
    display: none !important;
  }

  .legal-main {
    padding: 0;
  }

  .legal-document {
    width: 100%;
    max-width: none;
    margin: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
    color: #000;
    padding: 0;
  }

  .legal-document__header {
    padding-bottom: 9mm;
    border-bottom: 2pt solid #000;
  }

  .legal-kicker {
    margin-bottom: 5mm;
    border: 1pt solid #000;
    background: none;
    color: #000;
  }

  h1 {
    max-width: 16cm;
    margin-bottom: 5mm;
    color: #000;
    font-size: 30pt;
  }

  .legal-effective {
    color: #000;
  }

  .legal-document section {
    padding-top: 8mm;
  }

  .legal-document section + section {
    margin-top: 7mm;
    border-top: .5pt solid #777;
  }

  h2 {
    margin-bottom: 4mm;
    padding-left: 3mm;
    border-left: 3pt solid #000;
    color: #000;
    font-size: 18pt;
    break-after: avoid-page;
    page-break-after: avoid;
  }

  .legal-list > li + li {
    margin-top: .65em;
  }

  .legal-list > li::marker,
  .legal-document a {
    color: #000;
  }

  .legal-address {
    border-left: 2pt solid #000;
    background: none;
  }

  .legal-address--inline {
    border: 0;
  }

  p,
  li {
    orphans: 3;
    widows: 3;
  }
}
