/* ==========================================================================
   ZerσSigma utility pages

   Login, signup, account, billing, support, legal, subscription, and error
   surfaces. The zsp-utility-shell scope prevents leakage into marketing pages
   or the protected application.
   ========================================================================== */

/* Shared utility, account, billing, support, and legal surfaces */

.zsp-utility-shell .zsp-utility-main {
  width: min(1180px, calc(100% - 2rem));
  margin-right: auto;
  margin-left: auto;
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(5rem, 8vw, 7rem);
}

.zsp-utility-shell .zs-route-shell {
  gap: clamp(1.25rem, 2.6vw, 2rem);
}

.zsp-utility-shell .zsp-legal-shell {
  width: min(100%, 58rem);
  margin-right: auto;
  margin-left: auto;
}

.zsp-utility-shell .zs-route-hero {
  max-width: 48rem;
}

.zsp-utility-shell .zs-route-hero h1 {
  color: var(--zsp-text);
  font-family:
    "Segoe UI Variable Display", Inter, "SF Pro Display", "Segoe UI",
    Helvetica, Arial, sans-serif;
  font-size: clamp(2.15rem, 4vw, 3.75rem);
  font-weight: 660;
  letter-spacing: -0.058em;
  line-height: 0.98;
}

.zsp-utility-shell .zs-route-hero p {
  max-width: 43rem;
  color: var(--zsp-text-soft);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.72;
}

.zsp-utility-shell .zs-section-kicker,
.zsp-utility-shell .zs-surface-card__kicker {
  color: var(--zsp-accent);
  font-family:
    "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  font-weight: 690;
  letter-spacing: 0.13em;
}

.zsp-utility-shell .zs-surface-card,
.zsp-utility-shell .zs-legal-section,
.zsp-utility-shell .zs-placeholder-card,
.zsp-utility-shell .zs-account-premium,
.zsp-utility-shell .zs-account-resources {
  border-color: var(--zsp-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent),
    var(--zs-surface-translucent);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.025),
    0 18px 46px rgba(0, 0, 0, 0.24);
}

.zsp-utility-shell .zs-surface-card,
.zsp-utility-shell .zs-legal-section {
  border-radius: var(--zsp-radius-md);
}

.zsp-utility-shell .zs-surface-card--premium,
.zsp-utility-shell .zs-account-premium {
  border-color:var(--zs-border-strong);
  background:
    radial-gradient(circle at 100% 0%,var(--zs-brand-accent-wash),transparent 44%),
    var(--zs-gradient-panel);
  box-shadow:
    0 0 0 1px rgba(93, 134, 211, 0.08),
    0 20px 48px rgba(0, 0, 0, 0.26);
}

.zsp-utility-shell .zs-price-callout {
  border-color:var(--zs-border-default);
  background:var(--zs-brand-accent-wash);
}

.zsp-utility-shell .zs-price-chip,
.zsp-utility-shell .zs-account-premium__chip {
  border-color:var(--zs-border-default);
  background:var(--zs-control-bg);
}

.zsp-utility-shell .zs-form-field__input {
  border-color:var(--zs-border-default);
  border-radius: 0.78rem;
  background:var(--zs-control-bg);
  color: var(--zsp-text);
}

.zsp-utility-shell .zs-form-field__input:focus {
  border-color:var(--zs-border-strong);
  box-shadow:0 0 0 3px var(--zs-brand-accent-wash);
}

.zsp-utility-shell .zs-inline-link,
.zsp-utility-shell .zs-account-resources__link {
  color: var(--zsp-accent-bright);
}

.zsp-utility-shell .zs-inline-link:hover,
.zsp-utility-shell .zs-account-resources__link:hover {
  color: var(--zsp-text);
}

.zsp-utility-shell .zs-legal-doc {
  gap: 1rem;
  margin-top: 1.35rem;
}

.zsp-utility-shell .zs-legal-section {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.zsp-utility-shell .zs-legal-section h2 {
  color: var(--zsp-text);
  font-family:
    "Segoe UI Variable Display", Inter, "SF Pro Display", "Segoe UI",
    Helvetica, Arial, sans-serif;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
}

.zsp-utility-shell .zs-legal-section p,
.zsp-utility-shell .zs-legal-list {
  color:var(--zs-text-secondary);
  font-size: 0.98rem;
  line-height: 1.78;
}

.zsp-utility-shell .zs-legal-meta {
  color: var(--zsp-muted);
}

.zsp-utility-shell .zs-legal-meta strong {
  color: var(--zsp-text-soft);
}

@media (max-width: 780px) {
  .zsp-utility-shell .zsp-utility-main {
    width: min(100% - 1rem, 1180px);
    padding-top: 3.25rem;
  }

  .zsp-utility-shell .zs-auth-grid,
  .zsp-utility-shell .zs-dashboard-grid,
  .zsp-utility-shell .zs-billing-grid,
  .zsp-utility-shell .zs-guard-grid {
    grid-template-columns: 1fr;
  }

  .zsp-utility-shell .zs-route-hero h1 {
    font-size: clamp(2rem, 9.6vw, 2.9rem);
  }

  .zsp-utility-shell .zs-surface-card,
  .zsp-utility-shell .zs-legal-section {
    padding: 1.25rem;
  }
}
