.privacy-link {
  color: #0056d3;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
  z-index: 10000;
  box-sizing: border-box;
}

.privacy-modal:target {
  display: flex;
}

.privacy-modal__overlay {
  position: absolute;
  inset: 0;
  display: block;
  background: transparent;
  text-decoration: none;
}

.privacy-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  color: #111111;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.privacy-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.privacy-modal__title {
  margin: 0;
  color: #0056d3;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
}

.privacy-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e8f2ff;
  color: #0056d3;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
}

.privacy-modal__body {
  max-height: calc(100vh - 144px);
  overflow: auto;
  padding: 24px;
  font-size: 16px;
  line-height: 1.6;
}

.privacy-modal__body p {
  margin: 0 0 14px;
}

.privacy-modal__body h3 {
  margin: 22px 0 10px;
  color: #0056d3;
  font-size: 18px;
  line-height: 1.3;
}

.privacy-modal__body ul {
  margin: 0 0 14px 18px;
  padding: 0;
}

.privacy-modal__body li + li {
  margin-top: 8px;
}

.privacy-modal__meta {
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: rgba(17, 17, 17, 0.8);
  font-size: 14px;
  line-height: 1.55;
}

.form-success-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
  z-index: 10001;
  box-sizing: border-box;
}

.form-success-modal.is-open {
  display: flex;
}

.form-success-modal__overlay {
  position: absolute;
  inset: 0;
  display: block;
  border: 0;
  background: transparent;
  text-decoration: none;
}

.form-success-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  color: #152033;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.form-success-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #e8f2ff;
  color: #0056d3;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.form-success-modal__body {
  padding: 28px 28px 30px;
  text-align: center;
}

.form-success-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e8f2ff;
  color: #0056d3;
}

.form-success-modal__icon svg {
  width: 40px;
  height: 40px;
}

.form-success-modal__title {
  margin: 0;
  color: #0056d3;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.form-success-modal__text {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(21, 32, 51, 0.78);
}

.form-success-modal__button {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: #0056d3;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.t-submit.is-loading,
.t-submit[disabled] {
  opacity: 0.75;
  cursor: wait;
}

.form-status {
  display: none;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  color: #d32f2f;
}

.form-status.is-success {
  color: #0056d3;
}

@media screen and (max-width: 767px) {
  .privacy-modal {
    padding: 12px;
  }

  .privacy-modal__dialog {
    max-height: calc(100vh - 24px);
    border-radius: 18px;
  }

  .privacy-modal__header {
    padding: 18px 18px 12px;
  }

  .privacy-modal__title {
    font-size: 22px;
  }

  .privacy-modal__body {
    max-height: calc(100vh - 110px);
    padding: 18px;
  }

  .privacy-modal__meta {
    padding: 12px 18px 18px;
  }

  .form-success-modal {
    padding: 12px;
  }

  .form-success-modal__dialog {
    border-radius: 18px;
  }

  .form-success-modal__body {
    padding: 22px 18px 20px;
  }

  .form-success-modal__title {
    font-size: 22px;
  }

  .form-success-modal__text {
    font-size: 15px;
  }
}
