  /* =====================================================
     SCOPED RESET
  ===================================================== */

  .ht-terms-page,
  .ht-terms-page *,
  .ht-terms-page *::before,
  .ht-terms-page *::after {
    box-sizing: border-box;
  }

  .ht-terms-page {
    --ht-terms-sticky-offset: 20px;

    width: 100%;
    max-width: 100%;
    padding: 48px 20px;
    overflow: clip;
    color: #252932;
    background:
      radial-gradient(
        circle at 10% 0%,
        rgba(255, 229, 45, 0.17),
        transparent 25%
      ),
      linear-gradient(180deg, #fafbfc 0%, #f3f5f8 100%);
    font-family: "Poppins", Arial, sans-serif;
  }

  .ht-terms-container {
    width: min(1200px, 100%);
    min-width: 0;
    margin: 0 auto;
  }

  /* =====================================================
     HERO
  ===================================================== */

  .ht-terms-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    padding: 44px;
  background: linear-gradient(135deg, rgb(0 0 0 / 98%), rgb(255 168 15 / 98%));
    border: 1px solid rgba(151, 124, 0, 0.16);
    border-radius: 24px;
    box-shadow:
      0 2px 5px rgba(17, 24, 39, 0.04),
      0 16px 40px rgba(117, 90, 0, 0.12);
  }

  .ht-terms-hero::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -65px;
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    pointer-events: none;
  }

  .ht-terms-hero::after {
    content: "";
    position: absolute;
    right: 145px;
    bottom: -95px;
    width: 190px;
    height: 190px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    pointer-events: none;
  }

  .ht-terms-hero__content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    min-width: 0;
  }

  .ht-terms-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
       color: #fffdf7;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
  }

  .ht-terms-hero__label::before {
    content: "";
    flex: 0 0 28px;
    width: 28px;
    height: 3px;
        background: #fffbee;
    border-radius: 999px;
  }

  .ht-terms-hero__title {
    margin: 0;
   color: #f7f7f7;
    font-size: clamp(34px, 6vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    overflow-wrap: anywhere;
  }

  .ht-terms-hero__description {
    max-width: 720px;
    margin: 16px 0 0;
        color: #fffefb;
    font-size: 15px;
    line-height: 1.8;
  }

  .ht-terms-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
  }

  .ht-terms-hero__date,
  .ht-terms-hero__company {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 8px 13px;
    color: #4f410c;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(119, 94, 0, 0.14);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(73, 56, 0, 0.05);
    font-size: 12px;
    font-weight: 600;
  }

  /* =====================================================
     MAIN LAYOUT
  ===================================================== */

  .ht-terms-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    min-width: 0;
  }

  /* =====================================================
     NAVIGATION
  ===================================================== */

  .ht-terms-navigation {
    position: sticky;
    top: var(--ht-terms-sticky-offset);
    max-height: calc(100vh - var(--ht-terms-sticky-offset) - 20px);
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #e1e4e8;
    border-radius: 18px;
    box-shadow:
      0 2px 5px rgba(17, 24, 39, 0.03),
      0 12px 30px rgba(17, 24, 39, 0.07);
    scrollbar-width: thin;
    scrollbar-color: #c5c8ce transparent;
  }

  .ht-terms-navigation::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  .ht-terms-navigation::-webkit-scrollbar-track {
    background: transparent;
  }

  .ht-terms-navigation::-webkit-scrollbar-thumb {
    background: #c5c8ce;
    border-radius: 999px;
  }

  .ht-terms-navigation__title {
    margin: 0 0 15px;
    color: #17191f;
    font-size: 15px;
    font-weight: 700;
  }

  .ht-terms-navigation__list {
    display: flex;
    margin: 0;
    padding: 0;
    flex-direction: column;
    gap: 4px;
    list-style: none;
  }

  .ht-terms-navigation__list > li {
    min-width: 0;
  }

  .ht-terms-navigation__link {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    color: #69707d;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition:
      color 0.2s ease,
      background 0.2s ease,
      box-shadow 0.2s ease,
      transform 0.2s ease;
  }

  .ht-terms-navigation__number {
    display: inline-flex;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    color: #806000;
    background: #fff7c8;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
    transition:
      color 0.2s ease,
      background 0.2s ease,
      box-shadow 0.2s ease;
  }

  .ht-terms-navigation__link:hover {
    color: #17191f;
    background: #fffbea;
    transform: translateX(3px);
  }

  .ht-terms-navigation__link:focus-visible {
    color: #17191f;
    background: #fffbea;
    outline: 2px solid #e8c500;
    outline-offset: 2px;
  }

  /* Active navigation link */

  .ht-terms-navigation__link.is-active {
    color: #171300;
    background:
      linear-gradient(
        135deg,
        #fff7c8 0%,
        #ffe978 100%
      );
    box-shadow:
      inset 3px 0 0 #d9b800,
      0 4px 12px rgba(117, 90, 0, 0.1);
    font-weight: 700;
    transform: translateX(3px);
  }

  .ht-terms-navigation__link.is-active
  .ht-terms-navigation__number {
    color: #ffffff;
    background: #806000;
    box-shadow: 0 3px 8px rgba(80, 61, 0, 0.2);
  }

  /* =====================================================
     CONTENT CARD
  ===================================================== */

  .ht-terms-content {
    min-width: 0;
    padding: 36px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 20px;
    box-shadow:
      0 2px 5px rgba(17, 24, 39, 0.03),
      0 15px 40px rgba(17, 24, 39, 0.07);
  }

  .ht-terms-introduction {
    margin: 0 0 8px;
    color: #555d6a;
    font-size: 14px;
    line-height: 1.85;
    overflow-wrap: anywhere;
  }

  .ht-terms-introduction strong {
    color: #17191f;
  }

  /* =====================================================
     TERMS SECTIONS
  ===================================================== */

  .ht-terms-section {
    padding: 30px 0;
    border-bottom: 1px solid #e7e9ed;
    scroll-margin-top: calc(var(--ht-terms-sticky-offset) + 20px);
  }

  .ht-terms-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .ht-terms-section__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    color: #17191f;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .ht-terms-section__number {
    display: inline-flex;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: #735700;
    background:
      linear-gradient(
        135deg,
        #fff6ba 0%,
        #ffe52d 100%
      );
    border: 1px solid #efd965;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(117, 90, 0, 0.08);
    font-size: 13px;
    font-weight: 700;
  }

  .ht-terms-section__text {
    margin: 0;
    color: #5f6672;
    font-size: 14px;
    line-height: 1.85;
    overflow-wrap: anywhere;
  }

  .ht-terms-section__text + .ht-terms-section__text {
    margin-top: 12px;
  }

  /* =====================================================
     LISTS
  ===================================================== */

  .ht-terms-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
  }

  .ht-terms-list--single {
    grid-template-columns: 1fr;
  }

  .ht-terms-list__item {
    position: relative;
    min-width: 0;
    padding: 11px 12px 11px 38px;
    color: #4e5561;
    background: #fafbfc;
    border: 1px solid #e8eaee;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .ht-terms-list__item::before {
    content: "✓";
    position: absolute;
    top: 11px;
    left: 12px;
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    color: #745900;
    background: #fff3a5;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
  }

  /* =====================================================
     INFORMATION BOX
  ===================================================== */

  .ht-terms-notice {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 13px;
    margin-top: 17px;
    padding: 16px;
    color: #4b5563;
    background:
      linear-gradient(
        135deg,
        rgba(255, 249, 216, 0.85),
        rgba(255, 255, 255, 0.95)
      );
    border: 1px solid #f0df89;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  .ht-terms-notice__icon {
    display: inline-flex;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: #745900;
    background: #ffe978;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
  }

  /* Privacy link */

  .ht-terms-privacy-link {
    color: #745900;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #d9b800;
    text-underline-offset: 3px;
  }

  .ht-terms-privacy-link:hover {
    color: #171300;
  }

  .ht-terms-privacy-link:focus-visible {
    outline: 2px solid #e8c500;
    outline-offset: 3px;
    border-radius: 3px;
  }

  /* =====================================================
     GOVERNING LAW CARD
  ===================================================== */

  .ht-terms-law-card {
    margin-top: 18px;
    padding: 20px;
    background:
      linear-gradient(
        135deg,
        #1c2028 0%,
        #2c323d 100%
      );
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.15);
  }

  .ht-terms-law-card__title {
    display: block;
    margin-bottom: 7px;
    color: #ffe52d;
    font-size: 16px;
    font-weight: 700;
  }

  .ht-terms-law-card__text {
    margin: 0;
    color: #eef0f3;
    font-size: 13px;
    line-height: 1.75;
  }

  .ht-terms-law-card__location {
    display: block;
    margin-top: 13px;
    padding-top: 13px;
    color: #d6d9df;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    line-height: 1.7;
  }

  /* =====================================================
     BACK TO TOP
  ===================================================== */

  .ht-terms-back-top {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 24px;
    padding: 9px 12px;
    color: #735700;
    background: #fff7c8;
    border: 1px solid #eedb76;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition:
      transform 0.2s ease,
      background 0.2s ease;
  }

  .ht-terms-back-top:hover {
    background: #ffef8d;
    transform: translateY(-2px);
  }

  .ht-terms-back-top:focus-visible {
    outline: 2px solid #e8c500;
    outline-offset: 3px;
  }

  /* =====================================================
     LAPTOP
  ===================================================== */

  @media (min-width: 992px) and (max-width: 1199px) {
    .ht-terms-page {
      padding: 38px 18px;
    }

    .ht-terms-layout {
      grid-template-columns: 235px minmax(0, 1fr);
      gap: 20px;
    }

    .ht-terms-navigation {
      padding: 17px;
    }

    .ht-terms-navigation__link {
      padding: 8px;
      font-size: 10.5px;
    }

    .ht-terms-content {
      padding: 30px;
    }
  }

  /* =====================================================
     TABLET AND MOBILE NAVIGATION
  ===================================================== */

  @media (max-width: 991px) {
    .ht-terms-page {
      --ht-terms-sticky-offset: 8px;
    }

    .ht-terms-layout {
      grid-template-columns: minmax(0, 1fr);
      gap: 18px;
    }

    .ht-terms-navigation {
      position: sticky;
      top: var(--ht-terms-sticky-offset);
      z-index: 50;
      width: 100%;
      max-width: 100%;
      max-height: none;
      overflow-x: auto;
      overflow-y: hidden;
      padding: 12px;
      overscroll-behavior-x: contain;
      -webkit-overflow-scrolling: touch;
    }

    .ht-terms-navigation__title {
      margin: 0 0 10px;
      font-size: 13px;
    }

    .ht-terms-navigation__list {
      width: max-content;
      max-width: none;
      flex-direction: row;
      gap: 7px;
    }

    .ht-terms-navigation__list > li {
      flex: 0 0 auto;
    }

    .ht-terms-navigation__link {
      width: auto;
      padding: 8px 10px;
      background: #fafbfc;
      border: 1px solid #e7e9ed;
      white-space: nowrap;
      overflow-wrap: normal;
    }

    .ht-terms-navigation__link:hover {
      transform: translateY(-2px);
    }

    .ht-terms-navigation__link.is-active {
      box-shadow:
        inset 0 -3px 0 #d9b800,
        0 4px 12px rgba(117, 90, 0, 0.1);
      transform: translateY(-2px);
    }

    .ht-terms-section {
      scroll-margin-top: 120px;
    }
  }

  /* =====================================================
     TABLET
  ===================================================== */

  @media (min-width: 600px) and (max-width: 991px) {
    .ht-terms-page {
      padding: 30px 16px;
    }

    .ht-terms-hero {
      padding: 36px 30px;
      border-radius: 20px;
    }

    .ht-terms-content {
      padding: 30px;
    }
  }

  /* =====================================================
     MOBILE
  ===================================================== */

  @media (max-width: 599px) {
    .ht-terms-page {
      padding: 20px 10px;
    }

    .ht-terms-hero {
      margin-bottom: 18px;
      padding: 28px 20px;
      border-radius: 17px;
    }

    .ht-terms-hero::before {
      top: -80px;
      right: -100px;
      width: 220px;
      height: 220px;
    }

    .ht-terms-hero::after {
      right: 40px;
      bottom: -110px;
    }

    .ht-terms-hero__title {
      font-size: clamp(29px, 10vw, 36px);
      letter-spacing: -1.2px;
    }

    .ht-terms-hero__description {
      font-size: 13px;
      line-height: 1.7;
    }

    .ht-terms-hero__meta {
      align-items: stretch;
      flex-direction: column;
      margin-top: 18px;
    }

    .ht-terms-hero__date,
    .ht-terms-hero__company {
      width: 100%;
    }

    .ht-terms-layout {
      gap: 16px;
    }

    .ht-terms-navigation {
      padding: 10px;
      border-radius: 14px;
    }

    .ht-terms-navigation__title {
      margin-bottom: 8px;
      font-size: 12px;
    }

    .ht-terms-navigation__list {
      gap: 6px;
    }

    .ht-terms-navigation__link {
      padding: 7px 9px;
      font-size: 10px;
    }

    .ht-terms-navigation__link:hover,
    .ht-terms-navigation__link.is-active {
      transform: none;
    }

    .ht-terms-navigation__number {
      flex-basis: 22px;
      width: 22px;
      height: 22px;
    }

    .ht-terms-content {
      padding: 22px 17px;
      border-radius: 16px;
    }

    .ht-terms-introduction {
      font-size: 13px;
      line-height: 1.75;
    }

    .ht-terms-section {
      padding: 25px 0;
      scroll-margin-top: 105px;
    }

    .ht-terms-section__heading {
      align-items: flex-start;
      gap: 10px;
      font-size: 18px;
    }

    .ht-terms-section__number {
      flex-basis: 34px;
      width: 34px;
      height: 34px;
      border-radius: 9px;
      font-size: 12px;
    }

    .ht-terms-section__text {
      font-size: 13px;
      line-height: 1.75;
    }

    .ht-terms-list {
      grid-template-columns: minmax(0, 1fr);
      gap: 8px;
    }

    .ht-terms-list__item {
      padding: 10px 10px 10px 36px;
      font-size: 12px;
    }

    .ht-terms-list__item::before {
      top: 10px;
      left: 11px;
    }

    .ht-terms-notice {
      gap: 10px;
      padding: 13px;
      font-size: 12px;
    }

    .ht-terms-notice__icon {
      flex-basis: 29px;
      width: 29px;
      height: 29px;
    }

    .ht-terms-law-card {
      padding: 17px;
    }
  }

  /* =====================================================
     SMALL MOBILE
  ===================================================== */

  @media (max-width: 360px) {
    .ht-terms-page {
      padding: 15px 7px;
    }

    .ht-terms-hero {
      padding: 24px 16px;
    }

    .ht-terms-hero__title {
      font-size: 28px;
    }

    .ht-terms-content {
      padding: 19px 14px;
    }

    .ht-terms-section__heading {
      font-size: 16px;
    }

    .ht-terms-section__number {
      flex-basis: 31px;
      width: 31px;
      height: 31px;
    }
  }

  /* =====================================================
     REDUCED MOTION
  ===================================================== */

  @media (prefers-reduced-motion: reduce) {
    .ht-terms-page *,
    .ht-terms-page *::before,
    .ht-terms-page *::after {
      scroll-behavior: auto !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

  /* =====================================================
     PRINT
  ===================================================== */

  @media print {
    .ht-terms-page {
      padding: 0;
      overflow: visible;
      background: #ffffff;
    }

    .ht-terms-hero,
    .ht-terms-content,
    .ht-terms-navigation {
      box-shadow: none;
    }

    .ht-terms-navigation,
    .ht-terms-back-top {
      display: none;
    }

    .ht-terms-layout {
      display: block;
    }

    .ht-terms-section {
      break-inside: avoid;
    }
  }