.legal-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: 68px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.legal-header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-header img {
  width: 180px;
  height: auto;
}

.legal-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.legal-back svg {
  width: 18px;
}

.legal-hero {
  padding-block: 82px 62px;
  background: var(--surface-teal);
  border-bottom: 1px solid var(--line);
}

.legal-hero .container {
  max-width: 900px;
}

.legal-hero h1 {
  max-width: 820px;
  margin-bottom: 14px;
  color: var(--ink);
}

.legal-hero p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.legal-content {
  max-width: 900px;
  padding-block: 72px 100px;
}

.legal-content h2 {
  margin: 58px 0 16px;
  font-size: 27px;
}

.legal-content h3 {
  margin: 34px 0 10px;
  font-size: 19px;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content a {
  color: var(--teal-dark);
  font-weight: 600;
  text-underline-offset: 4px;
}

.legal-note {
  margin-block: 30px;
  padding: 22px;
  background: var(--surface-soft);
  border-left: 3px solid var(--green-strong);
}

.legal-footer {
  padding-block: 34px;
  color: rgba(255, 255, 255, 0.65);
  background: var(--dark);
}

.legal-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.legal-footer p,
.legal-footer a,
.legal-footer button {
  margin: 0;
  color: inherit;
  background: none;
  border: 0;
  font-size: 11px;
  text-decoration: none;
}

.legal-footer button {
  cursor: pointer;
}

.confirmation-page {
  display: grid;
  min-height: 100svh;
  padding: 28px;
  place-items: center;
  color: var(--white);
  background: var(--navy-deep);
}

.confirmation-panel {
  width: min(680px, 100%);
  padding: 54px;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.confirmation-panel > svg {
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  color: var(--teal);
}

.confirmation-panel h1 {
  font-size: 42px;
}

.confirmation-panel p {
  color: var(--muted);
}

.confirmation-panel .button {
  margin-top: 16px;
}

@media (max-width: 600px) {
  .legal-header img {
    width: 152px;
  }

  .legal-hero {
    padding-block: 60px 46px;
  }

  .legal-content {
    padding-block: 54px 78px;
  }

  .legal-content h2 {
    font-size: 25px;
  }

  .legal-footer .container {
    flex-direction: column;
    gap: 10px;
  }

  .confirmation-page {
    padding: 16px;
  }

  .confirmation-panel {
    padding: 36px 24px;
  }

  .confirmation-panel h1 {
    font-size: 34px;
  }

  .confirmation-panel .button {
    width: 100%;
  }
}

/* Legal and confirmation pages share the same typographic rhythm. */
.legal-hero h1,
.confirmation-panel h1 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.legal-content h2 {
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
}

.legal-content h3 {
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0;
}
