/* ============================================================
   legal.css — 利用規約・プライバシーポリシー共通スタイル
   ============================================================ */

/* ── ページヘッダー ── */
.legal-header {
  background: linear-gradient(160deg, #f0f4ff 0%, #fff5fb 100%);
  padding: 120px 0 60px;
  border-bottom: 1px solid rgba(91,143,255,0.1);
}
.legal-header h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  margin-bottom: 12px;
}
.legal-date {
  font-size: 13px;
  color: var(--text-sub);
}

/* ── 本文エリア ── */
.legal-body {
  padding: 64px 0 100px;
  background: var(--white);
}
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

/* ── 冒頭 ── */
.legal-intro {
  background: var(--bg);
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin-bottom: 48px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-sub);
}

/* ── セクション ── */
.legal-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #f0f0f0;
}
.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section h2 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg);
}
.article-num {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  background: var(--grad);
  color: white;
  border-radius: 20px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.legal-section h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 10px;
  color: var(--blue);
}

.legal-section p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 12px;
}

.legal-section ul,
.legal-section ol {
  padding-left: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-section li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
}
.legal-section li strong {
  color: var(--text);
}

/* ── 注記ボックス ── */
.legal-note {
  background: linear-gradient(135deg, rgba(91,143,255,0.06), rgba(155,107,255,0.06));
  border: 1px solid rgba(91,143,255,0.2);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
  margin: 16px 0;
}
.legal-note strong { color: var(--blue); }

/* ── テーブル ── */
.legal-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: white;
}
.legal-table th {
  background: var(--dark);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
}
.legal-table th:first-child { border-radius: 12px 0 0 0; }
.legal-table th:last-child { border-radius: 0 12px 0 0; }
.legal-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: var(--text-sub);
  line-height: 1.6;
  vertical-align: top;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr:nth-child(even) td { background: var(--bg); }

/* ── 特定商取引法テーブル ── */
.toku-table { border: none; }
.toku-table th {
  background: var(--bg);
  color: var(--text);
  width: 200px;
  font-weight: 700;
  font-size: 13px;
  border-right: 2px solid rgba(91,143,255,0.15);
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0 !important;
  vertical-align: top;
  padding: 18px 20px;
}
.toku-table td {
  padding: 18px 20px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}
.toku-table td p { margin-bottom: 8px; font-size: 14px; color: var(--text); line-height: 1.8; }
.toku-table td p:last-child { margin-bottom: 0; }
.toku-table td ul { margin: 8px 0 0 0; padding-left: 18px; gap: 6px; }
.toku-table td ul li { color: var(--text-sub); }
.toku-table tr:last-child th,
.toku-table tr:last-child td { border-bottom: none; }
.toku-table tr:nth-child(even) td { background: white; }
.toku-note {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
}

/* ── お問い合わせ ── */
.contact-section h2 { color: var(--text); }
.contact-box {
  background: var(--bg);
  border-radius: 14px;
  padding: 24px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-row {
  display: flex;
  gap: 20px;
  font-size: 14px;
  line-height: 1.6;
}
.contact-label {
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
  width: 80px;
}

/* ── フッターノート ── */
.legal-footer-note {
  margin-top: 48px;
  padding: 24px;
  background: var(--bg);
  border-radius: 12px;
  text-align: right;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
}

/* ── リンク ── */
.legal-section a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-section a:hover { opacity: 0.75; }

/* ── レスポンシブ ── */
@media (max-width: 600px) {
  .legal-header { padding: 100px 0 40px; }
  .legal-section h2 { font-size: 17px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .contact-row { flex-direction: column; gap: 4px; }
  .contact-label { width: auto; }
}
