/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
}

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

/* ===== Buttons ===== */
.btn-primary {
  background: #1a237e;
  color: #fff;
  border: none;
  padding: 10px 28px;
  font-size: 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover {
  background: #283593;
}
.btn-primary:disabled {
  background: #9e9e9e;
  cursor: not-allowed;
}
.btn-secondary {
  background: #fff;
  color: #1a237e;
  border: 1px solid #1a237e;
  padding: 10px 28px;
  font-size: 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-secondary:hover {
  background: #e8eaf6;
}
.btn-large {
  padding: 14px 48px;
  font-size: 18px;
}
.btn-small {
  padding: 6px 16px;
  font-size: 13px;
}
.btn-header {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
}
.btn-header:hover {
  background: rgba(255,255,255,0.1);
}
.link-btn {
  background: none;
  border: none;
  color: #1a237e;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 4px;
}

/* ===== Start Screen ===== */
.start-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
}
.start-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a237e;
  margin-bottom: 4px;
}
.start-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

/* ヒーローバッジ */
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.hero-badge {
  display: inline-block;
  background: #e8eaf6;
  color: #1a237e;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* ファーストビュー特徴カード */
.feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
  text-align: center;
}
.feature-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 28px 18px 24px;
  transition: box-shadow 0.15s;
}
.feature-card:hover {
  box-shadow: 0 4px 20px rgba(26, 35, 126, 0.12);
}
.feature-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e8eaf6;
  color: #1a237e;
  font-size: 32px;
  margin-bottom: 14px;
}
.feature-title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #1a237e;
  margin-bottom: 8px;
  line-height: 1.4;
}
.feature-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* 対応分野 */
.start-categories {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 28px;
  text-align: center;
}
.categories-label {
  font-size: 12px;
  font-weight: 700;
  color: #1a237e;
  margin-bottom: 4px;
}
.categories-list {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}

.config-section {
  text-align: left;
  margin-bottom: 36px;
}
.config-group {
  margin-bottom: 24px;
}
.config-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}
.config-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.config-btn {
  background: #fff;
  border: 1px solid #ccc;
  padding: 8px 20px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.config-btn:hover {
  border-color: #1a237e;
  color: #1a237e;
}
.config-btn.active {
  background: #1a237e;
  color: #fff;
  border-color: #1a237e;
}
.difficulty-grid {
  display: flex;
  gap: 8px;
}
.difficulty-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  transition: background 0.15s;
}
.difficulty-item:hover {
  background: #f0f0f0;
}
.difficulty-item input {
  accent-color: #1a237e;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.category-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 8px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  transition: background 0.15s;
}
.category-item:hover {
  background: #f0f0f0;
}
.category-item input {
  accent-color: #1a237e;
}
.category-actions {
  margin-top: 8px;
  display: flex;
  gap: 12px;
}

