#modal-terms {
  position: fixed;
  top: 0;
  height: 100vh;
  width: 100%;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s;
  /* background: rgba(0, 0, 0, 0.5); */
}
#modal-terms.show {
  opacity: 1;
  visibility: visible;
}
.modal-bg {
  position: absolute;
  height: 100vh;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
}
.modal-content {
  height: 450px;
  width: 1000px;
  background: white;
  /* opacity: 0; */
  transition: 0.5s;
  position: relative;
}
.modal-close-btn {
  cursor: pointer;
  position: absolute;
  z-index: 2;
  top: -35px;
  right: -35px;
  display: inline-block;
  width: 35px;
  height: 35px;
  /* overflow: hidden; */
  border: none;
  background: none;
}
.modal-close-btn::before,
.modal-close-btn::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 100%;
  top: 50%;
  left: 0;
  margin-top: -1px;
  background: #fff;
  border-radius: 5px;
  margin-top: -6px;
}
.modal-close-btn::before {
  transform: rotate(45deg);
}
.modal-close-btn::after {
  transform: rotate(-45deg);
}
.modal-content_wrap {
  width: 1000px;
  height: 450px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.modal-content_wrap.twitter {
  height: 80%;
  max-height: 600px;
}
.twitter .modal-content {
  height: 100%;
}
#modal-terms .modal-content_wrap {
  padding-top: 40px;
  max-height: 740px;
  height: 80%;
}
#modal-terms .modal-content {
  padding: 40px;
  height: 100%;
}
.terms_title {
  text-align: center;
  font-size: 30px;
  margin: 0;
  margin-bottom: 30px;
}
.terms-contents {
  border-right: none;
  background: #fff;
  border: 2px solid #3c3c3c;
  border-right: none;
  padding: 30px;
  max-height: 550px;
  height: 85%;
  line-height: 1.8em;
  overflow-y: scroll;
  scrollbar-color: #767676 #4d4d4d;
  scrollbar-track-color: #4d4d4d;
  scrollbar-face-color: #767676;
}
_::-webkit-full-page-media,_:future,:root .terms-contents {
  border-right: 2px solid #3c3c3c;
}
.terms-contents::-webkit-scrollbar {
  width: 15px;
}
.terms-contents::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: #999999;
  border: 2px solid transparent;
  background-clip: content-box;
}
.terms-contents::-webkit-scrollbar-track {
  border: 1px solid #767676;
  border-top: none;
  border-bottom: none;
  background: #4d4d4d;
}
.terms-contents h4 {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
}
.terms-contents p {
  margin: 0;
  font-weight: 500;
  text-align: left;
}
.terms-contents p a {
  color: #000;
}

@media (max-width: 1199px) {
  #modal-terms .modal-content_wrap {
    top: 51%;
    height: 70%;
  }
  .modal-content_wrap, #modal-terms .modal-content_wrap {
    width: 90%;
    height: 75%;
    padding: 10px 20px;
  }
  .modal-content, #modal-terms .modal-content {
    width: 100%;
    height: 100%;
    padding: 10px 20px;
  }
  .terms_title {
    font-size: 23px;
    margin-bottom: 15px;
  }
  .terms-contents {
    margin: 0 10px;
    height: 90%;
    max-height: none;
    padding: 15px;
  }
}

@media (max-width: 500px) {
  .modal-content_wrap, #modal-terms .modal-content_wrap {
    width: 100%;
    padding: 10px;
    top: 48%;
  }
  .modal-content, #modal-terms .modal-content {
    padding: 10px 10px;
  }
  .modal-content .modal-close-btn {
    right: 0!important;
  }
  .terms-contents {
    height: 89%;
    padding: 10px;
  }
  .terms-contents h4, .terms-contents p {
    font-size: 14px;
  }
}

@media (max-width: 399px) {
  .terms-contents {
    height: 85%;
  }
}