/* How to join page – extends legal-pages theme only */

body.hj-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

body.hj-page,
body.hj-page *,
body.hj-page *::before,
body.hj-page *::after {
  box-sizing: border-box;
}

.hj-main {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) 20px clamp(48px, 8vw, 72px);
}

.hj-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(18px, 3vw, 24px);
  font-size: 13px;
  color: var(--legal-muted);
}

.hj-breadcrumb a {
  color: var(--legal-link);
  text-decoration: none;
}

.hj-breadcrumb a:hover {
  text-decoration: underline;
}

.hj-breadcrumb [aria-current="page"] {
  color: #e8eaed;
}

.hj-hero,
.hj-section,
.hj-cta {
  margin-bottom: 16px;
  padding: clamp(18px, 3vw, 28px);
  background: var(--legal-bg-card);
  border: 1px solid var(--legal-border);
  border-radius: 16px;
}

.hj-hero {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(142, 180, 255, 0.16), transparent 52%),
    var(--legal-bg-card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.hj-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--legal-accent-soft);
  border: 1px solid var(--legal-accent-border);
  color: var(--legal-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hj-hero h1,
.hj-section h2,
.hj-cta h2 {
  margin: 0 0 12px;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hj-hero h1 {
  font-size: clamp(1.75rem, 4.6vw, 2.45rem);
  font-weight: 700;
}

.hj-section h2,
.hj-cta h2 {
  font-size: clamp(1.12rem, 3vw, 1.35rem);
  font-weight: 700;
}

.hj-hero p,
.hj-section p,
.hj-section li,
.hj-cta p {
  color: #c8cdd6;
  font-size: clamp(14px, 2.6vw, 16px);
  line-height: 1.65;
}

.hj-hero p {
  max-width: 42rem;
  margin: 0 0 20px;
}

.hj-section p,
.hj-cta p {
  margin: 0 0 12px;
}

.hj-section p:last-child,
.hj-cta p:last-child {
  margin-bottom: 0;
}

.hj-section a,
.hj-cta a:not(.hj-btn) {
  color: var(--legal-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hj-section .hj-btn,
.hj-cta .hj-btn {
  text-decoration: none;
}

.hj-section .hj-btn--primary,
.hj-cta .hj-btn--primary {
  color: #fff;
}

.hj-section .hj-btn--secondary,
.hj-cta .hj-btn--secondary {
  color: #e8eaed;
}

.hj-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.hj-btn {
  display: inline-block;
  max-width: 100%;
  min-width: 0;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  transition: background 0.2s, transform 0.15s, color 0.2s;
}

.hj-btn:hover {
  transform: translateY(-1px);
}

.hj-btn:focus-visible,
.hj-breadcrumb a:focus-visible,
.faq-question:focus-visible {
  outline: 2px solid var(--legal-accent);
  outline-offset: 3px;
}

.hj-btn--primary {
  background: #3a63f3;
  color: #fff;
}

.hj-btn--primary:hover {
  background: #0d39d4;
  color: #fff;
}

.hj-btn--secondary {
  background: transparent;
  color: #e8eaed;
  border: 1px solid var(--legal-accent-border);
}

.hj-btn--secondary:hover {
  background: var(--legal-accent-soft);
  color: #fff;
}

.hj-steps,
.hj-pays {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
}

@media (min-width: 720px) {
  .hj-steps {
    grid-template-columns: 1fr 1fr;
  }

  .hj-pays {
    grid-template-columns: 1fr 1fr;
  }
}

.hj-steps li,
.hj-pays li {
  min-width: 0;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--legal-border);
}

.hj-step-num {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--legal-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hj-steps h3,
.hj-pays h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.hj-steps p,
.hj-pays p {
  margin: 0;
  font-size: 14px;
}

.hj-price {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.hj-price strong {
  display: block;
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hj-guide {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: hj-guide;
}

.hj-guide li {
  counter-increment: hj-guide;
  position: relative;
  margin-bottom: 12px;
  padding-left: 40px;
}

.hj-guide li::before {
  content: counter(hj-guide);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--legal-accent-soft);
  border: 1px solid var(--legal-accent-border);
  color: var(--legal-accent);
  font-size: 13px;
  font-weight: 700;
}

.hj-cta {
  text-align: center;
}

.hj-cta .hj-actions {
  justify-content: center;
}

@media (max-width: 720px) {
  .hj-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hj-actions > .hj-btn {
    width: 100%;
    min-width: 0;
  }

  .hj-price {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .hj-main {
    padding-left: 16px;
    padding-right: 16px;
  }
}
