/* Split from marketing-overrides.css — regenerate via scripts/split-marketing-overrides.py */

/* Legal pages */
.pm-legal-page {
  /* Header clearance on .pm-marketing-page-band__content — match /pricing top. */
  padding: 0 0 80px;
  background: #f3f4f7;
}

.pm-legal-page .pm-legal-back {
  margin-bottom: 28px;
  text-decoration: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.pm-legal-page .pm-legal-back:hover {
  text-decoration: none;
  transform: translateX(-2px);
}

.pm-legal-page .pm-legal-back:focus-visible {
  outline: 2px solid var(--pm-accent);
  outline-offset: 3px;
}

.pm-legal-back__icon {
  font-size: 14px;
  line-height: 1;
  opacity: 0.9;
}

.pm-legal-back__label {
  letter-spacing: 0.01em;
  text-transform: none;
}

.pm-legal-title {
  margin: 0 0 24px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pm-text);
}

.pm-legal-content {
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid var(--pm-border);
  background: #fff;
  color: var(--pm-text-muted);
  line-height: 1.65;
}

.pm-legal-content h2 {
  margin: 28px 0 8px;
  font-size: 1.125rem;
  color: var(--pm-text);
}

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

.pm-legal-content ul {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}

.pm-legal-content a {
  color: var(--pm-accent);
  font-weight: 600;
}

.pm-legal-content h3 {
  margin: 20px 0 8px;
  font-size: 1rem;
  color: var(--pm-text);
}

.pm-legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 0.9375rem;
}

.pm-legal-content th,
.pm-legal-content td {
  border: 1px solid var(--pm-border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.pm-legal-content th {
  background: rgba(248, 250, 252, 0.9);
  color: var(--pm-text);
  font-weight: 600;
}

/* Legal pages — dark canvas (marketing band) */
.pm-marketing-page-band:not(:has(.pm-home-dark-band)) .pm-legal-page .pm-legal-back {
  border-color: rgba(52, 199, 89, 0.28);
  background: rgba(11, 18, 36, 0.88);
  color: #7dd3fc;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.pm-marketing-page-band:not(:has(.pm-home-dark-band)) .pm-legal-page .pm-legal-back:hover {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(20, 30, 58, 0.96);
  color: #bae6fd;
}

.pm-marketing-page-band:not(:has(.pm-home-dark-band)) .pm-legal-title {
  color: #f8fafc;
}

.pm-marketing-page-band:not(:has(.pm-home-dark-band)) .pm-legal-content {
  border-color: rgba(52, 199, 89, 0.2);
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(52, 199, 89, 0.1), transparent 55%),
    linear-gradient(165deg, rgba(15, 23, 42, 0.92) 0%, rgba(11, 18, 36, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 40px rgba(0, 0, 0, 0.28);
  color: rgba(226, 232, 240, 0.82);
}

.pm-marketing-page-band:not(:has(.pm-home-dark-band)) .pm-legal-content h2,
.pm-marketing-page-band:not(:has(.pm-home-dark-band)) .pm-legal-content h3 {
  color: #f8fafc;
}

.pm-marketing-page-band:not(:has(.pm-home-dark-band)) .pm-legal-content a {
  color: #7dd3fc;
}

.pm-marketing-page-band:not(:has(.pm-home-dark-band)) .pm-legal-content a:hover {
  color: #bae6fd;
}

.pm-marketing-page-band:not(:has(.pm-home-dark-band)) .pm-legal-content th,
.pm-marketing-page-band:not(:has(.pm-home-dark-band)) .pm-legal-content td {
  border-color: rgba(52, 199, 89, 0.18);
}

.pm-marketing-page-band:not(:has(.pm-home-dark-band)) .pm-legal-content th {
  background: rgba(11, 18, 36, 0.92);
  color: #f8fafc;
}

.pm-contact-form {
  max-width: 640px;
  margin: 0 auto 32px;
}

.pm-contact-form__card {
  padding: 22px 24px 24px;
  border-radius: 18px;
  border: 1px solid rgba(52, 199, 89, 0.2);
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(52, 199, 89, 0.1), transparent 55%),
    linear-gradient(165deg, rgba(15, 23, 42, 0.92) 0%, rgba(11, 18, 36, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 40px rgba(0, 0, 0, 0.28);
  color: rgba(226, 232, 240, 0.9);
}

.pm-contact-form__intro {
  margin-bottom: 14px;
  text-align: center;
}

.pm-contact-form__title {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.5vw, 24px);
  color: #f8fafc;
}

.pm-contact-form__lead {
  margin: 0;
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.55;
  font-size: 15px;
}

.pm-contact-form__fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pm-contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.pm-contact-form__field span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.88);
}

.pm-contact-form__field input,
.pm-contact-form__field textarea,
.pm-contact-form__field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(52, 199, 89, 0.22);
  border-radius: 10px;
  background: rgba(11, 18, 36, 0.88);
  color: #f8fafc;
  font: inherit;
}

