.legal-page {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 76px);
  padding: clamp(82px, 9vw, 132px) 0 clamp(96px, 10vw, 146px);
  overflow: hidden;
}

.legal-page::before,
.legal-page::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.legal-page::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(217, 194, 154, 0.05), transparent 17%, transparent 83%, rgba(217, 194, 154, 0.04)),
    linear-gradient(180deg, rgba(244, 234, 216, 0.035), transparent 18%, rgba(7, 8, 12, 0.42));
}

.legal-page::after {
  top: 72px;
  right: max(-150px, -8vw);
  width: min(52vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(217, 194, 154, 0.12);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -18deg, rgba(217, 194, 154, 0.12) 0 1deg, transparent 1deg 11deg),
    radial-gradient(circle, transparent 0 48%, rgba(217, 194, 154, 0.1) 48.3% 48.6%, transparent 48.8% 64%, rgba(217, 194, 154, 0.08) 64.2% 64.5%, transparent 64.7%);
  opacity: 0.45;
  transform: rotate(-12deg);
}

.legal-page--faq::after {
  right: max(-90px, -5vw);
  background:
    linear-gradient(72deg, transparent 0 45%, rgba(217, 194, 154, 0.12) 45.4% 46%, transparent 46.4%),
    linear-gradient(84deg, transparent 0 50%, rgba(217, 194, 154, 0.1) 50.4% 51%, transparent 51.4%),
    repeating-linear-gradient(96deg, transparent 0 18px, rgba(217, 194, 154, 0.08) 19px, transparent 20px 40px);
}

.legal-page--contact::after {
  border-radius: 0;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(217, 194, 154, 0.2) 0 8%, transparent 8.5%),
    linear-gradient(45deg, transparent 49%, rgba(217, 194, 154, 0.16) 49.5% 50.5%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, rgba(217, 194, 154, 0.16) 49.5% 50.5%, transparent 51%),
    radial-gradient(circle, transparent 0 38%, rgba(217, 194, 154, 0.09) 38.2% 38.8%, transparent 39% 62%, rgba(217, 194, 154, 0.09) 62.2% 62.8%, transparent 63%);
  transform: rotate(10deg);
}

.legal-page--privacy::after {
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(217, 194, 154, 0.16) 0 9%, transparent 9.4% 31%, rgba(217, 194, 154, 0.14) 31.2% 31.8%, transparent 32%),
    repeating-conic-gradient(from 8deg, rgba(217, 194, 154, 0.12) 0 2deg, transparent 2deg 18deg);
  opacity: 0.52;
}

.legal-page--terms::after {
  width: min(44vw, 520px);
  border-radius: 0;
  background:
    linear-gradient(90deg, transparent 32.8%, rgba(217, 194, 154, 0.13) 33% 33.4%, transparent 33.6% 66.2%, rgba(217, 194, 154, 0.13) 66.4% 66.8%, transparent 67%),
    linear-gradient(0deg, transparent 32.8%, rgba(217, 194, 154, 0.13) 33% 33.4%, transparent 33.6% 66.2%, rgba(217, 194, 154, 0.13) 66.4% 66.8%, transparent 67%);
  transform: rotate(4deg);
}

.legal-shell {
  position: relative;
  display: grid;
  gap: clamp(32px, 4.5vw, 62px);
  max-width: 1060px;
}

.legal-shell::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 6px;
  left: -34px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(217, 194, 154, 0.42) 12%, rgba(217, 194, 154, 0.18) 84%, transparent);
}

.legal-eyebrow {
  width: fit-content;
  margin: 0;
  color: rgba(217, 194, 154, 0.74);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  line-height: 1.5;
  text-transform: uppercase;
}

.legal-eyebrow::before {
  content: "✦";
  margin-right: 12px;
  color: rgba(217, 194, 154, 0.78);
  font-size: 11px;
}

