.modal {
  position: fixed;
  top: 0;
  left: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
}

.modal--hide {
  display: none;
}

.modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;

  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.modal-wrapper {
  display: flex;
  flex-direction: column;

  width: 90%;
  height: 90%;
  padding: 77px;

  position: absolute;
  z-index: 1;

  background-color: #fff;
  border-radius: 8px;

  overflow: hidden;
}

.modal-wrapper .notice-box {
  background-color: #fbf8ec;
  padding: 24px 20px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 20px;
}

.modal-wrapper .notice-box-terms {
  background-color: #fbf8ec;
  padding: 24px 20px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 32px;
}

.modal-wrapper .notice-title {
  font-weight: 700;
  color: #000000;
}

.modal-wrapper .notice-margin {
  margin-top: 24px;
}

.modal-wrapper .notice-small-margin {
  margin-top: 3px;
}

.modal-wrapper .notice-description {
  font-weight: 500;
  color: #000000;
}

.modal-wrapper .notice-link {
  text-decoration: none;
}

.modal-wrapper .notice-email {
  color: #d8385e;
}

@media (max-width: 768px) {
  .modal-overlay {
    left: 0;
    bottom: 0;
  }

  .modal-wrapper {
    width: 100%;
    padding: 20px;

    bottom: 0;
    left: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .modal-content {
    font-size: 14px;
    line-height: 20px;
  }
}

.modal-content {
  font-size: 16px;
  line-height: 24px;
  overflow: auto;
}

.modal-wrapper .modal-close {
  margin-bottom: 64px;
  padding: 0;

  align-self: flex-end;
  flex-shrink: 0;

  color: #f46152;
  font-weight: bold;
}

.modal-content a {
  color: #ff5a49;
  text-decoration: none;
}

.modal-content strong {
  font-weight: bold;
}

.modal-content p {
  margin-bottom: 10px;
}

.modal-content ol,
.modal-content ul {
  padding-left: 40px;
  margin-bottom: 10px;
}

.modal-content ul {
  list-style: disc;
}

.modal-content li {
  display: list-item;
  line-height: 24px;
  margin-bottom: 14px;
}

.modal-content tbody,
.modal-content td {
  border: 1px solid;
  vertical-align: middle;
}