/* =================================
   法務ページ
   ================================= */

.legal-page-main {
  background: #ffffff;
  color: #111111;
  padding: 32px 20px 80px;
}

.legal-container {
  max-width: 560px;
  margin: 0 auto;
}

.legal-page-title {
  font-size: 28px;
  line-height: 1.6;
  font-weight: 700;
  margin: 0 0 12px;
  color: #111111;
}

.legal-page-updated {
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 36px;
  color: #444444;
}

.legal-part-title {
  font-size: 22px;
  line-height: 1.6;
  font-weight: 700;
  margin: 40px 0 20px;
  color: #111111;
}

.legal-article {
  margin-top: 28px;
}

.legal-article-title {
  font-size: 18px;
  line-height: 1.7;
  font-weight: 700;
  margin: 0 0 10px;
  color: #111111;
}

.legal-article p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.95;
  color: #111111;
}

.legal-ordered {
  margin: 0;
  padding-left: 1.6em;
}

.legal-ordered li {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.95;
  color: #111111;
}

.legal-table-wrap {
  overflow-x: auto;
  margin-top: 20px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #ffffff;
}

.legal-table th,
.legal-table td {
  border: 1px solid #d5d5d5;
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.8;
  color: #111111;
}

.legal-table th {
  width: 36%;
  background: #f7f7f7;
  font-weight: 700;
}

.legal-page-bottom-updated {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: #444444;
}

@media (max-width: 800px) {
  .legal-page-main {
    padding: 24px 20px 64px;
  }

  .legal-container {
    max-width: calc(100vw - 40px);
  }

  .legal-page-title {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .legal-page-updated,
  .legal-page-bottom-updated {
    font-size: 13px;
  }

  .legal-part-title {
    font-size: 20px;
    margin: 34px 0 18px;
  }

  .legal-article-title {
    font-size: 17px;
  }

  .legal-article p,
  .legal-ordered li {
    font-size: 14px;
    line-height: 1.9;
  }

  .legal-table th,
  .legal-table td {
    padding: 12px;
    font-size: 13px;
    line-height: 1.75;
  }

  .legal-table th {
    width: 40%;
  }
}


.legal-back-wrap {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.legal-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 8px 20px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 14px;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: #ffffff;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.legal-back-button:hover {
  background: #f5f5f5;
  border-color: var(--primary-color);
  color: var(--primary-color);
  opacity: 1;
}

@media (max-width: 800px) {
  .legal-back-wrap {
    margin-top: 24px;
  }
}