.legal-title {
  max-width: 18ch;
  margin: -10px 0 0;
  color: rgba(244, 234, 216, 0.96);
  font-family: var(--hero-title-display);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.05em;
  text-wrap: balance;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.legal-page--faq .legal-title,
.legal-page--terms .legal-title {
  max-width: 22ch;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.1;
}

.legal-page-back {
  display: inline-flex;
  position: absolute;
  top: clamp(-92px, -5vw, -56px);
  right: clamp(8px, 3vw, 54px);
  z-index: 3;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: rgba(236, 223, 196, 0.88);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.legal-page-back:hover,
.legal-page-back:focus-visible {
  color: rgba(244, 234, 216, 0.98);
}

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .legal-faq-page .site-header .header-nav,
  .legal-contact-page .site-header .header-nav,
  .legal-privacy-page .site-header .header-nav,
  .legal-terms-page .site-header .header-nav {
    display: none !important;
  }

  .legal-faq-page .site-header .header-inner,
  .legal-contact-page .site-header .header-inner,
  .legal-privacy-page .site-header .header-inner,
  .legal-terms-page .site-header .header-inner {
    justify-content: space-between;
    gap: 12px;
  }

  .legal-faq-page .site-header .brand,
  .legal-contact-page .site-header .brand,
  .legal-privacy-page .site-header .brand,
  .legal-terms-page .site-header .brand {
    min-width: 0;
  }

  .legal-page-back {
    display: inline-flex;
    position: static;
    flex: none;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    margin-right: 10px;
    color: rgba(236, 223, 196, 0.84);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
  }

  .legal-page-back:hover,
  .legal-page-back:focus-visible {
    color: rgba(244, 234, 216, 0.96);
  }
}

@media (max-width: 760px) {
  .legal-faq-page .site-header .header-inner,
  .legal-contact-page .site-header .header-inner,
  .legal-privacy-page .site-header .header-inner,
  .legal-terms-page .site-header .header-inner {
    padding-right: 0;
  }

  .legal-faq-page .site-language-switcher,
  .legal-contact-page .site-language-switcher,
  .legal-privacy-page .site-language-switcher,
  .legal-terms-page .site-language-switcher {
    position: static;
    margin-left: auto;
    transform: none;
  }

  .legal-page-back {
    margin-right: 14px;
  }
}

.legal-visual {
  position: absolute;
  right: clamp(12px, 4vw, 80px);
  top: clamp(30px, 5vw, 72px);
  pointer-events: none;
}

.legal-visual--faq {
  width: 210px;
  height: 170px;
}

.legal-visual--faq span {
  position: absolute;
  right: 2px;
  bottom: 18px;
  color: rgba(217, 194, 154, 0.76);
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.legal-visual--faq i {
  position: absolute;
  left: 62px;
  top: 10px;
  width: 2px;
  height: 146px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(217, 194, 154, 0.76), transparent);
  transform-origin: center bottom;
  box-shadow: 0 0 18px rgba(217, 194, 154, 0.18);
}

.legal-visual--faq i:nth-child(2) { transform: rotate(-24deg); }
.legal-visual--faq i:nth-child(3) { transform: rotate(-14deg); }
.legal-visual--faq i:nth-child(4) { transform: rotate(-4deg); }
.legal-visual--faq i:nth-child(5) { transform: rotate(7deg); }
.legal-visual--faq i:nth-child(6) { transform: rotate(17deg); }
.legal-visual--faq i:nth-child(7) { transform: rotate(27deg); }

.legal-visual--contact {
  width: 178px;
  height: 178px;
  border: 1px solid rgba(217, 194, 154, 0.22);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(217, 194, 154, 0.2) 49.5% 50.5%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(217, 194, 154, 0.2) 49.5% 50.5%, transparent 51%),
    radial-gradient(circle, transparent 0 45%, rgba(217, 194, 154, 0.16) 45.5% 46%, transparent 46.5%);
}

