.footer {
  position: relative;
  background: #004762;
}

.footer__contents {
  position: relative;
  max-width: 1644px;
  width: 100%;
  padding: 0 62px;
  padding-top: 70px;
  padding-bottom: 114px;
  margin: 0 auto;
  overflow: hidden;
}

.footer__contents__information {
  position: relative;
}

.footer__contents__information__list {
  position: relative;
}

.footer__contents__information__list__item {
  position: relative;
  font-weight: 500;
  font-size: 15px;
  line-height: 160%;
  color: #afafaf;
}

.footer__contents__information__list__item a {
  color: #d4d4d4;
  text-decoration: underline;
}

.footer__contents__information__list__item span {
  margin: 0 5px;
}

.footer__contents__information__copyright {
  position: relative;
  font-weight: 500;
  font-size: 14px;
  line-height: 160%;
  color: #5d5d5d;
  margin-top: 16px;
}

.footer__terms-link {
  cursor: pointer;
  color: #ffffff;
}

.terms-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.terms-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.terms-modal__overlay {
  position: absolute;
  inset: 0;
}

.terms-modal__dialog {
  position: relative;
  width: min(92vw, 460px);
  max-height: 65vh;
  background: #ffffff;
  border-radius: 28px;
  padding: 34px 28px 26px;
  box-shadow: 0 30px 80px rgba(10, 29, 55, 0.25);
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 1;
}

.terms-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: url("../public/pngs/check.svg") no-repeat center/16px;
  transform: rotate(45deg);
  cursor: pointer;
  opacity: 0.5;
}

.terms-modal__close:hover {
  opacity: 0.9;
}

.terms-modal__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #f2f5fb;
  border-radius: 17px;
  padding: 6px;
}

.terms-modal__tab {
  border: none;
  border-radius: 12px;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: #7d848f;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.terms-modal__tab.is-active {
  background: #ffffff;
  color: #00b6c1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.terms-modal__tab:hover:not(.is-active),
.terms-modal__tab:focus-visible {
  outline: none;
  color: #00b6c1;
  background: rgba(0, 182, 193, 0.12);
  box-shadow: 0 0 0 2px rgba(0, 182, 193, 0.2);
}

.terms-modal__content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.terms-modal__section {
  display: none;
  font-size: 14px;
  line-height: 1.6;
  color: #454b56;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.terms-modal__section.is-active {
  display: block;
}

.terms-modal__section h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1b1e24;
}

.terms-modal__section h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0 12px;
  padding-bottom: 6px;
  color: #005b73;
  border-bottom: 1px solid #d2dae4;
}

.terms-modal__section h4.terms-title {
  font-size: 18px;
  color: #1b1e24;
  text-align: center;
  border: none;
  padding-bottom: 0;
  margin: 26px 0 16px;
}

.terms-modal__section h5 {
  font-size: 15px;
  font-weight: 600;
  color: #2a303c;
  margin: 14px 0 8px;
}

.terms-modal__section ol,
.terms-modal__section ul {
  padding-left: 20px;
  margin: 10px 0;
  list-style-position: outside;
}

.terms-modal__section ol {
  list-style: decimal;
}

.terms-modal__section ul {
  list-style: disc;
}

.terms-modal__section li ul,
.terms-modal__section li ol {
  margin-top: 6px;
}

.terms-modal__section ul ul {
  list-style-type: circle;
}

.terms-modal__section ul ul ul {
  list-style-type: square;
}

.terms-modal__section ol ol {
  list-style-type: lower-alpha;
}

.terms-modal__section ol ol ol {
  list-style-type: lower-roman;
}

.terms-modal__section li {
  margin-bottom: 6px;
}

.terms-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
  table-layout: fixed;
}

.terms-table th,
.terms-table td {
  border: 1px solid #d5d9e2;
  padding: 8px;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.terms-table th {
  background: #f7f8fb;
  font-weight: 600;
  color: #1b1e24;
}

.terms-modal__confirm {
  border: none;
  border-radius: 8px;
  height: 48px;
  flex-shrink: 0;
  background: #00a6b1;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.terms-modal__confirm:hover {
  background: #00909a;
}

.terms-modal__confirm:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 166, 177, 0.4);
}

.terms-title {
  text-align: center;
}
