/* ===================================================
   MYSTO — 法的ページ共通 (css/legal.css)
   style.css と併用して読み込む
   =================================================== */

/* ページヒーロー */
.page-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 45%, #1D4ED8 100%);
  color: #fff;
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(14,165,233,.2) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .7;
  margin-bottom: 12px;
}
.page-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: .95rem;
  opacity: .75;
  max-width: 540px;
  line-height: 1.7;
}

/* 法的文書カード */
.legal-wrapper {
  max-width: 900px;
  margin: 0 auto;
}
.legal-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 52px;
  box-shadow: var(--shadow-sm);
}
.legal-card > p,
.legal-card > ul,
.legal-card > ol {
  font-size: .92rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}
.legal-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 40px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}
.legal-card h2:first-of-type {
  margin-top: 0;
}
.legal-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 10px;
  padding-left: 14px;
  border-left: 3px solid var(--primary);
}
.legal-card h4 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 20px;
  margin-bottom: 8px;
}
.legal-card ul,
.legal-card ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-card ul {
  list-style: disc;
}
.legal-card ol {
  list-style: decimal;
}
.legal-card ol.paren-list {
  list-style: none;
  padding-left: 0;   /* ← これ追加 */
}
.legal-card li {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 6px;
}
.legal-card li ul,
.legal-card li ol {
  margin-top: 6px;
  margin-bottom: 6px;
}
.legal-card a {
  color: var(--primary);
  text-decoration: underline;
}
.legal-card .legal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.legal-card .legal-meta i {
  color: var(--primary);
}
.paren-list {
  list-style: none;
  counter-reset: item;
}

.paren-list li {
  counter-increment: item;
}

.paren-list li::before {
  content: "(" counter(item) ") ";
}

/* テーブル（特商法向け） */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.legal-table th,
.legal-table td {
  padding: 14px 18px;
  border: 1px solid var(--border);
  font-size: .9rem;
  line-height: 1.7;
  text-align: left;
  vertical-align: top;
}
.legal-table th {
  background: var(--bg-light);
  font-weight: 700;
  color: var(--text-primary);
  width: 200px;
  white-space: nowrap;
}
.legal-table td {
  color: var(--text-secondary);
}

/* レスポンシブ */
@media (max-width: 768px) {
  .page-hero { padding: 40px 0 36px; }
  .legal-card { padding: 28px 20px; }
  .legal-table th { width: auto; white-space: normal; }
  .legal-table th,
  .legal-table td { padding: 10px 12px; font-size: .85rem; }
}
