/* ============================================================
   AIRA — Legal / policy pages (shared styles)
   Aligned to AIRA-DESIGN.md tokens
   ============================================================ */
:root {
  --primary: #0066cc;
  --primary-focus: #0071e3;
  --parchment: #f5f5f7;
  --canvas: #ffffff;
  --ink: #1d1d1f;
  --ink-80: #333333;
  --ink-48: #686868;
  --tile-1: #272729;
  --hairline: #e0e0e0;
  --r-lg: 18px;
  --font-en: "Inter", system-ui, -apple-system, sans-serif;
  --font-jp: "Noto Sans JP", "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.tnum { font-variant-numeric: tabular-nums; }

/* ---- Top bar ---- */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 24px;
  background: var(--tile-1);
}
.legal-nav .wordmark {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
}
.legal-nav .back {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legal-nav .back:hover { opacity: 1; }

/* ---- Content ---- */
.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.legal-kicker {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 8px;
}
.legal-wrap h1 {
  font-weight: 700;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}
.legal-meta {
  font-size: 13px;
  color: var(--ink-48);
  margin-top: 12px;
}
.legal-lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-80);
  margin-top: 24px;
}
.legal-wrap h2 {
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 48px 0 12px;
  padding-top: 8px;
}
.legal-wrap h3 {
  font-weight: 600;
  font-size: 16px;
  margin: 28px 0 8px;
}
.legal-wrap p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-80);
  margin: 0 0 16px;
}
.legal-wrap ul, .legal-wrap ol {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-80);
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal-wrap li { margin-bottom: 6px; }
.legal-wrap a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.legal-wrap a:hover { text-decoration: none; }
.legal-wrap strong { font-weight: 600; color: var(--ink); }

/* Placeholder text the operator must replace before launch */
.fillin {
  background: #fdf5e0;
  color: #9a6a12;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.92em;
  font-weight: 600;
}

/* Definition / spec table (特商法) */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  background: var(--canvas);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.legal-table th, .legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.7;
  border-bottom: 1px solid var(--hairline);
}
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: none; }
.legal-table th {
  width: 34%;
  font-weight: 600;
  color: var(--ink);
  background: #fafafc;
}
.legal-table td { color: var(--ink-80); }

/* Price breakdown table nested inside 販売価格 cell */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 12px;
}
.price-table th, .price-table td {
  text-align: left;
  vertical-align: top;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px solid var(--hairline);
}
.price-table tr:first-child th, .price-table tr:first-child td { border-top: 1px solid var(--hairline); }
.price-table th { width: 30%; font-weight: 600; color: var(--ink); background: none; }
.price-table td { color: var(--ink-80); }
.price-table td.tnum { width: 26%; white-space: nowrap; font-weight: 600; color: var(--ink); }
.price-tax { display: block; font-size: 12.5px; color: var(--ink-48); line-height: 1.7; }

/* Callout */
.legal-note {
  background: #e6f4ff;
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin: 24px 0;
}
.legal-note p { margin: 0; color: var(--ink-80); }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--hairline);
  padding: 22px 0;
}
.faq-item:first-of-type { border-top: 1px solid var(--hairline); }
.faq-q { font-weight: 600; font-size: 17px; color: var(--ink); margin: 0 0 8px; }
.faq-a { font-size: 16px; line-height: 1.8; color: var(--ink-80); margin: 0; }

/* Footer */
.legal-foot {
  border-top: 1px solid var(--hairline);
  margin-top: 56px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}
.legal-foot .copy { font-size: 12px; color: var(--ink-48); }
.legal-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.legal-foot nav a { font-size: 12px; color: var(--ink-48); text-decoration: none; }
.legal-foot nav a:hover { color: var(--primary); }

a:focus-visible, .back:focus-visible {
  outline: 2px solid var(--primary-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 560px) {
  .legal-wrap { padding: 48px 20px 72px; }
  .legal-wrap h1 { font-size: 28px; }
  .legal-table th { width: 40%; }
}

/* ---- 開発終了のお知らせ ---- */
.legal-notice {
  margin: 16px 0 24px;
  padding: 14px 18px;
  background: #fff8e6;
  border: 1px solid #f0d48a;
  border-radius: 12px;
  font-size: 0.9375rem;
  line-height: 1.8;
}
