/* ===========================================================
   hakuto AI 法務ページ共通スタイル
   （会社情報 / 利用規約 / プライバシー）
   =========================================================== */

* {
  box-sizing: border-box;
}

body.hakuto-legal {
  margin: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
    #060c14;
  color: #cbd5e1;
  font-family: "Inter", "Noto Sans JP", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.85;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 方眼グリッド背景（うっすら） */
body.hakuto-legal::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ===========================================================
   ヘッダ
   =========================================================== */
.hakuto-legal__header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: rgba(6, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(6, 182, 212, 0.18);
}

.hakuto-legal__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
}
.hakuto-legal__logo-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #06b6d4 0%, #0e7490 100%);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
  position: relative;
}
.hakuto-legal__logo-icon::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 2px;
  background: #060c14;
}
.hakuto-legal__logo-text {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.hakuto-legal__logo-text span {
  color: #06b6d4;
  font-weight: 600;
}

.hakuto-legal__back {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #06b6d4;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.hakuto-legal__back:hover {
  background: #06b6d4;
  color: #060c14;
}

/* ===========================================================
   メイン
   =========================================================== */
.hakuto-legal__main {
  position: relative;
  z-index: 1;
  padding: 56px 28px 80px;
}
.hakuto-legal__container {
  max-width: 800px;
  margin: 0 auto;
}

/* セクション番号タグ */
.hakuto-legal__corner {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}
.hakuto-legal__corner::before {
  content: "";
  width: 32px;
  height: 1.5px;
  background: #06b6d4;
  display: inline-block;
}
.hakuto-legal__corner-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: #06b6d4;
  font-weight: 700;
}
.hakuto-legal__corner-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: #94a3b8;
}

/* タイトル */
.hakuto-legal__title {
  font-family: "Space Grotesk", "Inter", "Noto Sans JP", sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 8px;
}
@media (max-width: 600px) {
  .hakuto-legal__title { font-size: 1.7rem; }
}
.hakuto-legal__updated {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #64748b;
  margin: 0 0 32px;
}

.hakuto-legal__intro {
  background: rgba(6, 182, 212, 0.06);
  border-left: 3px solid #06b6d4;
  padding: 18px 22px;
  border-radius: 0 10px 10px 0;
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.85;
  margin: 0 0 36px;
}

/* セクション */
.hakuto-legal__sec {
  margin: 0 0 32px;
  padding: 0 0 28px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.18);
}
.hakuto-legal__sec:last-of-type {
  border-bottom: none;
}
.hakuto-legal__sec h2 {
  font-family: "Space Grotesk", "Inter", "Noto Sans JP", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px;
  padding-left: 14px;
  border-left: 4px solid #06b6d4;
}
.hakuto-legal__sec h2::before {
  content: "";
}
.hakuto-legal__sec p {
  margin: 0 0 14px;
  color: #cbd5e1;
}
.hakuto-legal__sec ol,
.hakuto-legal__sec ul {
  margin: 8px 0 16px;
  padding-left: 1.5em;
}
.hakuto-legal__sec ol > li,
.hakuto-legal__sec ul > li {
  margin: 6px 0;
  color: #cbd5e1;
}
.hakuto-legal__sec ol ul,
.hakuto-legal__sec ul ul {
  margin-top: 4px;
}
.hakuto-legal__sec b {
  color: #67e8f9;
  font-weight: 700;
}
.hakuto-legal__sec a {
  color: #06b6d4;
  text-decoration: none;
  border-bottom: 1px solid rgba(6, 182, 212, 0.4);
  transition: color 0.2s, border-color 0.2s;
}
.hakuto-legal__sec a:hover {
  color: #67e8f9;
  border-color: #67e8f9;
}

/* 定義リスト（特商法・お問合せ） */
.hakuto-legal__list {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px 24px;
  margin: 0;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
}
@media (max-width: 600px) {
  .hakuto-legal__list {
    grid-template-columns: 1fr;
    gap: 6px 0;
    padding: 16px 18px;
  }
}
.hakuto-legal__list dt {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #06b6d4;
  padding-top: 4px;
}
.hakuto-legal__list dd {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.92rem;
  line-height: 1.8;
}
@media (max-width: 600px) {
  .hakuto-legal__list dt {
    padding-top: 12px;
    border-top: 1px dashed rgba(148, 163, 184, 0.18);
  }
  .hakuto-legal__list dt:first-child {
    padding-top: 0;
    border-top: none;
  }
  .hakuto-legal__list dd {
    margin-bottom: 8px;
  }
}
.hakuto-legal__list dd small {
  display: inline-block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 0.78rem;
}
.hakuto-legal__list dd b {
  color: #67e8f9;
}
.hakuto-legal__list dd a {
  color: #06b6d4;
  text-decoration: none;
  border-bottom: 1px solid rgba(6, 182, 212, 0.4);
}

/* 補足注釈 */
.hakuto-legal__note {
  margin: 24px 0 0;
  padding: 14px 18px;
  background: rgba(251, 191, 36, 0.06);
  border-left: 3px solid #fbbf24;
  border-radius: 0 8px 8px 0;
  color: #fde68a;
  font-size: 0.82rem;
  line-height: 1.7;
}

.hakuto-legal__signoff {
  margin: 36px 0 0;
  text-align: right;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

/* 下部ナビ（関連ページへ） */
.hakuto-legal__nav {
  margin: 56px 0 0;
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.hakuto-legal__nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 999px;
  color: #67e8f9;
  text-decoration: none;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s, color 0.2s, border-color 0.2s;
}
.hakuto-legal__nav a:hover {
  background: #06b6d4;
  border-color: #06b6d4;
  color: #060c14;
  transform: translateY(-2px);
}

/* フッタ */
.hakuto-legal__footer {
  position: relative;
  z-index: 1;
  padding: 24px 28px;
  text-align: center;
  border-top: 1px solid rgba(6, 182, 212, 0.15);
}
.hakuto-legal__footer small {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #64748b;
}
