.aux-hero {
  min-height: clamp(440px, 62vh, 680px);
}

.aux-hero .detail-hero__content {
  padding-top: clamp(78px, 9vw, 132px);
  padding-bottom: clamp(78px, 9vw, 132px);
}

.aux-hero h1 {
  max-width: 15em;
}

.aux-hero h1 span {
  display: block;
  margin-top: 0.28em;
  font-family: var(--sans);
  font-size: 0.2em;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.16em;
  color: rgba(232, 225, 214, 0.58);
}

.aux-hero__mark {
  position: absolute;
  right: clamp(24px, 6vw, 96px);
  bottom: clamp(24px, 5vw, 72px);
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.2rem, 13vw, 12rem);
  font-weight: 400;
  line-height: 0.65;
  color: rgba(232, 225, 214, 0.025);
  pointer-events: none;
  user-select: none;
}

.legal-page {
  color: #2d251f;
  background: var(--paper);
}

.legal-page::before {
  position: absolute;
}

.legal-main {
  position: relative;
  padding: clamp(72px, 9vw, 128px) var(--page) clamp(92px, 12vw, 168px);
  background:
    linear-gradient(90deg, transparent calc(var(--page) - 1px), rgba(158, 53, 16, 0.28) var(--page), transparent calc(var(--page) + 1px)),
    linear-gradient(rgba(64, 48, 36, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 100%, 100% 36px, auto;
}

.legal-intro {
  max-width: 58em;
  margin: 0 0 clamp(54px, 7vw, 90px) clamp(42px, 7vw, 118px);
  font-family: var(--jp-serif);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 2.05;
  color: rgba(45, 37, 31, 0.74);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 1.58fr);
  gap: clamp(38px, 7vw, 112px);
  align-items: start;
  max-width: 1380px;
  margin: 0 auto;
}

.legal-toc {
  position: sticky;
  top: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.legal-toc__label {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--orange-deep);
}

.legal-toc ol {
  display: grid;
  gap: 3px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.legal-toc a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  font-size: 0.77rem;
  line-height: 1.55;
  color: rgba(45, 37, 31, 0.68);
  transition: color 200ms ease, transform 280ms var(--ease);
}

.legal-toc a::before {
  content: attr(data-num);
  font-family: var(--serif);
  color: var(--orange-deep);
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: #211a15;
  transform: translateX(5px);
}

.legal-content {
  min-width: 0;
  border-top: 1px solid var(--line-dark);
}

.policy-section,
.law-row {
  scroll-margin-top: 24px;
}

.policy-section {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1.58fr);
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(42px, 6vw, 74px) 0;
  border-bottom: 1px solid var(--line-dark);
}

.policy-head {
  display: grid;
  align-content: start;
  gap: 14px;
}

.policy-num {
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--orange-deep);
}

.policy-title {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.55;
}

.policy-body {
  font-size: 0.93rem;
  line-height: 2.05;
  color: rgba(45, 37, 31, 0.76);
}

.policy-body p {
  margin: 0;
}

.policy-body p + p,
.policy-body p + ul,
.policy-body p + ol,
.policy-body p + .policy-subhead,
.policy-body .policy-subhead + p {
  margin-top: 18px;
}

.policy-body ul,
.policy-body ol {
  padding-left: 1.35em;
  margin-bottom: 0;
}

.policy-body li + li {
  margin-top: 8px;
}

.policy-body a,
.legal-meta a,
.law-value a {
  color: var(--orange-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.policy-body code,
.law-value code {
  padding: 0.15em 0.38em;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.28);
}

.policy-subhead,
.law-value .subhead {
  display: block;
  font-family: var(--jp-serif);
  font-weight: 600;
  color: #2d251f;
}

.law-list {
  margin: 0;
}

.law-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.45fr) minmax(0, 1.55fr);
  gap: clamp(30px, 5vw, 82px);
  padding: clamp(34px, 4vw, 54px) 0;
  border-bottom: 1px solid var(--line-dark);
}

.law-term {
  margin: 0;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--orange-deep);
}

