:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 32px 16px 56px;
  background: #f7f5ff;
  color: #292638;
}

.legal-card,
.not-found-page main {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 32px;
  border: 1px solid #ded9f3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgb(51 39 92 / 8%);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: #292638;
  color: #fff;
  font-weight: 700;
  transform: translateY(-160%);
}

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

.brand {
  margin: 0 0 8px;
  color: #7c6cdb;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.product-return {
  display: inline-flex;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.status {
  margin: 0 0 28px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f3f0ff;
  color: #564b8c;
  font-size: 13px;
  line-height: 1.6;
}

.languages {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
}

.languages button {
  padding: 6px 10px;
  border: 1px solid #cfc7ee;
  border-radius: 999px;
  background: #fff;
  color: #564b8c;
  cursor: pointer;
}

.languages button[aria-pressed="true"] {
  border-color: #6555bd;
  background: #6555bd;
  color: #fff;
}

h1 {
  margin: 0 0 28px;
  font-size: clamp(26px, 5vw, 36px);
}

.localized-body {
  white-space: pre-line;
}

h2 {
  margin: 28px 0 8px;
  color: #6555bd;
  font-size: 18px;
}

p,
li,
dd {
  font-size: 14px;
  line-height: 1.8;
}

ul {
  padding-left: 22px;
}

dl {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 10px 18px;
}

dt {
  color: #6555bd;
  font-weight: 700;
}

dd {
  margin: 0;
}

.effective {
  margin-top: 36px;
  color: #6e697c;
  font-size: 13px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid #e7e3f3;
}

a {
  color: #5949ae;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
}

.not-found-page {
  display: grid;
  place-items: center;
}

.not-found-page main {
  position: relative;
  overflow: hidden;
}

.not-found-page main::after {
  position: absolute;
  right: -54px;
  bottom: -72px;
  width: 190px;
  height: 190px;
  border: 28px solid rgb(124 108 219 / 10%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.master-brand {
  display: inline-flex;
  margin-bottom: 34px;
}

.master-brand img {
  width: 140px;
  height: auto;
}

.not-found-page h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(38px, 8vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.not-found-summary {
  max-width: 560px;
  margin: 0;
  color: #5f596d;
  font-size: 16px;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 30px;
}

.not-found-actions a {
  position: relative;
  z-index: 1;
  font-weight: 700;
  text-underline-offset: 4px;
}

.not-found-actions .primary-action {
  padding: 12px 18px;
  border-radius: 999px;
  background: #6555bd;
  color: #fff;
  text-decoration: none;
}

.not-found-actions .primary-action:hover {
  background: #5444a7;
}

@media (max-width: 560px) {
  .legal-card,
  .not-found-page main {
    padding: 24px 18px;
  }

  h1 {
    font-size: 24px;
    line-height: 1.35;
  }

  dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  dd {
    margin-bottom: 10px;
  }

  .not-found-page h1 {
    font-size: 42px;
  }
}
