.legal-body { background: #eaf5ff; }

.legal-main {
  min-height: 100svh;
  padding: 150px 22px 100px;
  color: var(--ink);
  background:
    linear-gradient(140deg, rgb(18 219 228 / 16%), transparent 34%),
    linear-gradient(220deg, rgb(255 98 107 / 15%), transparent 34%),
    #eaf5ff;
}

.document-shell {
  width: min(100%, 900px);
  margin-inline: auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid #c6dced;
  border-radius: 32px;
  box-shadow: 0 32px 70px rgb(24 62 100 / 15%);
}

.document-hero {
  position: relative;
  min-height: 280px;
  padding: 64px clamp(28px, 7vw, 72px) 54px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(115deg, #0b2456, var(--navy-950) 65%, #381b3c);
}

.document-hero::before,
.document-hero::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: 90px;
}

.document-hero::before { left: 0; background: var(--cyan); clip-path: polygon(0 0, 100% 0, 38% 48%, 82% 48%, 0 100%); }
.document-hero::after { right: 0; background: var(--coral); clip-path: polygon(62% 0, 100% 0, 100% 100%, 10% 100%, 66% 48%, 25% 48%); }

.document-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--cyan-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.document-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(45px, 8vw, 76px);
  letter-spacing: -.05em;
  line-height: .95;
  text-transform: uppercase;
}

.document-hero p:last-child {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 18px 0 0;
  color: #c8d8ee;
  font-size: 19px;
}

.document {
  max-width: 760px;
  margin-inline: auto;
  padding: 44px clamp(26px, 7vw, 72px) 72px;
  font-size: 17px;
  line-height: 1.75;
}

.document section + section { margin-top: 42px; padding-top: 24px; border-top: 1px solid #d9e5ef; }
.document h2 { margin: 0 0 12px; color: #0b3270; font-family: var(--display); font-size: 25px; letter-spacing: -.02em; text-transform: uppercase; }
.document p { margin: 0 0 16px; }
.document ul, .document ol { margin: 12px 0 18px; padding-left: 24px; }
.document li + li { margin-top: 9px; }
.document a { color: #006f85; font-weight: 750; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.document a:hover { color: #a93443; }

.support-contact {
  padding: 24px;
  background: #e9f8fb;
  border: 1px solid #b7e4e9;
  border-radius: 18px;
}

.error-main {
  min-height: 100svh;
  padding: 148px 22px 100px;
  display: grid;
  place-items: center;
  text-align: center;
  background: radial-gradient(circle at 50% 30%, #183f7f, var(--navy-950) 62%);
}

.error-content { width: min(100%, 660px); }
.error-icon { width: 140px; margin: 0 auto 28px; border-radius: 30px; box-shadow: var(--shadow); }
.error-code { margin: 0; color: var(--cyan-soft); font-size: 14px; font-weight: 900; letter-spacing: .15em; }
.error-content h1 { margin: 12px 0 0; font-family: var(--display); font-size: clamp(52px, 9vw, 86px); letter-spacing: -.055em; line-height: .92; text-transform: uppercase; }
.error-content p { max-width: 530px; margin: 22px auto 34px; color: var(--muted); font-size: 19px; }

@media (max-width: 620px) {
  .legal-main { padding: 108px 12px 60px; }
  .document-shell { border-radius: 22px; }
  .document-hero { min-height: 230px; padding: 46px 24px 38px; }
  .document-hero::before, .document-hero::after { width: 54px; opacity: .8; }
  .document { padding: 34px 24px 54px; font-size: 16px; }
  .document section + section { margin-top: 34px; }
}

@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  .legal-main { padding: 0; background: #fff; }
  .document-shell { border: 0; box-shadow: none; }
  .document-hero { min-height: 0; padding: 30px; color: #000; background: #fff; }
  .document-hero::before, .document-hero::after { display: none; }
  .document-hero p:last-child, .document-kicker { color: #333; }
}