.legal-visual--contact::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 28px;
  border-radius: 50% 50% 50% 10%;
  border: 1px solid rgba(217, 194, 154, 0.42);
  background: rgba(217, 194, 154, 0.08);
  transform: translate(-50%, -50%) rotate(-22deg);
}

.legal-visual--contact span {
  position: absolute;
  color: rgba(217, 194, 154, 0.7);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.legal-visual--contact span:nth-child(1) { top: 12px; left: 50%; transform: translateX(-50%); }
.legal-visual--contact span:nth-child(2) { right: 12px; top: 50%; transform: translateY(-50%); }
.legal-visual--contact span:nth-child(3) { bottom: 12px; left: 50%; transform: translateX(-50%); }
.legal-visual--contact span:nth-child(4) { left: 12px; top: 50%; transform: translateY(-50%); }

.legal-visual--contact i {
  position: absolute;
  inset: 48px;
  border: 1px solid rgba(217, 194, 154, 0.24);
  transform: rotate(45deg);
}

.legal-visual--privacy {
  display: grid;
  width: 156px;
  height: 156px;
  place-items: center;
  border: 1px solid rgba(217, 194, 154, 0.32);
  border-radius: 50%;
}

.legal-visual--privacy span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid rgba(217, 194, 154, 0.34);
  border-radius: 50%;
  color: rgba(217, 194, 154, 0.82);
  font-family: var(--serif);
  font-size: 40px;
}

.legal-visual--privacy i {
  position: absolute;
  border: 1px solid rgba(217, 194, 154, 0.18);
  border-radius: 50%;
}

.legal-visual--privacy i:nth-child(2) { inset: 18px; }
.legal-visual--privacy i:nth-child(3) { inset: 34px; border-style: dashed; }

.legal-visual--terms {
  display: grid;
  width: 174px;
  height: 174px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  border: 1px solid rgba(217, 194, 154, 0.34);
  background:
    linear-gradient(90deg, transparent 32.6%, rgba(217, 194, 154, 0.26) 33% 33.4%, transparent 33.8% 66.2%, rgba(217, 194, 154, 0.26) 66.6% 67%, transparent 67.4%),
    linear-gradient(0deg, transparent 32.6%, rgba(217, 194, 154, 0.26) 33% 33.4%, transparent 33.8% 66.2%, rgba(217, 194, 154, 0.26) 66.6% 67%, transparent 67.4%);
}

.legal-visual--terms span {
  display: grid;
  place-items: center;
  color: rgba(217, 194, 154, 0.78);
  font-family: var(--serif);
  font-size: 24px;
}

.legal-lead,
.legal-section p,
.legal-list {
  color: rgba(244, 234, 216, 0.7);
  font-family: var(--sans);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.78;
}

.legal-lead {
  max-width: 60rem;
  margin: 0;
  padding: 0 0 0 clamp(20px, 2.6vw, 36px);
  border-left: 1px solid rgba(217, 194, 154, 0.32);
}

.legal-lead strong,
.legal-section strong {
  color: rgba(244, 234, 216, 0.92);
  font-weight: 800;
}

.legal-section p {
  margin: 0;
}

.legal-content {
  position: relative;
  display: grid;
  gap: clamp(26px, 3.2vw, 44px);
  counter-reset: legal-section;
}

.legal-section {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 0 0 clamp(22px, 2.8vw, 36px) clamp(34px, 3.4vw, 50px);
  counter-increment: legal-section;
}

.legal-section::before {
  content: counter(legal-section);
  position: absolute;
  left: 0;
  top: 0.15em;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(217, 194, 154, 0.42);
  border-radius: 50%;
  color: rgba(217, 194, 154, 0.82);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
}

.legal-page--faq .legal-section::before {
  content: "Q";
}

.legal-page--contact .legal-section::before {
  content: "C";
}

.legal-page--privacy .legal-section::before {
  content: "P";
}

.legal-page--terms .legal-section::before {
  content: "T";
}

.legal-section::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 36px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(217, 194, 154, 0.24), transparent);
}

