/* ============================================================
   Legal / utility pages — shared styles
   Used by:
     - /privacy
     - /terms
     - /thanks
     - /404
   Hero band + body section with serif headings on cream background.
   ============================================================ */

.legal-hero {
  margin-top: 70px;
  padding: 80px 24px 56px;
  background: linear-gradient(180deg, #fdfaf3 0%, #f7efe1 100%);
  text-align: center;
}

.legal-kicker {
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-dark, #d97706);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.legal-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.45;
  color: #0f172a;
  margin: 0 0 10px;
}

.legal-meta {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--text-light, #6b7280);
}

.legal-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal-section h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.3rem;
  color: #0f172a;
  margin: 56px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

.legal-section h2:first-child { margin-top: 0; }

.legal-section h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.04rem;
  color: #0f172a;
  margin: 28px 0 10px;
}

.legal-section p,
.legal-section li {
  font-size: 0.97rem;
  line-height: 2;
  color: var(--text, #1f2937);
}

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

.legal-section li { margin-bottom: 4px; }

.legal-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.93rem;
}

.legal-section th,
.legal-section td {
  border: 1px solid rgba(15, 23, 42, 0.10);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.legal-section th {
  background: #fbf6ec;
  font-weight: 700;
}

.legal-note {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-left: 3px solid var(--accent-dark, #d97706);
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--text-light, #4b5563);
  margin: 14px 0 22px;
}

/* ============================================================
   Thanks / 404 — utility pages with cream hero
   ============================================================ */

.thanks-section,
.nf-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 80px 24px;
  background: linear-gradient(180deg, #fdfaf3 0%, #f7efe1 100%);
}

.thanks-container,
.nf-container {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* ---- Thanks-only ---- */

.thanks-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: #0f172a;
  margin-bottom: 28px;
  box-shadow: 0 16px 40px rgba(234, 179, 8, 0.25);
}
.thanks-mark svg { width: 44px; height: 44px; }

.thanks-kicker,
.nf-kicker {
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}
.thanks-kicker { color: var(--accent-dark, #d97706); }
.nf-kicker { color: #6b7280; margin-bottom: 24px; }

.thanks-h1,
.nf-h1 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  line-height: 1.55;
  color: #0f172a;
  margin: 0 0 22px;
}
.thanks-h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.nf-h1     { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }

.thanks-lead,
.nf-lead {
  line-height: 2;
  color: var(--text, #1f2937);
}
.thanks-lead { font-size: 1.05rem; margin: 0 0 14px; }
.nf-lead     { font-size: 1.02rem; margin: 0 0 36px; }

.thanks-meta {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--text-light, #6b7280);
  margin: 0 0 36px;
}
.thanks-meta strong { color: #0f172a; font-weight: 700; }

.thanks-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 28px;
  margin: 0 0 40px;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.04);
  text-align: left;
}
.thanks-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: #0f172a;
  margin: 0 0 12px;
}

.thanks-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.thanks-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: baseline;
}
.thanks-step-num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-dark, #d97706);
  line-height: 1;
}
.thanks-step p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text, #1f2937);
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.thanks-actions .btn { padding: 14px 24px; }

.thanks-explore {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}
.thanks-explore-kicker {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-dark, #d97706);
  font-weight: 700;
  margin-bottom: 18px;
  display: block;
}
.thanks-explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: left;
}
.thanks-explore-link {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 16px 18px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text, #1f2937);
  transition: transform 0.18s, border-color 0.18s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.thanks-explore-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent, #facc15);
}
.thanks-explore-link strong {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  color: #0f172a;
}
.thanks-explore-link span {
  font-size: 0.78rem;
  color: var(--text-light, #6b7280);
}

@media (max-width: 640px) {
  .thanks-explore-grid { grid-template-columns: 1fr; }
  .thanks-card { padding: 22px 20px; }
}

/* ---- 404-only ---- */

.nf-code {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(5rem, 14vw, 9rem);
  line-height: 1;
  color: var(--accent-dark, #d97706);
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.nf-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 32px;
}

.nf-cta-primary,
.nf-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.nf-cta-primary {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: #0f172a;
  box-shadow: 0 10px 28px rgba(234, 179, 8, 0.28);
}
.nf-cta-secondary {
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.16);
}
.nf-cta-primary:hover,
.nf-cta-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.nf-suggest {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 24px 28px;
  text-align: left;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.04);
}
.nf-suggest h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: #0f172a;
  margin: 0 0 14px;
}
.nf-suggest ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 24px;
}
.nf-suggest li a {
  display: block;
  padding: 8px 0;
  color: #1f2937;
  text-decoration: none;
  border-bottom: 1px dotted rgba(15, 23, 42, 0.12);
  transition: color .15s;
}
.nf-suggest li a:hover { color: var(--accent-dark, #d97706); }
