/* /legal/（特定商取引法に基づく表記・利用規約・プライバシーポリシー・返金・キャンセルポリシー）。/infinity-model と同じ白背景・◇・POTENITAS INFINITY の構成 */
:root {
  color-scheme: light;
  --ink: #1a1a1a;
  --mark: #3c4043;
  --sub: #5f6368;
  --border: #dadce0;
  --link: #1a56db;
  --font-en: "Helvetica Neue", Arial, sans-serif;
  --font-ja: "Hiragino Sans", "Noto Sans JP", Meiryo, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
}

body {
  font-family: var(--font-ja);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 20px 72px;
}

.mark {
  margin: 0;
  color: var(--mark);
  font-size: 26px;
  line-height: 1;
  text-align: center;
}

.brand {
  margin: 24px 0 0;
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-align: center;
}

.legal-title {
  margin: 32px 0 0;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.legal-table {
  margin: 36px 0 0;
  border-top: 1px solid var(--border);
}

.legal-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px 24px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
}

.legal-row dt {
  font-weight: 700;
}

.legal-row dd {
  margin: 0;
}

.legal-row p,
.legal-body p {
  margin: 0 0 8px;
}

.legal-row p:last-child {
  margin-bottom: 0;
}

.legal-body {
  margin-top: 32px;
}

.legal-body h2 {
  margin: 32px 0 8px;
  font-size: 17px;
}

.legal-body h3 {
  margin: 20px 0 6px;
  font-size: 15px;
}

.legal-body ol,
.legal-body ul {
  margin: 0 0 8px;
  padding-left: 1.4em;
}

.legal-date {
  margin-top: 32px;
  color: var(--sub);
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 48px;
  font-size: 14px;
}

.legal-nav a[aria-current='page'] {
  color: var(--sub);
  text-decoration: none;
}

@media (max-width: 640px) {
  .legal-row {
    grid-template-columns: 1fr;
    padding: 16px 2px;
  }
}

/* 購入の途中の確認（書面の一番下）。/infinity-model のボタンと同じ見た目 */
.legal-consent {
  margin-top: 40px;
  padding: 20px 18px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8f9fa;
}

.legal-consent[hidden] {
  display: none;
}

.consent-step {
  margin: 0;
  font-weight: 700;
}

.consent-lead {
  margin: 6px 0 0;
  color: var(--sub);
  font-size: 14px;
}

.consent-check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.consent-check input {
  width: 22px;
  height: 22px;
  margin: 0;
  flex: none;
}

.model-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  padding: 10px 16px;
  border: 1px solid #1a1a1a;
  border-radius: 999px;
  background: #1a1a1a;
  color: #FFFFFF;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.model-select:disabled {
  border-color: var(--border);
  background: var(--border);
  color: var(--sub);
  cursor: not-allowed;
}

.model-select:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.model-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: legal-spin 0.8s linear infinite;
}

.model-select[data-state='connecting'] .model-spinner {
  display: inline-block;
}

@keyframes legal-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .model-spinner {
    animation: none;
  }
}

.legal-consent .status {
  margin: 12px 0 0;
  color: var(--error, #b3261e);
  font-size: 14px;
}

.legal-consent .status[hidden] {
  display: none;
}

.consent-back {
  display: inline-block;
  margin-top: 14px;
  color: var(--sub);
  font-size: 14px;
}

