/* ============================================================
   Legal Pages  ― サイト利用規約 / プライバシーポリシー 共通
   ============================================================ */

/* ---- Legal Hero ---- */
#legal-hero {
  padding-top: 160px;
  padding-bottom: clamp(40px, 5vw, 64px);
  background: var(--color-white);
  border-bottom: 1px solid rgba(0, 18, 181, 0.08);
}

.legal-hero-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 100px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(24px, 3vw, 40px);
}

.legal-hero-title h1 {
  font-family: var(--font-ja);
  font-size: clamp(26px, 3.5vw, 52px);
  font-weight: 900;
  color: var(--color-dark);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

/* ---- オーリックバッジ ---- */
.legal-hero-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d400a0;
  border-radius: 8px;
  padding: clamp(20px, 2.5vw, 28px) clamp(32px, 4vw, 56px);
  min-width: clamp(200px, 20vw, 280px);
  box-shadow: 0 8px 32px rgba(212, 0, 160, 0.25);
}

.legal-hero-badge span {
  font-family: var(--font-ja);
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* ---- Legal Body ---- */
#legal-body {
  background: var(--color-white);
}

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

/* ---- リード ---- */
.legal-lead {
  font-size: clamp(13px, 1vw, 15px);
  line-height: 2.1;
  color: rgba(35, 24, 21, 0.75);
  text-align: justify;
  margin-bottom: clamp(36px, 4vw, 52px);
  padding-bottom: clamp(28px, 3vw, 40px);
  border-bottom: 1px solid rgba(0, 18, 181, 0.1);
}

/* ---- セクション ---- */
.legal-section {
  margin-bottom: clamp(28px, 3vw, 44px);
  padding-bottom: clamp(28px, 3vw, 44px);
  border-bottom: 1px solid rgba(0, 18, 181, 0.07);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ---- 見出し ---- */
.legal-section h2 {
  font-family: var(--font-ja);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 900;
  color: var(--color-dark);
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--color-blue);
}

/* ---- 本文 ---- */
.legal-section p {
  font-size: clamp(13px, 1vw, 15px);
  line-height: 2.1;
  color: rgba(35, 24, 21, 0.8);
  text-align: justify;
  margin-bottom: 12px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section p a {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.legal-section p a:hover { opacity: 0.7; }

/* ---- リスト ---- */
.legal-section ol {
  list-style: none;
  counter-reset: legal-counter;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}

.legal-section ol li {
  position: relative;
  padding-left: 2em;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 2;
  color: rgba(35, 24, 21, 0.8);
  counter-increment: legal-counter;
}

.legal-section ol li::before {
  content: counter(legal-counter) '.';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--color-blue);
  font-size: inherit;
  line-height: inherit;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  #legal-hero {
    padding-top: 120px;
  }

  .legal-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-hero-badge {
    min-width: 0;
    width: 100%;
    max-width: 320px;
  }
}
