/* ========================================
   Legal pages: hero
======================================== */
.legal-page {
  color: #6e5d5d;
  font-family: "Zen Maru Gothic", sans-serif;
  letter-spacing: 0.03em;
}

.legal-hero {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  overflow: hidden;
  padding: 48px 24px 30px;
  text-align: center;
  background: #fff url("assets/search-hero-bg.png") bottom / cover no-repeat;
}

.legal-hero__heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  white-space: nowrap;
  font-weight: 500;
}

.legal-hero__heading span {
  color: rgba(212, 68, 70, 0.4);
  font-family: "Quicksand", sans-serif;
  font-size: clamp(72px, 8.33vw, 120px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.02em;
}

.legal-hero__heading strong {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.8;
}

.legal-hero > p {
  position: relative;
  z-index: 1;
  font-size: 18px;
  line-height: 1.8;
}

/* ========================================
   Legal pages: document
======================================== */
.legal-document {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0;
}

.legal-document__title {
  margin-bottom: 42px;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.4;
}

.legal-document__intro,
.legal-document__box,
.legal-history {
  padding: 32px 48px;
  border-radius: 20px;
  background: #fbf9f5;
}

.legal-document section {
  margin-top: 50px;
}

.legal-document h2 {
  margin-bottom: 25px;
  font-size: 24px;
  line-height: 1.8;
}

.legal-document p,
.legal-document li {
  font-size: 16px;
  line-height: 1.8;
}

.legal-document ul {
  margin: 16px 0;
  padding-left: 25px;
}

.legal-document__box ul {
  list-style: none;
}

.legal-document__box li::before {
  margin-right: 10px;
  content: "・";
}

.legal-history {
  margin-top: 30px;
}

.legal-history > div {
  display: grid;
  grid-template-columns: 260px 1fr;
  padding: 12px 0;
  border-bottom: 1px solid #e1d9d2;
}

/* ========================================
   Legal pages: tablet
======================================== */
@media (min-width: 768px) and (max-width: 1100px) {
  .legal-hero__heading span {
    font-size: clamp(58px, 7vw, 76px);
  }

  .legal-hero__heading strong {
    font-size: 20px;
  }
}

/* ========================================
   Legal pages: smartphone
======================================== */
@media (max-width: 767px) {
  .legal-hero {
    min-height: 216px;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    overflow: hidden;
    padding: 40px 24px;
    text-align: left;
  }

  .legal-hero__heading {
    display: block;
    width: 100%;
    white-space: normal;
  }

  .legal-hero__heading span {
    display: block;
    font-size: 38px;
    line-height: 1.2;
  }

  .legal-hero__heading strong {
    display: block;
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.2;
  }

  .legal-hero > p {
    font-size: 16px;
    line-height: 1.6;
  }

  .legal-document {
    width: min(100% - 48px, 540px);
    padding: 60px 0;
  }

  .legal-document__title {
    margin-bottom: 40px;
    font-size: 26px;
  }

  .legal-document__intro,
  .legal-document__box,
  .legal-history {
    padding: 16px;
    border-radius: 8px;
  }

  .legal-document section {
    margin-top: 40px;
  }

  .legal-document h2 {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.4;
  }

  .legal-document p,
  .legal-document li {
    font-size: 16px;
    line-height: 1.6;
  }

  .legal-history > div {
    grid-template-columns: 110px 1fr;
    gap: 15px;
  }
}