.legal-section h2,
.legal-section h3 {
  margin: 0;
  color: rgba(244, 234, 216, 0.92);
  font-family: var(--sans);
  font-size: clamp(18px, 1.75vw, 24px);
  line-height: 1.28;
  text-wrap: balance;
}

.legal-section h3 {
  font-size: clamp(17px, 1.55vw, 21px);
}

.legal-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.25em;
}

.legal-list li::marker {
  color: rgba(217, 194, 154, 0.85);
}

.legal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 30px);
  max-width: 880px;
  padding-left: clamp(24px, 3vw, 42px);
  border-left: 1px solid rgba(217, 194, 154, 0.28);
}

.legal-form label {
  display: grid;
  gap: 10px;
  color: rgba(217, 194, 154, 0.78);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-form label:nth-child(3),
.legal-form label:nth-child(4) {
  grid-column: 1 / -1;
}

.legal-form input,
.legal-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(185, 154, 98, 0.36);
  border-radius: 0;
  padding: 12px 0 14px;
  background: transparent;
  color: rgba(244, 234, 216, 0.94);
  font: 500 14px/1.55 var(--sans);
  outline: none;
  transition: border-color 180ms ease, color 180ms ease;
}

.legal-form input:focus,
.legal-form textarea:focus {
  border-color: rgba(244, 234, 216, 0.78);
}

.legal-form textarea {
  min-height: 142px;
  resize: vertical;
}

.legal-form button {
  justify-self: start;
  grid-column: 1 / -1;
  border-radius: 8px;
  padding: 14px 22px;
  background: transparent;
  color: rgba(244, 234, 216, 0.9);
  border: 1px solid rgba(217, 194, 154, 0.4);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.legal-form button:hover,
.legal-form button:focus-visible {
  border-color: rgba(244, 234, 216, 0.74);
  background: rgba(217, 194, 154, 0.08);
  transform: translateY(-1px);
}

.legal-form-status {
  grid-column: 1 / -1;
  min-height: 1.5rem;
  color: rgba(244, 234, 216, 0.72);
  font: 500 14px/1.5 var(--sans);
}

.legal-form-status.is-success {
  color: rgba(217, 194, 154, 0.96);
}

.legal-form-status.is-error {
  color: rgba(242, 179, 161, 0.96);
}

.legal-direct-link {
  color: rgba(217, 194, 154, 0.92);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

@media (max-width: 760px) {
  .legal-page {
    padding: 52px 0 76px;
  }

  .legal-page::after {
    top: 120px;
    right: -180px;
    width: 420px;
  }

  .legal-shell {
    gap: 30px;
  }

  .legal-shell::before {
    display: none;
  }

  .legal-title {
    max-width: 100%;
    margin-top: -8px;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.04em;
  }

  .legal-page--faq .legal-title,
  .legal-page--terms .legal-title {
    font-size: 28px;
    line-height: 1.1;
  }

  .legal-visual {
    position: relative;
    right: auto;
    top: auto;
    justify-self: start;
    margin-top: -12px;
    transform: scale(0.78);
    transform-origin: left top;
  }

  .legal-visual--faq {
    height: 118px;
  }

  .legal-visual--contact,
  .legal-visual--privacy {
    width: 132px;
    height: 132px;
  }

  .legal-visual--terms {
    width: 130px;
  }

  .legal-lead,
  .legal-section p,
  .legal-list {
    font-size: 14px;
    line-height: 1.72;
  }

  .legal-lead {
    padding-left: 16px;
  }

  .legal-content {
    gap: 24px;
  }

  .legal-section {
    padding: 0 0 24px 36px;
  }

  .legal-section h2,
  .legal-section h3 {
    font-size: 18px;
  }

  .legal-form {
    grid-template-columns: 1fr;
    padding-left: 18px;
  }

  .legal-form label,
  .legal-form label:nth-child(3),
  .legal-form label:nth-child(4),
  .legal-form button {
    grid-column: 1;
  }
}