.pm-contact-form__field select {
  cursor: pointer;
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(226, 232, 240, 0.72) 50%),
    linear-gradient(135deg, rgba(226, 232, 240, 0.72) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% + 2px),
    calc(100% - 12px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.pm-contact-form__field select:invalid {
  color: rgba(226, 232, 240, 0.55);
}

.pm-contact-form__field input::placeholder,
.pm-contact-form__field textarea::placeholder {
  color: rgba(226, 232, 240, 0.42);
}

.pm-contact-form__field textarea {
  resize: vertical;
  min-height: 140px;
}

.pm-contact-form__field input:focus,
.pm-contact-form__field textarea:focus,
.pm-contact-form__field select:focus {
  outline: 2px solid rgba(52, 199, 89, 0.28);
  border-color: rgba(52, 199, 89, 0.55);
}

.pm-contact-form__field input:disabled,
.pm-contact-form__field textarea:disabled,
.pm-contact-form__field select:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.pm-contact-form__error {
  margin: 0;
  font-size: 13px;
  color: #fca5a5;
}

.pm-contact-form__success-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(52, 199, 89, 0.28);
  background: rgba(52, 199, 89, 0.12);
  color: #bbf7d0;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.pm-contact-form__actions {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.pm-contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: min(100%, 220px);
  min-height: 48px;
  padding-inline: 28px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.pm-contact-form__submit.is-loading {
  opacity: 0.92;
  cursor: wait;
}

.pm-contact-form__submit.is-sent {
  transform: scale(1.02);
  box-shadow:
    0 10px 24px rgba(52, 199, 89, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: default;
}

.pm-contact-form__submit-check {
  flex-shrink: 0;
}

.pm-contact-form__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pm-contact-form-spin 0.7s linear infinite;
}

@keyframes pm-contact-form-spin {
  to {
    transform: rotate(360deg);
  }
}

.pm-contact-support {
  margin-bottom: 36px;
}

.pm-contact-support__intro {
  max-width: 720px;
  margin: 0 auto 20px;
  text-align: center;
}

.pm-contact-support__title {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.5vw, 24px);
  color: #f8fafc;
}

.pm-contact-support__summary,
.pm-contact-support__meta {
  margin: 0;
  color: var(--pm-text-muted);
  line-height: 1.6;
  font-size: 15px;
}

.pm-contact-support__summary {
  margin-bottom: 8px;
}

.pm-contact-support__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
}

.pm-contact-support__inbox a {
  font-weight: 700;
  color: inherit;
}

.pm-contact-support__dot {
  opacity: 0.55;
}

.pm-contact-support__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pm-contact-support__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.35);
}

.pm-contact-support__card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.pm-contact-support__card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  color: #f8fafc;
}

.pm-contact-support__badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(52, 199, 89, 0.14);
  color: #c7d2fe;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pm-contact-support__card p {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--pm-text-muted);
}

.pm-contact-support__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(30, 41, 59, 0.92);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease;
}

.pm-contact-support__link:hover {
  border-color: rgba(165, 180, 252, 0.45);
  background: rgba(51, 65, 85, 0.96);
  color: #fff !important;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .pm-contact-support__grid {
    grid-template-columns: 1fr;
  }

.pm-contact-support__meta {
    flex-direction: column;
    gap: 4px;
  }

.pm-contact-support__dot {
    display: none;
  }
}

.pm-contact-channels__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.pm-contact-channel {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.35);
}

.pm-contact-channel h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.pm-contact-channel p {
  margin: 0 0 10px;
  color: var(--pm-text-muted);
  line-height: 1.55;
}

.pm-contact-channel__email {
  font-weight: 700;
}

/* 404 */
.pm-not-found {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(72vh, 720px);
  padding: 88px 0 104px;
  overflow: hidden;
}

.pm-not-found__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.pm-not-found__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.55;
}

.pm-not-found__glow--a {
  top: -12%;
  left: 50%;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  transform: translateX(-58%);
  background: radial-gradient(circle, rgba(52, 199, 89, 0.28) 0%, transparent 70%);
}

.pm-not-found__glow--b {
  bottom: -18%;
  right: 8%;
  width: min(420px, 60vw);
  height: min(420px, 60vw);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0%, transparent 72%);
}

.pm-not-found__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 20%, transparent 75%);
}

.pm-not-found__inner {
  position: relative;
  max-width: 640px;
  text-align: center;
}

.pm-not-found__code {
  margin: 0 0 10px;
  font-size: clamp(64px, 14vw, 112px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #111936 18%, rgba(17, 25, 54, 0.28) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pm-not-found__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: -0.03em;
}

.pm-not-found__lead {
  margin: 0 auto 28px;
  max-width: 42ch;
  color: var(--pm-text-muted);
  line-height: 1.65;
  font-size: 1.05rem;
}

.pm-not-found__actions {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.pm-not-found__home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 14px;
  background: var(--pm-cta-green-gradient);
  box-shadow: 0 10px 28px var(--pm-cta-green-shadow);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pm-not-found__home:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(52, 199, 89, 0.42);
  color: #fff;
}

.pm-not-found__home:focus-visible {
  outline: 2px solid #34c759;
  outline-offset: 3px;
}

.pm-not-found__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pm-not-found__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.55);
  color: var(--pm-text);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pm-not-found__link:hover {
  border-color: rgba(52, 199, 89, 0.45);
  background: rgba(255, 255, 255, 0.9);
}

@media (prefers-reduced-motion: reduce) {
  .pm-not-found__home {
    transition: none;
  }

.pm-not-found__home:hover {
    transform: none;
  }
}
