.legal-page {
  min-height: 100vh;
}

.legal-page .page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.legal-page .site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(18px);
}

.legal-page .container {
  width: min(1240px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

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

.legal-brand {
  margin: 0;
  color: var(--text);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  color: #12302b;
  background: linear-gradient(135deg, rgba(132, 240, 207, 0.9), rgba(200, 235, 175, 0.9));
  box-shadow: 0 18px 34px rgba(112, 179, 149, 0.18);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-page .legal-shell {
  width: min(920px, calc(100% - 40px));
  margin: clamp(32px, 6vw, 72px) auto 36px;
  padding: clamp(28px, 6vw, 64px);
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  padding: 8px 14px;
  border: 1px solid rgba(4, 120, 87, 0.16);
  border-radius: 999px;
  background: rgba(132, 240, 207, 0.2);
  color: #047857;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-shell h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.25rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.legal-shell > p:not(.legal-kicker) {
  max-width: 68ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.legal-shell section {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line, var(--border));
}

.legal-shell h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.legal-shell p,
.legal-shell li {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.8;
}

.legal-shell p {
  margin: 0 0 12px;
}

.legal-shell ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.legal-shell a:not(.legal-back) {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(63, 111, 224, 0.36);
  text-underline-offset: 3px;
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 28px;
  color: var(--muted);
  font-size: 0.86rem;
}

.legal-footer a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.status-page .page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.status-shell {
  width: min(100%, 620px);
  padding: clamp(32px, 7vw, 64px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(18px);
}

.status-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 22px;
  font-size: 1.8rem;
  font-weight: 700;
}

.success-icon {
  background: rgba(132, 240, 207, 0.28);
  color: #047857;
}

.success-icon::before {
  content: "✓";
}

.canceled-icon {
  background: rgba(255, 201, 120, 0.28);
  color: #9a5c00;
}

.canceled-icon::before {
  content: "×";
}

.status-shell .legal-kicker {
  margin-bottom: 18px;
}

.status-shell h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: -0.06em;
}

.status-shell > p:not(.legal-kicker) {
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.status-actions .button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
}

.status-actions .button-primary {
  background: linear-gradient(135deg, rgba(132, 240, 207, 0.9), rgba(200, 235, 175, 0.9));
  color: #12302b;
}

.status-actions .button-secondary {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
}

@media (max-width: 600px) {
  .legal-header-inner {
    min-height: 76px;
  }

  .legal-page .container {
    width: calc(100% - 32px);
  }

  .legal-back {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.84rem;
  }

  .legal-page .legal-shell {
    width: calc(100% - 24px);
    margin-top: 24px;
    padding: 26px 22px;
  }

  .legal-footer {
    width: calc(100% - 32px);
  }
}
