/* ============ SEARED BONITO — legal pages ============ */

.legal-page { background: var(--bg); }

.legal {
  padding: 132px 0 8svh;
}
.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 max(24px, env(safe-area-inset-left));
}
.legal-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.08;
  margin-bottom: 14px;
}
html[lang="ja"] .legal-title { letter-spacing: 0; line-height: 1.26; }
.legal-meta {
  font-size: 14px;
  color: var(--muted);
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(244, 241, 234, .12);
  margin-bottom: 34px;
}
.legal-intro {
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.75;
  color: rgba(244, 241, 234, .9);
  margin-bottom: 12px;
}

.legal-body h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.3;
  margin: 46px 0 14px;
  scroll-margin-top: 96px;
}
html[lang="ja"] .legal-body h2 { letter-spacing: 0; line-height: 1.45; }
.legal-body h3 {
  font-size: clamp(1.02rem, 1.7vw, 1.15rem);
  font-weight: 600;
  color: var(--flame-2);
  margin: 26px 0 8px;
}
.legal-body p,
.legal-body li {
  font-size: clamp(.98rem, 1.5vw, 1.05rem);
  line-height: 1.78;
  color: var(--muted);
}
html[lang="ja"] .legal-body p,
html[lang="ja"] .legal-body li { line-height: 1.95; }
.legal-body p { margin-bottom: 14px; }
.legal-body ul { margin: 0 0 16px 1.15em; }
.legal-body li { margin-bottom: 8px; }

/* numbered provisions */
.legal-body ol.lgl {
  list-style: decimal;
  margin: 0 0 16px 1.6em;
}
.legal-body ol.lgl > li { margin-bottom: 10px; padding-left: .2em; }
.legal-body ol.sub {
  list-style: none;
  counter-reset: sub;
  margin: 10px 0 6px 0;
}
.legal-body ol.sub > li {
  counter-increment: sub;
  position: relative;
  padding-left: 2.6em;
  margin-bottom: 7px;
}
.legal-body ol.sub > li::before {
  content: "(" counter(sub) ")";
  position: absolute;
  left: 0;
  color: rgba(244, 241, 234, .65);
  font-variant-numeric: tabular-nums;
}
.legal-body .lgl-defined { color: rgba(244, 241, 234, .95); }
.legal-body .lgl-note {
  display: block;
  margin-top: 6px;
  font-size: .88em;
  line-height: 1.6;
  color: rgba(147, 163, 186, .78);
}
/* first column of a definition-style table needs room for the label */
.legal-body .legal-table th {
  width: 26%;
  min-width: 8.5em;
  white-space: nowrap;
  vertical-align: top;
}
@media (max-width: 720px) {
  .legal-body .legal-table th { width: 34%; min-width: 0; white-space: normal; }
}
.legal-body .legal-schedule-title {
  font-size: clamp(1.02rem, 1.7vw, 1.15rem);
  font-weight: 600;
  color: var(--flame-2);
  margin: 26px 0 10px;
}
.legal-body .legal-closing {
  margin-top: 30px;
  text-align: right;
  color: rgba(147, 163, 186, .8);
}
.legal-body strong { color: rgba(244, 241, 234, .95); font-weight: 600; }
.legal-body a { color: var(--flame-2); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--flame-1); }

/* data table */
.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 18px;
  border: 1px solid rgba(244, 241, 234, .13);
  border-radius: 14px;
}
.legal-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: clamp(.9rem, 1.4vw, .98rem);
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(244, 241, 234, .1);
  vertical-align: top;
  line-height: 1.6;
}
.legal-table thead th {
  background: rgba(9, 22, 44, .6);
  color: rgba(244, 241, 234, .95);
  font-weight: 600;
  white-space: nowrap;
}
.legal-table tbody td { color: var(--muted); }
.legal-table tbody tr:last-child td { border-bottom: none; }

.legal-note {
  border-left: 2px solid var(--flame-1);
  background: rgba(9, 22, 44, .45);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 22px 0;
}
.legal-note p:last-child { margin-bottom: 0; }

.legal-back {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid rgba(244, 241, 234, .12);
}
.legal-back a {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  transition: color .3s ease;
}
.legal-back a:hover { color: var(--ink); }

.legal-footer {
  padding: 0 24px max(6svh, env(safe-area-inset-bottom));
  text-align: center;
}

/* privacy link in main site footer */
.footer-links {
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: .06em;
}
.footer-links a {
  color: rgba(147, 163, 186, .8);
  text-decoration: none;
  transition: color .3s ease;
}
.footer-links a:hover { color: var(--ink); }
