/* Botch 公式ホームページ・規約ページ 共通スタイル。
   配色・フォントは docs/botch_mockup.html / lib/core/theme/botch_theme.dart
   と一致させる（夜の藍＋琥珀の灯り。ネオンにしない）。 */

:root {
  --night-0: #0e1220;
  --night-1: #141a2c;
  --night-2: #1b2338;
  --glow: #f2c987;
  --glow-soft: rgba(242, 201, 135, 0.16);
  --glow-line: rgba(242, 201, 135, 0.28);
  --ink: #ece9e1;
  --ink-mute: #8b93a8;
  --ink-faint: #5c6379;
  --panel: rgba(255, 251, 243, 0.055);
  --panel-line: rgba(255, 248, 236, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", system-ui,
    sans-serif;
  background: var(--night-0);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: var(--glow);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1;
  text-decoration: none;
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark svg {
  display: block;
  overflow: visible;
}

.wordmark .otch {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink);
}

/* ── ヘッダー（規約ページ共通） ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(20px, 6vw, 64px);
  max-width: 860px;
  margin: 0 auto;
}

.site-header .wordmark .otch {
  font-size: 22px;
}

.back-link {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.3px;
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.back-link:hover {
  color: var(--ink);
  border-color: var(--glow-line);
  text-decoration: none;
}

/* ── 規約本文 ── */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px clamp(20px, 6vw, 64px) 96px;
}

.doc h1 {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  color: var(--glow);
  letter-spacing: 0.3px;
  margin: 18px 0 10px;
}

.doc h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.2px;
  margin: 30px 0 10px;
  padding-top: 6px;
  border-top: 1px solid var(--panel-line);
}

.doc h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.doc p {
  font-size: 14.5px;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: 0.2px;
}

.doc ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.doc li {
  position: relative;
  font-size: 14.5px;
  color: var(--ink);
  padding-left: 18px;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.doc li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}

.doc strong {
  font-weight: 700;
  color: var(--ink);
}

.doc .updated {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--panel-line);
  font-size: 12.5px;
  color: var(--ink-faint);
  letter-spacing: 0.3px;
}

/* ── フッター（共通） ── */
.site-footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px clamp(20px, 6vw, 64px) 48px;
  border-top: 1px solid var(--panel-line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: space-between;
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.site-footer .links a {
  font-size: 12.5px;
  color: var(--ink-mute);
  letter-spacing: 0.3px;
}

.site-footer .links a:hover {
  color: var(--glow);
}

.site-footer .meta {
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.3px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  text-align: right;
}

@media (max-width: 520px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-footer .meta {
    align-items: flex-start;
    text-align: left;
  }
}
