/* ==========================================================================
   COMPANY PAGE: LEGAL DOCUMENT (公的文書・リーガルレイアウト)
   ========================================================================== */
.legal-header { padding: 120px 0 40px; border-bottom: 2px solid rgba(100, 180, 230, 0.45); margin-bottom: 60px; }
.legal-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: 0.05em; color: var(--c-black); margin: 0; }

.legal-section { margin-bottom: 80px; }
.legal-section-title { font-size: 1.5rem; font-weight: bold; border-left: 4px solid var(--c-accent); padding-left: 16px; margin-bottom: 32px; color: var(--c-black); letter-spacing: 0.05em; }

.legal-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.95rem; }
.legal-table th, .legal-table td { padding: 24px 20px; border-bottom: 1px solid rgba(100, 180, 230, 0.18); line-height: 1.8; }
.legal-table tr:first-child th, .legal-table tr:first-child td { border-top: 1px solid rgba(15, 44, 89, 0.5); }
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: 1px solid rgba(15, 44, 89, 0.5); }
.legal-table th { width: 25%; font-weight: bold; color: var(--c-black); vertical-align: top; background: rgba(100, 180, 230, 0.06); }
.legal-table td { color: var(--c-dark); }
.legal-table p { margin: 0 0 8px; }
.legal-table p:last-child { margin: 0; }
.legal-table ul { padding-left: 20px; margin: 0; }
.legal-table .note { font-size: 0.85rem; color: var(--c-gray); margin-top: 8px; display: block; }

@media (max-width: 768px) {
  .legal-table th, .legal-table td { display: block; width: 100%; padding: 16px 0; }
  .legal-table tr { border-bottom: 1px solid var(--c-border); }
  .legal-table tr:last-child { border-bottom: 1px solid var(--c-black); }
  .legal-table th { border-bottom: none; padding-bottom: 4px; background: transparent; color: var(--c-accent); font-size: 0.85rem; letter-spacing: 0.05em; }
  .legal-table td { border-bottom: none; padding-top: 0; }
  .legal-table tr:first-child th { border-top: none; }
  .legal-table { border-top: 1px solid var(--c-black); }
}

/* ==========================================================================
   TERMS PAGE: LEGAL AGREEMENT (利用規約・約款レイアウト)
   ========================================================================== */

/* 規約コンテナ（読みやすい幅に制限） */
.terms-container { 
  max-width: 800px; 
  margin: 0 auto; 
  background: var(--c-white); 
  border: 1px solid var(--c-border); 
  padding: 40px 24px; 
}
@media (min-width: 769px) {
  .terms-container { padding: 60px 80px; }
}

/* 規約ヘッダー */
.terms-header {
  border-bottom: 2px solid var(--c-black);
  padding-bottom: 24px;
  margin-bottom: 40px;
}
.terms-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--c-black);
  margin-bottom: 8px;
}
.terms-date {
  font-size: 0.85rem;
  color: var(--c-gray);
}
.terms-preamble {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--c-dark);
  margin-bottom: 60px;
}

/* 条項（Article）のレイアウト */
.terms-article {
  margin-bottom: 40px;
}
.terms-article-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--c-black);
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.terms-content {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--c-dark);
}

/* 規約内のリスト（字下げ） */
.terms-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  counter-reset: terms-item;
}
.terms-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 8px;
}
.terms-list li::before {
  counter-increment: terms-item;
  content: "(" counter(terms-item) ")";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-gray);
}


/* ==========================================================================
   LEGAL PAGE EXTRA COMPATIBILITY
   ========================================================================== */
.legal-warning-note {
  font-size: 0.85rem;
  color: var(--c-danger);
  font-weight: bold;
  margin-top: 8px;
  display: block;
}


.privacy-business-list {
  list-style: none;
}

.privacy-business-item {
  padding-left: 0;
}

.privacy-contact-link {
  color: var(--c-black);
  font-weight: bold;
  text-decoration: underline;
}

/* ==========================================================================
   PC LAYOUT REFINEMENTS (min-width: 900px)
   ========================================================================== */
@media (min-width: 900px) {
  .terms-section {
    padding: 12px 0;
  }
  .terms-table th,
  .terms-table td {
    padding: 14px 20px;
  }
}