:root {
  --legal-coral: #ef4d62;
  --legal-yellow: #fff06d;
  --legal-ink: #494a50;
  --legal-paper: #f7f7f7;
}

/* The landing locks the viewport for slide navigation. Legal documents use native page scrolling. */
html {
  height: auto;
  overflow-y: auto;
}

.legal-page {
  background: var(--legal-yellow);
  color: var(--legal-ink);
  font-family: "League Spartan", Arial, sans-serif;
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: visible;
}

.legal-page__header {
  align-items: center;
  background: var(--legal-coral);
  display: flex;
  justify-content: space-between;
  min-height: 96px;
  padding: 18px clamp(24px, 5.3vw, 102px);
  position: relative;
}

.legal-page__header::after {
  background: var(--legal-ink);
  bottom: -8px;
  content: "";
  height: 8px;
  left: 0;
  position: absolute;
  right: 0;
}

.legal-page__brand img {
  display: block;
  height: clamp(31px, 3vw, 50px);
  width: auto;
}

.legal-page__back {
  color: var(--legal-yellow);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 700;
  position: relative;
  text-decoration: none;
}

.legal-page__back::after {
  background: currentColor;
  bottom: -5px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
  width: 100%;
}

.legal-page__back:hover::after,
.legal-page__back:focus-visible::after { transform: scaleX(1); }

.legal-page__main {
  margin: 0 auto;
  max-width: 1120px;
  padding: clamp(64px, 8vw, 120px) clamp(24px, 5.3vw, 102px) clamp(60px, 7vw, 100px);
}

.legal-page__eyebrow {
  color: var(--legal-coral);
  font-family: "all-round-gothic", "Arial Rounded MT Bold", sans-serif;
  font-size: clamp(16px, 1.5vw, 23px);
  font-weight: 700;
  margin: 0 0 12px;
}

.legal-page h1,
.legal-page h2 {
  font-family: "all-round-gothic", "Arial Rounded MT Bold", sans-serif;
  font-weight: 700;
}

.legal-page h1 {
  font-size: clamp(44px, 5.2vw, 78px);
  line-height: 0.94;
  margin: 0;
  max-width: 13ch;
}

.legal-page h1 span { color: var(--legal-coral); }

.legal-page__intro {
  font-size: clamp(18px, 1.6vw, 25px);
  font-weight: 500;
  line-height: 1.3;
  margin: 26px 0 0;
  max-width: 54ch;
}

.legal-page__notice {
  background: var(--legal-ink);
  color: var(--legal-paper);
  margin: 40px 0;
  padding: 3px;
  position: relative;
}

.legal-page__notice > div {
  background: var(--legal-paper);
  color: var(--legal-ink);
  padding: clamp(20px, 2.3vw, 32px);
}

.legal-page__notice strong { color: var(--legal-coral); }

.legal-page__content {
  display: grid;
  gap: clamp(18px, 2vw, 28px);
}

.legal-page__section {
  background: var(--legal-ink);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  padding: 3px 3px 10px;
}

.legal-page__section > div {
  background: var(--legal-paper);
  clip-path: inherit;
  padding: clamp(26px, 3vw, 46px);
}

.legal-page h2 {
  color: var(--legal-coral);
  font-size: clamp(25px, 2.4vw, 38px);
  line-height: 1;
  margin: 0 0 18px;
}

.legal-page p,
.legal-page li {
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 500;
  line-height: 1.4;
}

.legal-page p { margin: 0 0 14px; }
.legal-page p:last-child { margin-bottom: 0; }
.legal-page ul { margin: 0; padding-left: 1.2em; }
.legal-page li + li { margin-top: 9px; }
.legal-page a { color: var(--legal-coral); font-weight: 700; }

.legal-page__table-wrap { overflow-x: auto; }
.legal-page table { border-collapse: collapse; min-width: 560px; width: 100%; }
.legal-page th,
.legal-page td { border-bottom: 1px solid rgba(73, 74, 80, 0.22); padding: 14px 12px; text-align: left; vertical-align: top; }
.legal-page th { color: var(--legal-coral); font-family: "all-round-gothic", "Arial Rounded MT Bold", sans-serif; font-size: 16px; }
.legal-page td { font-size: 15px; font-weight: 500; line-height: 1.3; }

.legal-page__footer {
  background: #4d4d4d;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  margin-top: 18px;
  padding: 28px clamp(24px, 5.3vw, 102px);
}

@media (max-width: 600px) {
  .legal-page__header { min-height: 78px; }
  .legal-page__brand img { height: 31px; }
  .legal-page__main { padding-top: 54px; }
  .legal-page__section { clip-path: none; }
  .legal-page__section > div { clip-path: none; }
}