.law-term .ja {
  display: block;
  margin-top: 7px;
  font-family: var(--jp-serif);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: #2d251f;
}

.law-value {
  margin: 0;
  font-size: 0.93rem;
  line-height: 2;
  color: rgba(45, 37, 31, 0.78);
}

.law-value .muted {
  display: block;
  margin-top: 8px;
  color: rgba(45, 37, 31, 0.58);
}

.law-value .subhead + * {
  margin-top: 4px;
}

.law-value .subhead:not(:first-child) {
  margin-top: 18px;
}

.legal-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 82px);
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.legal-meta > div {
  min-height: 116px;
  padding: 22px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.legal-meta small,
.contact-ledger small {
  display: block;
  margin-bottom: 12px;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: rgba(45, 37, 31, 0.5);
}

.legal-meta span {
  font-family: var(--jp-serif);
  font-size: 0.86rem;
  line-height: 1.7;
}

.contact-main {
  position: relative;
  padding: clamp(74px, 10vw, 140px) var(--page);
  color: #2d251f;
  background:
    linear-gradient(90deg, transparent calc(var(--page) - 1px), rgba(158, 53, 16, 0.28) var(--page), transparent calc(var(--page) + 1px)),
    linear-gradient(rgba(64, 48, 36, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 100%, 100% 36px, auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(48px, 8vw, 132px);
  align-items: start;
  max-width: 1380px;
  margin: 0 auto;
}

.contact-intro {
  position: sticky;
  top: 28px;
}

.contact-intro__index {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--orange-deep);
}

.contact-intro h2 {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: clamp(1.85rem, 3.3vw, 3.7rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.contact-intro h2 em {
  font-style: normal;
  color: var(--orange-deep);
}

.contact-intro > p:not(.contact-intro__index) {
  margin: 28px 0 0;
  font-size: 0.9rem;
  line-height: 2;
  color: rgba(45, 37, 31, 0.7);
}

.contact-ledger {
  padding: 0;
  margin: 42px 0 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

.contact-ledger li {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line-dark);
}

.contact-ledger small {
  margin: 0;
}

.contact-ledger span {
  font-size: 0.82rem;
  line-height: 1.55;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange-deep);
  box-shadow: 0 0 0 4px rgba(158, 53, 16, 0.12);
}

.form-shell {
  color: #e8e1d6;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--ink-soft);
  background-size: 28px 28px;
  border: 1px solid rgba(45, 36, 29, 0.35);
  box-shadow: 18px 22px 0 rgba(79, 55, 38, 0.14);
}

.form-shell__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(20px, 3vw, 34px);
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  color: rgba(232, 225, 214, 0.52);
  border-bottom: 1px solid var(--line-light);
}

.secure-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.secure-mark::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 9px rgba(240, 100, 25, 0.8);
}

.step-indicator {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--line-light);
}

.step {
  display: grid;
  gap: 5px;
  padding: 19px 0 17px;
  color: rgba(232, 225, 214, 0.35);
  border-bottom: 2px solid transparent;
}

.step + .step {
  padding-left: 20px;
  border-left: 1px solid var(--line-light);
}

.step-num {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1;
}

.step-label {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.step.active,
.step.done {
  color: #e8e1d6;
}

.step.active {
  border-bottom-color: var(--orange);
}

.step.done .step-num {
  color: var(--orange);
}

.step-pane {
  display: none;
  padding: clamp(28px, 4vw, 52px);
}

.step-pane.is-active {
  display: block;
  animation: pane-in 420ms var(--ease) both;
}

@keyframes pane-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 24px;
}

.contact-form.step-pane {
  display: none;
}

.contact-form.step-pane.is-active {
  display: grid;
}

.form-group {
  min-width: 0;
}

.form-group--wide,
.agreements,
.form-actions {
  grid-column: 1 / -1;
}

.form-group > label:not(.checkbox-label) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--jp-serif);
  font-size: 0.82rem;
  color: rgba(232, 225, 214, 0.8);
}

.required-badge,
.optional-badge {
  font-family: var(--sans);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
}

.required-badge {
  color: #ffb12b;
}

