/* ===================================================
   legal.css — プライバシーポリシー / 利用規約等
   =================================================== */

/* ---- Hero ---- */
.legal-hero {
  padding: 140px 0 56px;
  background: linear-gradient(180deg, #f4f6f8 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.legal-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow-hover);
  margin-bottom: 12px;
}

.legal-hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.legal-hero-meta {
  font-size: 0.85rem;
  color: var(--gray);
}

/* ---- Body wrapper ---- */
.legal-body {
  padding: 72px 0 100px;
  background: #fff;
}

/* ---- Content column ---- */
.legal-content {
  max-width: 760px;
  font-size: 0.925rem;
  line-height: 1.85;
  color: var(--dark-2);
}

.legal-content p { margin-bottom: 1.2em; }

.legal-lead {
  font-size: 1rem;
  color: var(--dark);
  line-height: 1.8;
  margin-bottom: 1.4em !important;
}

/* ---- Headings ---- */
.legal-h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  margin: 56px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.legal-h2:first-of-type { margin-top: 40px; }

.legal-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--dark);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 8px;
  flex-shrink: 0;
}

.legal-h2-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0;
  margin-left: 4px;
}

.legal-h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin: 28px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--yellow);
}

/* ---- Lists ---- */
.legal-list {
  padding-left: 0;
  margin-bottom: 1.2em;
  list-style: none;
}

.legal-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 7px;
  font-size: 0.9rem;
  line-height: 1.75;
}

.legal-list li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--gray);
}

.legal-list--check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--yellow);
  border-radius: 2px;
}

/* ---- Info box ---- */
.legal-box {
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 16px;
}

.legal-box-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px !important;
}

.legal-box .legal-list { margin-bottom: 0; }

/* ---- Definition table ---- */
.legal-info-table {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.legal-info-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--border);
}

.legal-info-row:last-child { border-bottom: none; }

.legal-info-row dt {
  background: var(--gray-light);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
}

.legal-info-row dd {
  font-size: 0.875rem;
  color: var(--dark-2);
  padding: 14px 20px;
  line-height: 1.7;
}

.legal-info-row dd a {
  color: var(--yellow-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Inline code ---- */
.legal-content code {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.82rem;
  font-family: 'SFMono-Regular', Consolas, monospace;
  color: #374151;
  word-break: break-all;
}

/* ---- External links ---- */
.legal-content a {
  color: var(--yellow-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .legal-info-row { grid-template-columns: 1fr; }
  .legal-info-row dt { border-right: none; border-bottom: 1px solid var(--border); }
}
