.tm-legacy-main {
  background: var(--white);
}

.tm-legacy-content {
  max-width: 1180px;
  padding-top: 64px;
  padding-bottom: 80px;
}

.tm-legacy-content * {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tm-legacy-content .elementor-shape {
  overflow: hidden;
}

.tm-legacy-content h1,
.tm-legacy-content h2,
.tm-legacy-content h3,
.tm-legacy-content h4 {
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-wrap: balance;
}

.tm-legacy-content h1 {
  margin-bottom: 28px;
  font-size: clamp(34px, 4.5vw, 48px);
  letter-spacing: -0.04em;
}

.tm-legacy-content h2 {
  margin-top: 38px;
  margin-bottom: 18px;
  font-size: clamp(26px, 3vw, 34px);
}

.tm-legacy-content h3 {
  margin-top: 30px;
  margin-bottom: 14px;
  font-size: 22px;
}

.tm-legacy-content h4 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 19px;
}

.tm-legacy-content p,
.tm-legacy-content li {
  font-size: 16px;
  line-height: 1.65;
}

.tm-legacy-content a {
  color: #12658b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tm-legacy-content a:hover {
  color: var(--navy);
}

.tm-legacy-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.tm-legacy-content iframe {
  max-width: 100%;
  border: 0;
  border-radius: 16px;
}

.tm-legacy-content .elementor-button,
.tm-legacy-content .wp-block-button__link,
.tm-legacy-content button,
.tm-legacy-content input[type='submit'],
.tm-legacy-content input[type='button'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  color: var(--navy);
  background: var(--azure);
  box-shadow: 0 8px 20px rgba(41, 182, 230, 0.16);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.tm-legacy-content .elementor-button:hover,
.tm-legacy-content .wp-block-button__link:hover,
.tm-legacy-content button:hover,
.tm-legacy-content input[type='submit']:hover,
.tm-legacy-content input[type='button']:hover {
  color: var(--navy);
  background: #61c9ed;
}

.tm-legacy-content form input:not([type='submit']):not([type='button']):not([type='checkbox']):not([type='radio']),
.tm-legacy-content form select,
.tm-legacy-content form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #cbd9e3;
  border-radius: 10px;
  color: var(--navy);
  background: var(--white);
  font: inherit;
}

.tm-legacy-content form textarea {
  min-height: 120px;
}

.tm-legacy-content form input:focus,
.tm-legacy-content form select:focus,
.tm-legacy-content form textarea:focus {
  border-color: #1681ad;
  outline: 3px solid rgba(41, 182, 230, 0.2);
}

.tm-legacy-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.tm-legacy-content th,
.tm-legacy-content td {
  padding: 12px;
  border: 1px solid var(--border);
  text-align: left;
}

.tm-legacy-content th {
  color: var(--navy);
  background: var(--cloud);
}

.tm-legacy-content .elementor-section {
  padding-block: 32px;
}

.tm-legacy-content .elementor-widget:not(:last-child) {
  margin-bottom: 20px;
}

.tm-legacy-content ul,
.tm-legacy-content ol {
  padding-left: 24px;
}

.tm-legacy-content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--azure);
  border-radius: 0 14px 14px 0;
  color: var(--navy);
  background: var(--cloud);
}

.tm-legacy-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 20px;
  border-radius: 14px;
  color: var(--white);
  background: var(--navy-deep);
}

.tm-legacy-content figure,
.tm-legacy-content .wp-block-image {
  margin-inline: 0;
}

@media (max-width: 580px) {
  .tm-legacy-content {
    padding-top: 44px;
    padding-bottom: 56px;
  }

  .tm-legacy-content h1 {
    font-size: 32px;
  }

  .tm-legacy-content h2 {
    font-size: 26px;
  }

  .tm-legacy-content .elementor-section {
    padding-block: 20px;
  }

  .tm-legacy-content .elementor-absolute {
    position: static !important;
  }

  .tm-legacy-content .elementor-absolute img {
    max-width: 100%;
    height: auto;
  }
}
