/* Shared layout for legal/oauth/error subpages. Relies on the design tokens,
   header, footer and button styles already defined in landing.css — link
   both stylesheets together, this file only adds what's specific to these
   inner pages. */

.page-main {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), 1120px);
  margin: 0 auto;
  padding: 9rem 0 6rem;
  min-height: 100vh;
}

.page-hero {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--muted);
  font-size: 1rem;
}

.doc-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 820px;
}

.doc-grid .category-card p {
  margin-bottom: 0;
}

.doc-grid .category-card ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.doc-grid .category-card li::marker {
  color: var(--blue-400);
}

.doc-grid code {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
  font-size: 0.88em;
  color: var(--blue-300);
}

.doc-grid a {
  color: var(--blue-300);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Error pages (400/403/404/405/500/502/503/504) */
.error-shell {
  max-width: 640px;
}

.error-code {
  font-size: clamp(4.5rem, 15vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--blue-300), var(--blue-500) 60%, var(--blue-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.error-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.error-message {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2.25rem;
  max-width: 520px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Status pills (oauth success/error) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.75rem;
}

.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.status-pill.is-success {
  color: var(--green);
  border-color: rgba(61, 220, 145, 0.35);
  background: rgba(61, 220, 145, 0.08);
}

.status-pill.is-error {
  color: var(--red);
  border-color: rgba(255, 92, 92, 0.35);
  background: rgba(255, 92, 92, 0.08);
}

.guild-count {
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--green);
}

.guild-label {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.error-msg-box {
  font-size: 0.9rem;
  color: var(--soft);
  background: rgba(255, 92, 92, 0.06);
  border: 1px solid rgba(255, 92, 92, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  word-break: break-word;
}

@media (max-width: 560px) {
  .page-main {
    padding-top: 7.5rem;
  }
}
