main {
  --regulations-bg: #071924;
  --regulations-red: #901613;
  --regulations-blue: #265d8c;
  --regulations-violet: #713984;
  --regulations-footer-clearance: calc(
    var(--site-footer-overlap-space, 200px)
    + clamp(4rem, 8vh, 6rem)
    + env(safe-area-inset-bottom, 0px)
  );
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  padding: clamp(7rem, 14vh, 9rem) clamp(1.25rem, 12vw, 14rem) var(--regulations-footer-clearance);
  color: #ffffff;
  background:
    radial-gradient(circle at 14% 22%, color-mix(in srgb, var(--regulations-red), transparent 48%), transparent 30%),
    radial-gradient(circle at 82% 16%, color-mix(in srgb, var(--regulations-blue), transparent 42%), transparent 32%),
    radial-gradient(circle at 70% 82%, color-mix(in srgb, var(--regulations-violet), transparent 54%), transparent 34%),
    linear-gradient(135deg, rgba(5, 16, 24, 0.98), rgba(7, 25, 36, 0.92) 48%, rgba(13, 35, 49, 0.96));
  background-size: 120% 120%, 125% 125%, 118% 118%, 100% 100%;
  box-shadow: inset 0 10vh 8vh -4vh rgba(0, 0, 0, 0.62);
  text-shadow: none;
  text-align: left;
}

main::before,
main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

main::before {
  z-index: -2;
  background:
    linear-gradient(115deg, transparent 0 20%, rgba(255, 255, 255, 0.08) 25%, transparent 34% 56%, rgba(255, 255, 255, 0.055) 62%, transparent 72%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 92px);
  background-size: 180% 180%, 92px 92px, 92px 92px;
  opacity: 0.46;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  animation: regulations-light-drift 22s ease-in-out infinite;
}

main::after {
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03) 58%, transparent 58%) 8% 18% / min(42vw, 520px) min(30vw, 360px) no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 62%, transparent 62%) 92% 70% / min(36vw, 440px) min(26vw, 320px) no-repeat,
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.16), transparent 62%) 50% 20% / 58vw 18vw no-repeat;
  opacity: 0.7;
  filter: blur(0.2px);
}

main > * {
  position: relative;
  z-index: 1;
}

article {
  width: min(960px, 100%);
  margin: 0 auto clamp(1.6rem, 4vh, 2.4rem);
  box-sizing: border-box;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055)),
    rgba(7, 25, 36, 0.5);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px) saturate(1.16);
  -webkit-backdrop-filter: blur(16px) saturate(1.16);
}

article h2 {
  font-size: 2em;
  margin-bottom: 5vh;
  text-align: center;
  font-weight: normal;
}

article h3 {
  font-weight: 500;
  margin-top: 8vh;
  font-size: 1.5em;
  text-align: center;
}

article li {
  margin-bottom: 0.5vh;
}

article .conclusion {
  text-align: center;
}

article b {
  font-weight: 500;
}

article p:has(b) {
  text-align: center;
}

article p.center {
  text-align: center;
}

.download-btn {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    color-mix(in srgb, var(--regulations-blue), #071924 48%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.78rem 1.15rem;
  font-family: "Poppins", sans-serif;
  margin: 0 auto;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-align: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  display: block;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.download-btn:hover {
  border-color: rgba(255, 255, 255, 0.42);
  filter: none;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.download-btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

@keyframes regulations-light-drift {
  0%,
  100% {
    background-position: 0% 18%, 0 0, 0 0;
    transform: translate3d(-0.6%, 0, 0) scale(1);
  }

  50% {
    background-position: 72% 64%, 24px 0, 0 24px;
    transform: translate3d(0.8%, -0.8%, 0) scale(1.015);
  }
}

@media (prefers-reduced-motion: reduce) {
  main::before {
    animation: none;
  }
}

@media (max-width: 480px) {
  main {
    --regulations-footer-clearance: calc(
      var(--site-footer-overlap-space, 245px)
      + 3.5rem
      + env(safe-area-inset-bottom, 0px)
    );
    padding: 6.8rem 1rem var(--regulations-footer-clearance);
  }

  article {
    padding: 1.25rem;
  }

  article h2 {
    margin-bottom: 5vh;
    text-align: center;
    font-weight: normal;
  }

  article h3 {
    font-weight: 500;
  }

  article li {
    margin-bottom: 0.5vh;
  }

  .download-btn {
    width: 100%;
    max-width: 320px;
  }

  article b {
    font-weight: 500;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  article,
  article * {
    visibility: visible;
  }

  article {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: white;
    color: black;
    font-size: 10pt;
    text-align: justify;
  }

  * {
    background: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border: none !important;
  }

  main::before,
  main::after {
    display: none !important;
  }

  @page {
    size: A4;
    margin: 2cm;
  }

  article h2 {
    font-size: 14pt;
    text-align: center;
    margin-bottom: 1cm;
  }

  article h3 {
    font-size: 12pt;
    text-align: center;
    margin-bottom: 0.4cm;
  }

  article ul,
  article ol {
    font-size: 10pt;
  }

  article a {
    color: black;
  }

  p, ul {
    page-break-inside: avoid;
  }
}
