/* ============ Legal pages (Privacy / Tokushoho) ============ */

.legal-crumbs {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px 24px; font-size: 0.8125rem; color: var(--ink-3);
}
.legal-crumbs a { color: var(--ink-3); }
.legal-crumbs a:hover { color: var(--brand); }

.legal-hero {
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--brand-soft);
}
.legal-hero .kicker {
  font-size: 0.6875rem; letter-spacing: .2em; color: var(--brand);
  font-weight: 700; margin-bottom: 10px;
}
.legal-hero h1 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.625rem, 3.2vw, 2.25rem);
  font-weight: 700; color: var(--ink);
  margin-bottom: 16px; letter-spacing: .02em;
}
.legal-hero p {
  font-size: 0.90625rem; line-height: 1.95; color: var(--ink-2);
  max-width: 760px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  padding: 48px 24px 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 28px; padding: 32px 20px 60px; }
}

.legal-toc {
  position: sticky; top: calc(var(--hh) + 16px);
  font-size: 0.8125rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 16px;
  max-height: calc(100vh - var(--hh) - 32px);
  overflow-y: auto;
}
@media (max-width: 900px) {
  .legal-toc { position: static; max-height: none; }
}
.legal-toc .toc-title {
  font-size: 0.6875rem; letter-spacing: .18em;
  font-weight: 700; color: var(--brand);
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.legal-toc ol {
  list-style: none; padding: 0; margin: 0;
  counter-reset: toc;
}
.legal-toc li {
  counter-increment: toc;
  padding: 4px 0;
  display: flex; gap: 8px; line-height: 1.5;
}
.legal-toc li::before {
  content: counter(toc) ".";
  color: var(--ink-3); font-weight: 600;
  flex-shrink: 0; width: 22px; text-align: right;
  font-feature-settings: "tnum";
}
.legal-toc li a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.legal-toc li a:hover {
  color: var(--brand); border-bottom-color: var(--brand);
}

.legal-body {
  font-size: 0.90625rem; line-height: 1.95; color: var(--ink-2);
  max-width: 760px;
}
.legal-body section { margin-bottom: 44px; scroll-margin-top: calc(var(--hh) + 16px); }
.legal-body section + section {
  padding-top: 8px;
}
.legal-body h2 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.375rem; font-weight: 700;
  color: var(--ink); line-height: 1.4;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand);
  display: inline-block;
  min-width: 120px;
}
.legal-body h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--ink);
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--brand);
  line-height: 1.5;
}
.legal-body p {
  margin: 0 0 14px;
}
.legal-body p:last-child { margin-bottom: 0; }

.legal-ol, .legal-ul {
  margin: 8px 0 16px;
  padding-left: 0;
}
.legal-ol { counter-reset: lol; list-style: none; }
.legal-ol > li {
  counter-increment: lol;
  position: relative;
  padding: 4px 0 4px 30px;
  line-height: 1.85;
}
.legal-ol > li::before {
  content: counter(lol) ".";
  position: absolute; left: 0; top: 4px;
  color: var(--brand); font-weight: 700;
  width: 24px; text-align: right;
  font-feature-settings: "tnum";
}
.legal-ul { list-style: none; }
.legal-ul > li {
  position: relative;
  padding: 4px 0 4px 18px;
  line-height: 1.85;
}
.legal-ul > li::before {
  content: ""; position: absolute;
  left: 4px; top: 14px;
  width: 5px; height: 5px;
  background: var(--brand);
  border-radius: 50%;
}
.legal-ul.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 20px;
}
@media (max-width: 600px) {
  .legal-ul.cols-2 { grid-template-columns: 1fr; }
}

.legal-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 8px 0 16px;
  font-size: 0.875rem;
}
.legal-table th, .legal-table td {
  padding: 12px 16px;
  text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}
.legal-table tr:last-child th,
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--ink-2);
  width: 38%;
  font-size: 0.84375rem;
}
.legal-table td.num { text-align: right; font-feature-settings: "tnum"; }
@media (max-width: 600px) {
  .legal-table th, .legal-table td { display: block; width: auto; padding: 10px 14px; }
  .legal-table th {
    background: var(--bg-warm);
    border-bottom: 0;
    padding-bottom: 4px;
    font-size: 0.78125rem;
    color: var(--brand-deep);
  }
}

.legal-note {
  background: var(--bg-warm);
  border-left: 3px solid var(--brand);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 12px 0 16px;
  font-size: 0.84375rem;
  color: var(--ink-2);
}

.legal-contact {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 24px;
  margin: 12px 0;
}
.legal-contact .lc-org {
  font-weight: 700; color: var(--ink);
  margin-bottom: 12px;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.legal-contact dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 16px;
  margin: 0;
  font-size: 0.875rem;
}
.legal-contact dt {
  color: var(--ink-3);
  font-weight: 600;
}
.legal-contact dd { margin: 0; color: var(--ink-2); }
@media (max-width: 500px) {
  .legal-contact dl { grid-template-columns: 1fr; gap: 2px; }
  .legal-contact dt { padding-top: 8px; }
}

.legal-stamp {
  background: var(--bg-soft);
  border-left: 4px solid var(--brand);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  font-size: 0.875rem;
  line-height: 2;
  color: var(--ink-2);
  font-feature-settings: "tnum";
}

.legal-bottom-nav {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.legal-body .preface {
  background: var(--bg-warm);
  border: 1px solid var(--brand-soft);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin-bottom: 32px;
  font-size: 0.875rem;
  line-height: 1.85;
  color: var(--ink-2);
}
