/* 公開ページ（プライバシーポリシー・サポート）の共通スタイル。
   アプリ本体のデザイントークンとは独立させる（ここはストア審査用の静的ページであり、
   アプリのビルドに含めない。rules/ のコンポーネント規約の対象外）。 */

:root {
  --bg: #ffffff;
  --fg: #22303a;
  --fg-muted: #6b7a85;
  --accent: #2f7fa6;
  --border: #e3e8eb;
  --surface: #f6f8f9;
  --max-width: 780px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151b1f;
    --fg: #e6edf1;
    --fg-muted: #9aa9b3;
    --accent: #6cb6d6;
    --border: #2b353c;
    --surface: #1d252a;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', Meiryo, Roboto, sans-serif;
  line-height: 1.85;
  color: var(--fg);
  background: var(--bg);
  padding: 0 20px 64px;
  -webkit-text-size-adjust: 100%;
}

main { max-width: var(--max-width); margin: 0 auto; }

/* 上部バー: ブランド名 + 言語切替 */
.topbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.lang-switch { display: flex; gap: 8px; }

.lang-switch button {
  padding: 8px 16px;
  min-height: 44px; /* タップ領域 44pt 以上（a11y） */
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}

.lang-switch button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.lang-switch button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1 { font-size: 26px; line-height: 1.4; margin-bottom: 8px; }

h2 {
  font-size: 19px;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

h3 { font-size: 16px; margin-top: 24px; margin-bottom: 8px; }

p, li { font-size: 15px; margin-bottom: 10px; }

ul, ol { padding-left: 22px; margin-bottom: 10px; }

a { color: var(--accent); }

.last-updated { color: var(--fg-muted); font-size: 13px; margin-bottom: 28px; }

/* 重要な注意書き（第三者の氏名・GPS非追跡など） */
.callout {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 14px 16px;
  margin: 16px 0;
}

/* 表は横スクロールで逃がす（本文は横スクロールさせない） */
.table-wrap { overflow-x: auto; margin: 16px 0; }

table { border-collapse: collapse; width: 100%; min-width: 480px; }

th, td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th { background: var(--surface); font-weight: 600; }

.section { display: none; }
.section.active { display: block; }

.footer-link { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border); }

/* 目次カード（index.html） */
.cards { display: grid; gap: 14px; margin-top: 24px; }

.card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--fg);
  background: var(--surface);
}

.card strong { display: block; font-size: 16px; margin-bottom: 4px; color: var(--accent); }
.card span { font-size: 14px; color: var(--fg-muted); }