.optional-badge {
  color: rgba(232, 225, 214, 0.38);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  color: #e8e1d6;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-light);
  border-radius: 0;
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.form-textarea {
  min-height: 162px;
  resize: vertical;
  line-height: 1.8;
}

.form-select {
  color-scheme: dark;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(232, 225, 214, 0.27);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(240, 100, 25, 0.12);
}

.form-group--error .form-input,
.form-group--error .form-select,
.form-group--error .form-textarea {
  border-color: #ff8057;
}

.form-error {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #ff9d7d;
}

.agreements {
  display: grid;
  gap: 12px;
  padding: 18px 0 4px;
  border-top: 1px solid var(--line-light);
}

.checkbox-label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(232, 225, 214, 0.68);
  cursor: pointer;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: var(--orange);
}

.checkbox-label a {
  color: #ffb12b;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 6px;
}

.form-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: 190px;
  min-height: 60px;
  padding: 14px 18px;
  color: #fff7ec;
  background: transparent;
  border: 1px solid rgba(232, 225, 214, 0.28);
  border-radius: 0;
  font: 500 0.72rem/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 320ms var(--ease);
}

.form-button--primary {
  color: #1c1510;
  background: var(--orange);
  border-color: var(--orange);
}

.form-button:hover,
.form-button:focus-visible {
  color: #1c1510;
  background: var(--paper-light);
  border-color: var(--paper-light);
  transform: translateY(-2px);
}

.form-button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.button-icon {
  font-size: 1rem;
}

.button-icon.is-spinning {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(28, 21, 16, 0.28);
  border-top-color: #1c1510;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

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

.confirm-note {
  margin: 0 0 18px;
  font-size: 0.74rem;
  line-height: 1.8;
  color: rgba(232, 225, 214, 0.58);
}

.confirm-list {
  margin: 0 0 30px;
  border-top: 1px solid var(--line-light);
}

.confirm-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line-light);
}

.confirm-label {
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--orange);
}

.confirm-value {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.confirm-value.empty {
  color: rgba(232, 225, 214, 0.32);
}

.form-result {
  display: grid;
  justify-items: start;
  min-height: 360px;
  align-content: center;
}

.result-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: 2rem;
  color: #18110c;
  background: var(--orange);
}

.result-mark--error {
  color: #fff7ec;
  background: #9c351f;
}

.result-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 400;
}

.result-desc {
  max-width: 38em;
  margin: 18px 0 30px;
  line-height: 1.9;
  color: rgba(232, 225, 214, 0.62);
}

.result-desc code {
  color: #ffb12b;
}

.honey {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 900px) {
  .legal-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc,
  .contact-intro {
    position: static;
  }

  .legal-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }

  .legal-intro {
    margin-left: 0;
  }

  .contact-intro {
    max-width: 680px;
  }

  .contact-ledger {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 1px solid var(--line-dark);
  }

  .contact-ledger li {
    grid-template-columns: 72px 1fr;
    padding: 17px;
    border-right: 1px solid var(--line-dark);
  }
}

@media (max-width: 640px) {
  .legal-main,
  .contact-main {
    background:
      linear-gradient(rgba(64, 48, 36, 0.045) 1px, transparent 1px),
      var(--paper);
    background-size: 100% 36px, auto;
  }

  .aux-hero__mark {
    display: none;
  }

  .legal-toc ol,
  .contact-ledger,
  .contact-form,
  .legal-meta {
    grid-template-columns: 1fr;
  }

  .policy-section,
  .law-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .policy-head {
    grid-template-columns: 54px 1fr;
    align-items: baseline;
  }

  .legal-meta > div {
    min-height: 0;
  }

  .form-shell {
    margin-right: calc(var(--page) * -0.35);
    margin-left: calc(var(--page) * -0.35);
    box-shadow: 9px 12px 0 rgba(79, 55, 38, 0.14);
  }

  .step + .step {
    padding-left: 12px;
  }

  .form-shell__head {
    align-items: flex-start;
    font-size: 0.52rem;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-button {
    width: 100%;
  }

  .confirm-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .step-pane.is-active {
    animation: none;
  }
}
