/* =====================================================
   pages/legal.css — 法務ページ共通スタイル
   terms / privacy / security-policy
   ===================================================== */

/* ===== シンプルヘッダー（法務ページ用） ===== */
header {
  background: #fff;
  padding: 16px 28px;
  box-shadow: 0 2px 12px rgba(30,58,95,.06);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow .3s ease;
}
header.scrolled { box-shadow: 0 2px 16px rgba(30,58,95,.08); }

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 1.1em;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-logo img { height: 32px; width: auto; }
.header-back {
  font-size: .88em;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
}
.header-back:hover { color: var(--primary); }

/* ===== Layout ===== */
.inner { max-width: 800px; margin: 0 auto; padding: 0 28px; }
main { padding: 60px 0 80px; }

a { transition: color .3s ease; color: var(--secondary); }
a:hover { color: var(--primary); }

h1 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 1.6em;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
  text-wrap: balance;
}
h2 { text-wrap: balance; }
.page-sub {
  text-align: center;
  font-size: .88em;
  color: var(--text-light);
  margin-bottom: 48px;
}

/* ===== Policy sections ===== */
.policy-section {
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .6s ease forwards;
}
.policy-section:nth-child(1)  { animation-delay: .05s; }
.policy-section:nth-child(2)  { animation-delay: .10s; }
.policy-section:nth-child(3)  { animation-delay: .15s; }
.policy-section:nth-child(4)  { animation-delay: .20s; }
.policy-section:nth-child(5)  { animation-delay: .25s; }
.policy-section:nth-child(6)  { animation-delay: .30s; }
.policy-section:nth-child(7)  { animation-delay: .35s; }
.policy-section:nth-child(8)  { animation-delay: .40s; }
.policy-section:nth-child(9)  { animation-delay: .45s; }
.policy-section:nth-child(10) { animation-delay: .50s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.policy-section h2 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 1.1em;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 2px solid var(--bg-alt);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.policy-section h2::before {
  content: attr(data-num);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: #fff;
  font-size: .75em;
  font-weight: 800;
  flex-shrink: 0;
  font-family: "Zen Maru Gothic", sans-serif;
}
.policy-section:nth-child(odd) {
  background: var(--bg-alt);
  margin-left: -28px;
  margin-right: -28px;
  padding: 28px;
  border-radius: var(--radius);
}
.policy-section:last-of-type {
  background: linear-gradient(135deg, rgba(74,144,217,.06), rgba(124,184,240,.03));
  border: 1px solid rgba(74,144,217,.12);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-left: -28px;
  margin-right: -28px;
}
.policy-section p,
.policy-section ul,
.policy-section dl {
  font-size: .92em;
  color: var(--text);
  line-height: 2;
  margin-bottom: 8px;
}
.policy-section ul { padding-left: 1.5em; }
.policy-section li { margin-bottom: 4px; }
.policy-highlight {
  background: rgba(74,144,217,.07);
  border-left: 3px solid var(--secondary);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin-top: 12px;
}

.policy-date {
  text-align: right;
  font-size: .88em;
  color: var(--text-light);
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--bg-alt);
}

/* ===== Privacy/Security-specific ===== */
.subsection-label {
  font-size: .88em;
  font-weight: 700;
  color: var(--primary);
  margin-top: 16px;
  margin-bottom: 6px;
}
.intro-text {
  font-size: .94em;
  color: var(--text);
  line-height: 2;
  margin-bottom: 32px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}
.policy-note {
  font-size: .82em;
  color: var(--text-light);
  line-height: 1.8;
  margin-top: 8px;
  padding-left: 1em;
  border-left: 2px solid rgba(74,144,217,.2);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  h1 { font-size: 1.3em; }
  main { padding: 40px 0 60px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
