.terms-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 40px 24px;
}
.terms-modal--open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.terms-modal__overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
}
.terms-modal__inner {
  position: relative;
  max-width: 1024px;
  width: 100%;
  max-height: 100%;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
}
.terms-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid #d1d5dc;
  flex: 0 0 auto;
}
.terms-modal__title {
  font-size: 20px;
  font-weight: 700;
}
.terms-modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a5565;
  background: none;
  border: none;
  cursor: pointer;
}
.terms-modal__close:hover {
  color: #0a0a0a;
}
.terms-modal__body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.terms-flow__heading {
  font-size: 18px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 2px solid #00a63e;
  margin-bottom: 24px;
}
.terms-flow__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.terms-flow__column {
  padding: 16px;
}
.terms-flow__column--sold {
  background-color: #f0fdf4;
  border: 2px solid #00a63e;
}
.terms-flow__column--unsold {
  background-color: #f3f4f6;
  border: 1px solid #d1d5dc;
}
.terms-flow__col-label {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}
.terms-flow__steps {
  display: flex;
  flex-direction: column;
}
.terms-flow__step {
  background-color: #ffffff;
  border: 1px solid #00a63e;
  padding: 10px 16px;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}
.terms-flow__step--gray {
  border-color: #d1d5dc;
}
.terms-flow__step--end {
  background-color: #00a63e;
  color: #ffffff;
  border-color: #00a63e;
}
.terms-flow__arrow {
  text-align: center;
  padding: 2px 0;
  color: #6a7282;
  font-size: 14px;
}
.terms-flow__scenarios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.terms-flow__scenario {
  display: flex;
  flex-direction: column;
}
.terms-flow__scenario--repost {
  border-left: 3px solid #2b7fff;
  padding-left: 8px;
}
.terms-flow__scenario--end {
  border-left: 3px solid #ff6900;
  padding-left: 8px;
}
.terms-flow__scenario-label {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.terms-flow__scenario--repost .terms-flow__scenario-label {
  color: #2b7fff;
}
.terms-flow__scenario--end .terms-flow__scenario-label {
  color: #ff6900;
}
.terms-flow__step--blue {
  border-color: #2b7fff;
}
.terms-flow__step--orange {
  border-color: #ff6900;
}
.terms-flow__step--orange-end {
  background-color: #ff6900;
  color: #ffffff;
  border-color: #ff6900;
}
.terms-help__heading {
  font-size: 18px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 2px solid #00a63e;
  margin-bottom: 24px;
}
.terms-help__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.terms-help__section + .terms-help__section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}
.terms-help__subheading {
  font-size: 16px;
  font-weight: 700;
  color: #008236;
  padding-left: 12px;
  border-left: 3px solid #00a63e;
}
.terms-help__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 0;
  list-style: none;
}
.terms-help__item {
  font-size: 14px;
  color: #0a0a0a;
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}
.terms-help__item::before {
  content: "\30FB";
  position: absolute;
  left: 0;
}
.terms-info-box {
  background-color: #eff6ff;
  border-left: 4px solid #1447e6;
  padding: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #0a0a0a;
}
.terms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.terms-table th,
.terms-table td {
  padding: 10px 16px;
  border: 1px solid #d1d5dc;
  text-align: left;
}
.terms-table th {
  background-color: #f3f4f6;
  font-weight: 700;
}
@media (max-width: 768px) {
  .terms-modal {
    padding: 16px;
  }
  .terms-modal__header {
    padding: 16px;
  }
  .terms-modal__body {
    padding: 16px;
    gap: 32px;
  }
  .terms-flow__grid {
    grid-template-columns: 1fr;
  }
  .terms-flow__scenarios {
    grid-template-columns: 1fr;
  }
}
