/* ============================================
   法務ページ共通スタイル（プライバシーポリシー・特商法）
   ============================================ */

.legal-page {
  background: var(--bg-white);
  padding: 60px 0 80px;
}

.legal-page__title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text-black);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-black);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-blue);
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-black);
  margin: 24px 0 12px;
}

.legal-content p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px 24px;
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 4px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.legal-content table th,
.legal-content table td {
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  font-size: 15px;
  line-height: 1.6;
}

.legal-content table th {
  background: #f8f9fc;
  font-weight: 700;
  width: 200px;
}

/* --- Voice Pages --- */
.voice-page {
  background: var(--bg-page);
  padding: 60px 0 80px;
}

.voice-page__title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
}

.voice-page__tags {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
}

.voice-page__tag {
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-black);
  border: 1px solid #e0e0e0;
  background: var(--bg-white);
  transition: background 0.3s ease, color 0.3s ease;
}

.voice-page__tag:hover,
.voice-page__tag.is-active {
  background: var(--brand-blue);
  color: var(--text-white);
  opacity: 1;
}

.voice-page__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 840px) {
  .voice-page__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-content table th {
    width: 140px;
  }
}

@media (max-width: 540px) {
  .voice-page__grid {
    grid-template-columns: 1fr;
  }

  .voice-page__tags {
    flex-wrap: wrap;
  }

  .voice-page__tag {
    padding: 10px 20px;
    font-size: 14px;
  }

  .legal-page__title {
    font-size: 24px;
  }

  .legal-content h2 {
    font-size: 18px;
  }

  .legal-content table th,
  .legal-content table td {
    display: block;
    width: 100%;
  }

  .legal-content table th {
    border-bottom: none;
  }
}