/* ===== Exam Screen ===== */
#screen-exam {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#screen-exam.active {
  display: flex;
}
.exam-header {
  background: #1a237e;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  flex-shrink: 0;
  z-index: 100;
}
.exam-logo {
  font-size: 16px;
  font-weight: 600;
}
.exam-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.timer-display {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.timer-display.warning {
  color: #ffab40;
}
.timer-display.danger {
  color: #ff5252;
  animation: blink 1s infinite;
}
@keyframes blink {
  50% { opacity: 0.5; }
}
.progress-display {
  font-size: 14px;
  opacity: 0.9;
}

.exam-body {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.question-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.question-category {
  font-size: 14px;
  font-weight: 600;
  color: #1a237e;
  background: #e8eaf6;
  padding: 4px 12px;
  border-radius: 4px;
}
.question-difficulty {
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  background: #e0e0e0;
  color: #555;
}
.question-difficulty.diff-1 {
  background: #e8f5e9;
  color: #2e7d32;
}
.question-difficulty.diff-2 {
  background: #fff3e0;
  color: #e65100;
}
.question-difficulty.diff-3 {
  background: #ffebee;
  color: #c62828;
}
.question-number {
  font-size: 14px;
  color: #666;
}

.question-content {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.question-content .question-chart-canvas {
  display: block;
  max-width: 100%;
  margin: 16px auto;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  background: #fff;
}
.review-question .question-chart-canvas {
  display: block;
  max-width: 100%;
  margin: 16px auto;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  background: #fff;
}
.question-content table {
  border-collapse: collapse;
  margin: 16px 0;
  width: 100%;
  font-size: 14px;
}
.question-content th,
.question-content td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: right;
}
.question-content th {
  background: #f0f0f0;
  font-weight: 600;
  text-align: center;
}

.answer-area {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 14px 20px;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.answer-area label {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
  display: block;
}
.answer-input {
  display: flex;
  align-items: center;
  gap: 8px;
}
.answer-input input[type="number"],
.answer-input input[type="text"] {
  width: 160px;
  padding: 10px 12px;
  font-size: 18px;
  border: 2px solid #ccc;
  border-radius: 4px;
  text-align: right;
  outline: none;
  transition: border-color 0.2s;
}
.answer-input input:focus {
  border-color: #1a237e;
}
.answer-unit {
  font-size: 16px;
  color: #555;
}
.fraction-input {
  display: flex;
  align-items: center;
  gap: 4px;
}
.fraction-input input {
  width: 80px;
  padding: 10px 8px;
  font-size: 18px;
  border: 2px solid #ccc;
  border-radius: 4px;
  text-align: center;
  outline: none;
}
.fraction-input input:focus {
  border-color: #1a237e;
}
.fraction-slash {
  font-size: 24px;
  color: #555;
  padding: 0 4px;
}

/* 選択式 */
.choice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.choice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 14px;
}
.choice-item:hover {
  background: #f5f5f5;
  border-color: #1a237e;
}
.choice-item.selected {
  background: #e8eaf6;
  border-color: #1a237e;
}
.choice-item input[type="radio"] {
  accent-color: #1a237e;
}

/* タイマーバー */
.question-timer-bar {
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  margin-bottom: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.question-timer-fill {
  height: 100%;
  width: 100%;
  background: #4caf50;
  border-radius: 3px;
  transition: width 1s linear, background-color 0.5s;
}
.question-timer-fill.warning {
  background: #ff9800;
}
.question-timer-fill.danger {
  background: #f44336;
}

/* 練習モード フィードバック */
.practice-feedback {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 10px;
  flex-shrink: 0;
  max-height: 30vh;
  overflow-y: auto;
}
.feedback-result {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.feedback-result.correct {
  color: #2e7d32;
}
.feedback-result.incorrect {
  color: #c62828;
}
.feedback-explanation {
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  color: #444;
}

.exam-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 8px;
  flex-shrink: 0;
}

/* ===== Result Screen ===== */
.result-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 24px;
}
.result-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a237e;
  text-align: center;
  margin-bottom: 28px;
}
.result-summary {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 24px;
}
.result-score, .result-time {
  text-align: center;
}
.score-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}
.score-value {
  font-size: 36px;
  font-weight: 700;
  color: #1a237e;
}
.score-detail {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

.score-bar-container {
  height: 12px;
  background: #e0e0e0;
  border-radius: 6px;
  margin-bottom: 32px;
  overflow: hidden;
}
.score-bar {
  height: 100%;
  background: linear-gradient(90deg, #1a237e, #3f51b5);
  border-radius: 6px;
  transition: width 0.8s ease;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1a237e;
}
.category-results {
  margin-bottom: 32px;
}
.category-result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
}
.cat-name {
  width: 120px;
  flex-shrink: 0;
  font-weight: 500;
}
.cat-bar-bg {
  flex: 1;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}
.cat-bar-fill {
  height: 100%;
  background: #3f51b5;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.cat-score {
  width: 100px;
  text-align: right;
  font-size: 13px;
  color: #666;
  flex-shrink: 0;
}

.radar-chart-container {
  text-align: center;
  margin-bottom: 32px;
}
.radar-chart-container canvas {
  max-width: 100%;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Review Screen ===== */
.review-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
}
.review-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.review-progress {
  font-size: 14px;
  color: #666;
}
.review-content {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 24px;
}
.review-result {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 4px;
}
.review-result.correct {
  background: #e8f5e9;
  color: #2e7d32;
}
.review-result.incorrect {
  background: #ffebee;
  color: #c62828;
}
.review-result.skipped {
  background: #fff3e0;
  color: #e65100;
}
.review-question {
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}
.review-answer {
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.6;
}
.review-answer .your-answer {
  color: #666;
}
.review-answer .correct-answer {
  color: #2e7d32;
  font-weight: 600;
}
.review-explanation {
  background: #fafafa;
  border-left: 3px solid #1a237e;
  padding: 16px;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.review-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.review-list-item {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.review-list-item:hover {
  border-color: #1a237e;
}
.review-list-item.current {
  background: #1a237e;
  color: #fff;
  border-color: #1a237e;
}
.review-list-item.correct {
  background: #e8f5e9;
  border-color: #4caf50;
}
.review-list-item.incorrect {
  background: #ffebee;
  border-color: #f44336;
}
.review-list-item.skipped {
  background: #fff3e0;
  border-color: #ff9800;
}

/* ===== 解説プレビュー（一時停止）オーバーレイ ===== */
.peek-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.peek-overlay-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}
.peek-panel {
  position: relative;
  background: #fff;
  border-radius: 8px;
  max-width: 640px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.peek-header {
  background: #1a237e;
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px 8px 0 0;
}
.peek-title {
  font-size: 16px;
  font-weight: 600;
}
.peek-body {
  padding: 20px 24px;
}
.peek-correct-answer {
  font-size: 16px;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: #e8f5e9;
  border-radius: 4px;
}
.peek-explanation {
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  color: #444;
}
.peek-actions {
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  border-top: 1px solid #e0e0e0;
}

/* 解説を見るボタン: peeked 状態の review-list-item */
.review-list-item.peeked {
  background: #e8eaf6;
  border-color: #7986cb;
}

/* ===== Responsive ===== */
/* シェアボタン */
.share-section {
  margin-top: 20px;
  text-align: center;
}
.btn-share-x {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #000;
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-share-x:hover {
  background: #333;
}

/* FAQ */
.faq-section {
  text-align: left;
  margin-top: 32px;
  margin-bottom: 8px;
}
.faq-heading {
  font-size: 16px;
  font-weight: 700;
  color: #1a237e;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #1a237e;
}
.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 8px;
  background: #fff;
}
.faq-item summary {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::before {
  content: "Q. ";
  color: #1a237e;
  font-weight: 700;
}
.faq-item summary::after {
  content: "＋";
  float: right;
  color: #999;
  font-weight: 400;
}
.faq-item[open] summary::after {
  content: "－";
}
.faq-item p {
  padding: 0 16px 14px;
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}

/* β版バッジ */
.beta-badge {
  display: inline-block;
  background: #ff6f00;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  vertical-align: super;
  margin-left: 4px;
}
.beta-badge-sm {
  display: inline-block;
  background: rgba(255,255,255,0.3);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  vertical-align: super;
  margin-left: 2px;
}

/* β版お知らせ */
.beta-notice {
  margin-top: 24px;
  padding: 12px 16px;
  background: #fff3e0;
  border: 1px solid #ffe0b2;
  border-radius: 4px;
  font-size: 13px;
  color: #e65100;
  text-align: center;
}
.beta-notice a {
  color: #e65100;
  font-weight: 600;
}

/* 誤り報告ボタン */
.btn-report {
  display: block;
  margin: 16px auto 0;
  background: none;
  border: 1px solid #e57373;
  color: #c62828;
  padding: 8px 20px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-report:hover {
  background: #ffebee;
}

@media (max-width: 600px) {
  .start-container {
    padding: 24px 16px;
  }
  .start-title {
    font-size: 22px;
  }
  .feature-cards {
    grid-template-columns: 1fr;
  }
  .feature-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 16px;
    text-align: left;
  }
  .feature-icon-circle {
    width: 48px;
    height: 48px;
    font-size: 24px;
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .feature-title {
    font-size: 15px;
  }
  .feature-desc {
    font-size: 13px;
  }
  .hero-badge {
    font-size: 12px;
    padding: 5px 12px;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .result-summary {
    gap: 24px;
  }
  .score-value {
    font-size: 28px;
  }
  .exam-header {
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .exam-body {
    padding: 12px 16px;
  }
  .review-body {
    padding: 16px;
  }
  .cat-name {
    width: 80px;
    font-size: 12px;
  }
}

/* ===== 規約・情報ページ（privacy / about / contact） ===== */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
.legal-header {
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 32px;
}
.legal-logo {
  font-size: 18px;
  font-weight: 700;
  color: #1a237e;
  text-decoration: none;
}
.legal-logo:hover { text-decoration: underline; }
.legal-body {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 32px;
}
.legal-body h1 {
  font-size: 24px;
  color: #1a237e;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8eaf6;
}
.legal-body h2 {
  font-size: 17px;
  color: #1a237e;
  margin: 28px 0 10px;
}
.legal-body p { margin-bottom: 12px; }
.legal-body ul { margin: 0 0 12px 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: #1a237e; }
.legal-lead {
  color: #555;
  background: #e8eaf6;
  padding: 12px 16px;
  border-radius: 6px;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}
.legal-table th,
.legal-table td {
  border: 1px solid #e0e0e0;
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}
.legal-table th {
  background: #f5f5f5;
  width: 30%;
  white-space: nowrap;
  font-weight: 600;
}
.legal-cta { margin: 16px 0; }
.legal-btn {
  display: inline-block;
  background: #1a237e;
  color: #fff !important;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
}
.legal-btn:hover { background: #283593; }
.legal-note {
  font-size: 13px;
  color: #666;
}
.legal-date {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
  font-size: 13px;
  color: #666;
}
.legal-footer {
  margin-top: 32px;
  text-align: center;
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 12px;
}
.legal-nav a {
  color: #1a237e;
  font-size: 13px;
}
.legal-copy {
  font-size: 12px;
  color: #666;
}

/* ホーム画面フッター */
.site-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}
.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 10px;
}
.site-footer-nav a {
  color: #1a237e;
  font-size: 13px;
}
.site-footer-copy {
  font-size: 12px;
  color: #666;
}

@media (max-width: 600px) {
  .legal-body { padding: 20px; }
  .legal-body h1 { font-size: 20px; }
  .legal-table th { width: 38%; }
}
