/* Legal / Policy Pages (Terms of Use, Privacy Policy, etc.) */

.legal-page {
  padding: 100px 0;
}

.legal-page__updated {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #0c3c4c;
  background-color: rgba(12, 60, 76, 0.08);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.legal-page__intro {
  padding: 28px 30px;
  border-left: 4px solid #0c3c4c;
  background-color: #f8fafb;
  border-radius: 0 12px 12px 0;
  margin-bottom: 50px;
}

.legal-page__intro p {
  margin-bottom: 14px;
  line-height: 1.8;
  color: #444;
}

.legal-page__intro p:last-child {
  margin-bottom: 0;
}

/* Table of contents */
.legal-page__toc {
  position: sticky;
  top: 110px;
}

.legal-page__toc-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 16px;
}

.legal-page__toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid #eee;
}

.legal-page__toc-list li {
  margin-bottom: 4px;
}

.legal-page__toc-list a {
  display: block;
  padding: 8px 0 8px 18px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  transition: all 0.2s ease;
}

.legal-page__toc-list a:hover {
  color: #0c3c4c;
  border-left-color: #0c3c4c;
}

/* Sections */
.legal-page__section {
  margin-bottom: 44px;
  scroll-margin-top: 110px;
}

.legal-page__section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.legal-page__section-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #0c3c4c;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-page__section-title {
  font-size: 25px;
  font-weight: 700;
  color: #191c1d;
  margin: 0;
}

.legal-page__section p {
  margin-bottom: 14px;
  line-height: 1.8;
  color: #444;
}

.legal-page__section p:last-child {
  margin-bottom: 0;
}

.legal-page__subheading {
  font-size: 16px;
  font-weight: 700;
  color: #0c3c4c;
  margin: 20px 0 10px;
}

.legal-page__list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.legal-page__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  line-height: 1.7;
  color: #444;
}

.legal-page__list li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 11px;
  color: #0c3c4c;
  position: absolute;
  left: 0;
  top: 5px;
}

.legal-page__closing {
  margin-top: 50px;
  padding: 34px;
  border-radius: 16px;
  background-color: #f8fafb;
  border-left: 4px solid #0c3c4c;
  text-align: center;
}

.legal-page__closing-title {
  font-size: 20px;
  font-weight: 700;
  color: #191c1d;
  margin-bottom: 12px;
}

.legal-page__closing p {
  color: #444;
  line-height: 1.8;
  margin-bottom: 10px;
}

.legal-page__closing p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: #0c3c4c;
}

/* Contact box */
.legal-page__contact {
  margin-top: 50px;
  padding: 34px;
  border-radius: 16px;
  background-color: #0c3c4c;
  color: #fff;
}

.legal-page__contact-title {
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.legal-page__contact-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 24px;
}

.legal-page__contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.legal-page__contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-page__contact-item i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.legal-page__contact-item div p {
  margin: 0;
}

.legal-page__contact-item .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
}

.legal-page__contact-item .value {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.legal-page__contact-item .value a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 991px) {
  .legal-page__toc {
    position: static;
    margin-bottom: 40px;
  }
}

@media (max-width: 767px) {
  .legal-page {
    padding: 60px 0;
  }

  .legal-page__intro {
    padding: 20px;
    margin-bottom: 30px;
  }

  .legal-page__section-title {
    font-size: 20px;
  }

  .legal-page__section {
    margin-bottom: 32px;
    scroll-margin-top: 20px;
  }

  .legal-page__toc {
    background: #f8fafb;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 28px;
    border-left: 4px solid #0c3c4c;
  }

  .legal-page__toc-title {
    margin-bottom: 10px;
  }

  .legal-page__toc-list {
    border-left: none;
  }

  .legal-page__toc-list a {
    padding: 6px 0 6px 14px;
    font-size: 13px;
  }

  .legal-page__contact {
    padding: 24px 20px;
  }

  .legal-page__contact-grid {
    gap: 16px;
  }

  .legal-page__contact-item {
    width: 100%;
  }
}