:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --panel: #151515;
  --line: #2a2a2a;
  --text: #f2f2f2;
  --muted: #a6a6a6;
  --accent: #9aabc5;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.8;
}

a { color: #cbd8eb; }
a:hover { color: #fff; }

.legal-header {
  border-bottom: 1px solid var(--line);
  padding: 22px 24px;
}

.legal-header-inner,
.legal-main,
.legal-footer-inner {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
}

.back-link { font-size: 13px; text-decoration: none; }

.legal-main { padding: 72px 0 96px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
h1 { margin: 12px 0 42px; font-size: clamp(28px, 4vw, 42px); line-height: 1.35; }
h2 { margin: 42px 0 14px; font-size: 20px; line-height: 1.5; }
p { color: var(--muted); margin: 0 0 16px; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
}

.legal-table th,
.legal-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table th { width: 31%; color: #dfe6f2; font-weight: 700; }
.legal-table td { color: var(--muted); }

.legal-list { color: var(--muted); padding-left: 1.4em; }
.legal-list li { margin: 7px 0; }
.note {
  margin-top: 22px;
  padding: 15px 17px;
  border: 1px solid #4a3d17;
  background: #1a170d;
  color: #d8c98d;
  font-size: 13px;
}

.legal-footer {
  border-top: 1px solid var(--line);
  padding: 22px 24px 30px;
}

.legal-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #7d8aa0;
  font-size: 12px;
}

.legal-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.legal-footer a { color: #9aa7bd; text-decoration: none; }

@media (max-width: 640px) {
  .legal-header-inner,
  .legal-main,
  .legal-footer-inner { width: min(100% - 32px, 920px); }
  .legal-header { padding: 18px 16px; }
  .legal-main { padding: 48px 0 68px; }
  h1 { margin-bottom: 30px; }
  .legal-table th,
  .legal-table td { display: block; width: 100%; padding: 12px 14px; }
  .legal-table th { padding-bottom: 2px; border-bottom: 0; }
  .legal-table td { padding-top: 2px; }
}
