/* Triplan legal and informational pages. */

.tp-static-page {
  min-height: 70vh;
  padding-bottom: 64px;
  background: #fff;
}

.tp-static-page__container {
  width: 100%;
  max-width: var(--tp-content-max-width, 1440px);
  margin: 0 auto;
  padding-inline: var(--tp-section-padding-x-desktop, clamp(42px, 5vw, 76px));
}

.tp-static-page__hero {
  padding: 52px 0 48px;
  background:
    radial-gradient(circle at 85% 10%, rgba(27, 186, 202, 0.35), transparent 30%),
    linear-gradient(135deg, #0f1b2d 0%, var(--tp-primary-dark) 100%);
  color: #fff;
}

.tp-static-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
}

.tp-static-page__hero p,
.tp-static-page__hero h1,
.tp-static-page__hero span {
  margin: 0;
}

.tp-static-page__hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.tp-static-page__hero h1 {
  max-width: 900px;
  margin-top: 8px;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.05;
}

.tp-static-page__hero span {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.tp-static-page__layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 760px);
  justify-content: center;
  align-items: start;
  gap: clamp(36px, 6vw, 88px);
  padding-top: 48px;
}

.tp-static-page__toc {
  position: sticky;
  top: calc(var(--tp-site-header-height, 78px) + 24px);
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(26, 43, 73, 0.12);
  border-radius: 12px;
  background: var(--tp-50);
}

.tp-static-page__toc strong {
  padding: 8px 10px;
  color: var(--tp-900);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tp-static-page__toc a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--tp-600) !important;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none !important;
  transition: background-color var(--tp-motion-fast), color var(--tp-motion-fast);
}

.tp-static-page__toc a:hover,
.tp-static-page__toc a:focus-visible,
.tp-static-page__toc a.is-active {
  background: var(--tp-primary-50);
  color: var(--tp-primary-dark) !important;
}

.tp-static-page__content {
  min-width: 0;
  color: var(--tp-700);
}

.tp-static-page__content > section,
.tp-static-page__document > * {
  scroll-margin-top: 110px;
}

.tp-static-page__content > section:not(.tp-static-page__intro) {
  padding: 24px 0;
  border-top: 1px solid rgba(26, 43, 73, 0.1);
}

.tp-static-page__content > section:nth-child(2) {
  border-top: 0;
}

.tp-static-page__content h2,
.tp-static-page__document h3 {
  margin: 0 0 10px;
  color: var(--tp-900);
  font-family: var(--tp-heading-font);
  line-height: 1.25;
}

.tp-static-page__content h2 {
  font-size: 1.22rem;
}

.tp-static-page__document h3 {
  padding-top: 26px;
  border-top: 1px solid rgba(26, 43, 73, 0.1);
  font-size: 1.15rem;
}

.tp-static-page__document h3:first-child {
  padding-top: 0;
  border-top: 0;
}

.tp-static-page__content p,
.tp-static-page__content li {
  font-size: 0.94rem;
  line-height: 1.75;
}

.tp-static-page__content p {
  margin: 0 0 12px;
}

.tp-static-page__content ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.tp-static-page__content a {
  color: var(--tp-primary-dark);
  font-weight: 700;
  text-underline-offset: 3px;
}

.tp-static-page__intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(27, 186, 202, 0.2);
  border-radius: 12px;
  background: var(--tp-primary-50);
}

.tp-static-page__intro i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #fff;
  color: var(--tp-primary-dark);
}

.tp-static-page__intro p {
  align-self: center;
  margin: 0;
  color: var(--tp-700);
}

.tp-static-page__facts {
  display: grid;
  margin: 16px 0;
  border: 1px solid rgba(26, 43, 73, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.tp-static-page__facts div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  border-top: 1px solid rgba(26, 43, 73, 0.1);
}

.tp-static-page__facts div:first-child {
  border-top: 0;
}

.tp-static-page__facts dt,
.tp-static-page__facts dd {
  padding: 12px 14px;
}

.tp-static-page__facts dt {
  background: var(--tp-50);
  color: var(--tp-600);
  font-size: 0.78rem;
  font-weight: 750;
}

.tp-static-page__facts dd {
  margin: 0;
  color: var(--tp-800);
  font-size: 0.86rem;
}

.tp-static-page__steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-static-page__steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(26, 43, 73, 0.12);
  border-radius: 12px;
}

.tp-static-page__steps > li > span {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--tp-primary-50);
  color: var(--tp-primary-dark);
}

.tp-static-page__steps small {
  color: var(--tp-primary);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tp-static-page__steps h2,
.tp-static-page__steps p {
  margin: 0;
}

.tp-static-page__steps h2 {
  margin-top: 2px;
  font-size: 1rem;
}

.tp-static-page__steps p {
  margin-top: 4px;
  color: var(--tp-600);
}

.tp-static-page__cta {
  margin-top: 26px;
  padding: 26px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--tp-primary-dark), var(--tp-primary));
  color: var(--tp-midnight);
  text-align: center;
}

.tp-static-page__cta h2,
.tp-static-page__cta p {
  margin: 0;
  color: #fff;
}

.tp-static-page__cta p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
}

.tp-static-page__cta a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--tp-accent);
  color: var(--tp-midnight) !important;
  text-decoration: none !important;
}

@media (max-width: 900px) {
  .tp-static-page__layout {
    grid-template-columns: 1fr;
  }

  .tp-static-page__toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tp-static-page__toc strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .tp-static-page {
    padding-bottom: 44px;
  }

  .tp-static-page__container {
    padding-inline: var(--tp-section-padding-x-mobile, 18px);
  }

  .tp-static-page__hero {
    padding: 34px 0;
  }

  .tp-static-page__layout {
    gap: 28px;
    padding-top: 28px;
  }

  .tp-static-page__toc {
    grid-template-columns: 1fr;
  }

  .tp-static-page__toc strong {
    grid-column: auto;
  }

  .tp-static-page__facts div {
    grid-template-columns: 1fr;
  }

  .tp-static-page__facts dd {
    padding-top: 4px;
  }
}
