/* 法務ページ共通（privacy / terms / personal-data / account-deletion） */
:root {
  --bg: #0b0505;
  --ink: #e9dfd8;
  --ink-dim: #a99a91;
  --ink-faint: #74655e;
  --gold: #f5c451;
  --gold-deep: #c8902a;
  --ember: #ff5a1f;
  --line: rgba(245, 196, 81, 0.14);
  --card: rgba(255, 255, 255, 0.025);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(70% 380px at 50% -120px, rgba(255, 90, 31, 0.22), transparent 70%),
    radial-gradient(50% 300px at 100% 0, rgba(179, 18, 27, 0.18), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  line-height: 1.85;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* 上部バー */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 5, 5, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 820px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.topbar .brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 16px rgba(255, 90, 31, 0.35); }
.topbar .brand b { font-family: 'Noto Serif JP', serif; font-weight: 900; letter-spacing: 0.12em; }
.topbar .brand small { font-family: 'Cinzel', serif; font-size: 0.64rem; letter-spacing: 0.3em; color: var(--gold); }

.back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-dim); text-decoration: none; font-size: 0.84rem;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.back:hover { color: var(--gold); border-color: rgba(245, 196, 81, 0.45); background: rgba(245, 196, 81, 0.06); }

.container { max-width: 820px; margin: 0 auto; padding: 56px 24px 40px; }

h1 {
  word-break: auto-phrase;
  font-family: 'Noto Serif JP', serif; font-weight: 900;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem); line-height: 1.35; letter-spacing: 0.06em;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #fff1c4, var(--gold) 45%, var(--ember));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1[style] { margin-top: 8px; }

.date, .lang {
  display: inline-block; color: var(--ink-faint); font-size: 0.8rem; letter-spacing: 0.04em;
  margin-bottom: 36px; padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px;
}

section {
  margin-bottom: 18px; padding: 24px 26px;
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 16px;
}

h2 {
  color: var(--gold); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.03em;
  margin-bottom: 10px; display: flex; align-items: center; gap: 10px;
}
h2::before {
  content: ''; flex: none; width: 4px; height: 1.05em; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), var(--ember));
}

p, li, td, th { font-size: 0.93rem; color: var(--ink); }
p + p { margin-top: 8px; }
ul, ol { padding-left: 22px; margin-top: 8px; }
li { margin-bottom: 6px; }
li::marker { color: var(--gold-deep); }
strong { color: #fff; font-weight: 700; }

a { color: var(--gold); text-underline-offset: 3px; }
.email { color: var(--gold); margin-top: 12px; }
.email a, a.email { color: var(--gold); }

code {
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1px 7px; border-radius: 6px; font-size: 0.85em; color: #f1e6dd;
}

.email-box, .notice {
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.08), rgba(255, 90, 31, 0.04));
  border: 1px solid rgba(245, 196, 81, 0.3); border-radius: 12px;
  padding: 14px 18px; margin: 14px 0;
}

hr, .divider {
  border: none !important; height: 1px; margin: 56px 0 !important;
  background: linear-gradient(90deg, transparent, rgba(245, 196, 81, 0.4), transparent);
}

table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td {
  text-align: left; vertical-align: top; padding: 11px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 0.86rem;
}
th { color: var(--gold); font-weight: 700; white-space: nowrap; font-size: 0.78rem; letter-spacing: 0.04em; }
td:first-child { color: #fff; font-weight: 700; }
tbody tr:hover td { background: rgba(245, 196, 81, 0.03); }

.site-footer {
  max-width: 820px; margin: 0 auto; padding: 32px 24px calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between;
  font-size: 0.8rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--ink-dim); text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current] { color: var(--gold); }
.site-footer .copy { color: var(--ink-faint); }

@media (max-width: 600px) {
  .topbar-inner { padding: 10px 16px; }
  .topbar .brand small { display: none; }
  .container { padding: 40px 16px 32px; }
  section { padding: 20px 18px; border-radius: 14px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
  td { border-bottom: none; padding: 4px 0; }
  tbody tr:hover td { background: none; }
  td[data-label]::before {
    content: attr(data-label); display: block;
    color: var(--gold); font-size: 0.74rem; font-weight: 700;
  }
  .site-footer { padding-inline: 16px; }
}

/* 言語選択（v7.0〜 73 言語。/assets/i18n.js が .container の先頭に差し込む） */
.lang-row { display: flex; justify-content: flex-end; margin: 0 0 18px; }
.lang-row select.lang-select {
  appearance: none; -webkit-appearance: none; border: 1px solid #3a2a2a; border-radius: 999px;
  background: rgba(0,0,0,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23c9b89a' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: #d9c9b8; font: 600 .8rem/1 inherit; padding: 8px 26px 8px 12px; cursor: pointer; max-width: 200px;
}
html[dir="rtl"] .lang-row { justify-content: flex-start; }
html[dir="rtl"] .lang-row select.lang-select { background-position: left 10px center; padding: 8px 12px 8px 26px; }
.lang-note { font-size: .8rem; color: #8a7a72; border: 1px solid #3a2a2a; border-radius: 8px; padding: 8px 12px; margin: 0 0 20px; }
