/* Secondary pages: legal documents, contact, thank-you and 404. Loaded after styles.css. */
.page {
  padding-bottom: 110px;
}
.page-hero {
  padding-top: 84px;
  padding-bottom: 48px;
}
.page-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.045em;
  margin: 22px 0 22px;
}
.page-title span {
  background: linear-gradient(110deg, #eff3ff 12%, #9caff3 62%, #7188d0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-lede {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

/* Legal documents */
.legal-meta {
  margin-top: 22px;
  font-size: 14px;
  color: #8d96a8;
}
.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
.legal-toc {
  position: sticky;
  top: 28px;
  font-size: 14px;
}
.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid #2b3344;
}
.legal-toc a {
  display: block;
  padding: 7px 0 7px 16px;
  color: #a0a6b3;
  line-height: 1.4;
}
.legal-toc a:hover {
  color: white;
}
.legal-body {
  max-width: 740px;
  color: #bcc2ce;
  font-size: 16px;
  line-height: 1.75;
}
.legal-body section + section {
  margin-top: 48px;
}
.legal-body h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 16px;
}
.legal-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: #e3e7ef;
  margin: 28px 0 10px;
}
.legal-body p + p,
.legal-body p + ul,
.legal-body ul + p {
  margin-top: 14px;
}
.legal-body ul {
  margin: 0;
  padding-left: 22px;
}
.legal-body li + li {
  margin-top: 8px;
}
.legal-body strong {
  color: #e3e7ef;
  font-weight: 600;
}
.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-body a:hover {
  color: white;
}
.legal-callout {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #2f3b57;
  border-left: 2px solid #8ca9e6;
  border-radius: 8px;
  background: #121a2a;
  color: #c3cfe6;
}
.legal-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}
.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid #262b35;
}
.legal-table th {
  color: #8d96a8;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.legal-table td:first-child {
  color: #e3e7ef;
  white-space: nowrap;
}

/* Contact */
/* Intro and details on the left, form on the right; on phones the form comes
   straight after the intro. */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-areas:
    "intro card"
    "more card";
  grid-template-rows: auto 1fr;
  column-gap: 72px;
  align-items: start;
  padding-top: 84px;
}
.contact-intro {
  grid-area: intro;
}
.contact-intro .page-title {
  font-size: clamp(40px, 4.6vw, 64px);
}
.contact-card {
  grid-area: card;
}
.contact-more {
  grid-area: more;
}
.contact-steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  counter-reset: steps;
}
.contact-steps li {
  counter-increment: steps;
  position: relative;
  padding: 18px 0 18px 52px;
  border-top: 1px solid #262b35;
}
.contact-steps li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 20px;
  font-size: 12px;
  letter-spacing: 1.4px;
  color: #95b7e6;
}
.contact-steps b {
  display: block;
  font-weight: 600;
  font-size: 16px;
}
.contact-steps span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.6;
  color: #9aa3b4;
}
.contact-direct {
  margin-top: 32px;
}
.contact-card {
  border: 1px solid #2b3344;
  border-radius: 16px;
  padding: 36px;
  background: radial-gradient(circle at 90% 0, #6c8bd91a, transparent 45%), #10151f;
  box-shadow: 0 30px 90px #0005;
}
.contact-card h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.6px;
}
.form-note {
  margin-top: 8px;
  font-size: 14px;
  color: #9aa3b4;
}
.contact-form {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  min-width: 0;
}
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #dfe4ee;
}
.field .optional {
  font-weight: 400;
  color: #8d96a8;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #343d52;
  border-radius: 9px;
  background: #0b0f17;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #6f7889;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #a8bcff33;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #f08b8b;
}
.field input[aria-invalid="true"]:focus,
.field textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px #f08b8b33;
}
.field-error {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.5;
  color: #ffaaaa;
}
.field-error[hidden],
.form-alert[hidden] {
  display: none;
}
.form-alert {
  padding: 14px 16px;
  border: 1px solid #6b3a3f;
  border-radius: 9px;
  background: #2a1517;
  color: #ffd1d1;
  font-size: 14px;
  line-height: 1.6;
}
.form-alert a {
  color: inherit;
  text-decoration: underline;
}
/* Off-screen trap for bots; people never see or reach it. */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.turnstile-box {
  min-height: 65px;
}
.turnstile-box[hidden] {
  display: none;
}
.submit-button {
  width: 100%;
  min-height: 52px;
  gap: 10px;
  font-size: 16px;
}
.submit-button:disabled {
  cursor: progress;
  opacity: 0.75;
  transform: none;
}
.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid #10152855;
  border-top-color: #101528;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.submit-button[aria-busy="true"] .spinner {
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.form-legal {
  font-size: 13px;
  line-height: 1.6;
  color: #8d96a8;
}
.form-legal a {
  color: #c3c8d3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Thank-you and 404 */
.message-page {
  min-height: calc(100vh - 94px - 320px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 96px;
}
.message-page .eyebrow {
  justify-content: center;
}
.message-page .page-lede {
  margin: 0 auto;
}
.message-mark {
  width: 56px;
  height: 56px;
  border: 13px solid var(--blue);
  border-radius: 50%;
  margin-bottom: 30px;
  box-shadow: 0 0 60px #7292fa40;
}
.message-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.message-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  margin-top: 28px;
  font-size: 14px;
  color: #9aa3b4;
}
.message-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #c3c8d3;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.message-links a:hover {
  color: white;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .legal-toc {
    display: none;
  }
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "intro"
      "card"
      "more";
    grid-template-rows: auto;
    row-gap: 40px;
  }
  .contact-steps {
    margin-top: 0;
  }
}
@media (max-width: 650px) {
  .page {
    padding-bottom: 72px;
  }
  .page-hero {
    padding-top: 56px;
    padding-bottom: 36px;
  }
  .page-title {
    letter-spacing: -0.035em;
  }
  .page-lede {
    font-size: 16px;
  }
  .legal-layout {
    padding-top: 36px;
  }
  .legal-body h2 {
    font-size: 21px;
  }
  .legal-table td:first-child {
    white-space: normal;
  }
  .contact-layout {
    padding-top: 56px;
  }
  .contact-card {
    padding: 24px 18px;
    border-radius: 14px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .message-page {
    padding-top: 64px;
  }
  .message-actions .button {
    flex: 1 1 140px;
    min-height: 48px;
  }
}
