/* legal.css - 利用規約・個人情報ページ 元ページ準拠スタイル */

/* ページ全体背景 */
body {
  background-color: #f5f5f5;
}

/* メインコンテンツ幅 */
.legal-wrap {
  max-width: 1200px;
  width: 100%;
  margin: 32px auto 64px;
  padding: 0 16px;
}
@media (min-width: 768px) {
  .legal-wrap {
    margin: 48px auto 80px;
    padding: 0 24px;
  }
}

/* ページタイトル */
.legal-page-title {
  color: #333;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.4;
  margin-top: 24px;
  margin-bottom: 16px;
}
.legal-page-title:first-child {
  margin-top: 0;
}
@media (min-width: 768px) {
  .legal-page-title {
    font-size: 32px;
    line-height: 1.5;
    letter-spacing: 0.03em;
    margin-top: 24px;
    margin-bottom: 55px;
    position: relative;
    padding-bottom: 32px;
  }
  .legal-page-title:first-child {
    margin-top: 0;
  }
  .legal-page-title::after {
    position: absolute;
    background-image: linear-gradient(130.03deg, #f99500 10.24%, #80d1ff 87.49%);
    width: 37px;
    height: 5px;
    bottom: 0;
    left: 0;
    content: "";
    border-radius: 20px;
  }
}

/* カード */
.legal-card {
  background-color: #fff;
  padding: 24px 16px;
  margin: 0 -16px;
}
@media (min-width: 768px) {
  .legal-card {
    border-radius: 20px;
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.05);
    padding: 60px calc(60 / 924 * 100%);
    margin: 0;
  }
}

/* terms用 サブタイトル（マイナビあなたの介護 利用規約） */
.legal-subtitle {
  position: relative;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.9;
  padding-left: 18px;
  color: #333;
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  .legal-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 24px;
  }
}
.legal-subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  background-color: #ee6600;
  display: block;
  width: 6px;
  height: 33px;
  border-radius: 20px;
}

/* policy用 セクションタイトル（h2） */
.policy-h2 {
  color: #333;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.4;
  margin: 40px 0 24px;
  position: relative;
  padding-bottom: 16px;
}
.policy-h2::after {
  position: absolute;
  background-image: linear-gradient(130.03deg, #f99500 10.24%, #80d1ff 87.49%);
  width: 37px;
  height: 5px;
  bottom: 0;
  left: 0;
  content: "";
  border-radius: 20px;
}
@media (min-width: 768px) {
  .policy-h2 {
    font-size: 32px;
    line-height: 1.5;
    margin: 80px 0 64px;
    padding-bottom: 32px;
  }
}

/* 本文共通 */
.legal-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  font-weight: 400;
}

.legal-content a {
  color: #ee6600;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.legal-content a:hover {
  text-decoration: none;
}

.legal-content p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: #333;
}
.legal-content p + p {
  margin-top: 16px;
}

.legal-content h3 {
  color: #333;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-content h4 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 24px;
  margin-bottom: 8px;
  color: #333;
}

.legal-content ol {
  margin-top: 16px;
  list-style: decimal;
  padding-left: 20px;
}
@media (max-width: 767px) {
  .legal-content ol {
    padding-left: 30px;
  }
}
.legal-content ol ol {
  list-style: lower-alpha;
}
.legal-content ol li {
  padding-left: 4px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}
.legal-content ol li + li {
  margin-top: 10px;
}

.legal-content ul {
  margin-top: 24px;
  margin-bottom: 40px;
  list-style: none;
  padding-left: 0;
}
.legal-content ul li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}
.legal-content ul li::before {
  content: "";
  background-color: #999;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 8px;
}
.legal-content ul li + li {
  margin-top: 8px;
}
.legal-content ul.ul-bottom {
  margin-bottom: 0;
}

.legal-content .text-mt {
  margin-top: 16px;
}

.legal-content .provisions {
  margin-top: 24px;
  font-size: 15px;
  color: #666;
}
@media (min-width: 768px) {
  .legal-content .provisions {
    margin-top: 64px;
  }
}

/* iframe */
.legal-content .informative-iframe {
  width: calc(100% + 32px);
  margin-left: -16px;
  height: 600px;
  border: 1px solid #e0e0e0;
  margin-top: 24px;
  display: block;
}
@media (min-width: 768px) {
  .legal-content .informative-iframe {
    width: calc(100% + calc(60 / 924 * 100%) * 2);
    margin-left: calc(-60 / 924 * 100%);
  }
}

/* テーブル */
.legal-content .policy-table-wrap {
  margin-top: 24px;
  margin-bottom: 40px;
}
.legal-content .policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 16px;
}
.legal-content .policy-table th,
.legal-content .policy-table td {
  border: 1px solid #ddd;
  padding: 10px 12px;
  text-align: left;
  line-height: 1.6;
}
.legal-content .policy-table th {
  background-color: #f5f5f5;
  font-weight: 700;
  color: #333;
}
