.legal-body {
  min-height: 100%; overflow: auto; background: var(--canvas); color: var(--ink);
}
.legal-topbar {
  position: sticky; z-index: 10; top: 0; display: flex; height: 68px; align-items: center;
  justify-content: space-between; padding: 0 clamp(24px, 2vw, 36px);
  border-bottom: 1px solid var(--line); background: var(--canvas);
}
.legal-brand { display: flex; align-items: center; color: var(--ink); text-decoration: none; }
.legal-logo { width: 118px; height: auto; }
.legal-return {
  min-height: 38px; padding: 0 14px; border-radius: 11px; color: var(--ink-soft);
  font-size: 12px; font-weight: 650; line-height: 38px; text-decoration: none;
}
.legal-return:hover { background: var(--surface); color: var(--ink); }
.legal-layout {
  display: grid; width: min(1080px, calc(100% - 48px)); grid-template-columns: 210px minmax(0, 760px);
  gap: clamp(56px, 8vw, 104px); margin: 0 auto; padding: 64px 0 96px;
}
.legal-index { position: sticky; top: 112px; align-self: start; }
.legal-index > p {
  margin-bottom: 18px; color: var(--ink-faint); font-size: 10px; font-weight: 700;
}
.legal-index nav { display: grid; gap: 3px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal-index nav a {
  min-height: 38px; padding: 0 12px; border-radius: 10px; color: var(--ink-soft);
  font-size: 13px; font-weight: 600; line-height: 38px; text-decoration: none;
}
.legal-index nav a:hover { background: var(--surface); color: var(--ink); }
.legal-index nav a.is-current { background: var(--black); color: var(--surface); }
.legal-index small { display: block; margin-top: 18px; color: var(--ink-faint); font-size: 10px; }
.legal-document { min-width: 0; }
.legal-heading { padding-bottom: 42px; border-bottom: 1px solid var(--line-strong); }
.legal-heading > p { margin-bottom: 15px; color: var(--ink-faint); font-size: 11px; font-weight: 650; }
.legal-heading h1 {
  max-width: 680px; margin: 0 0 22px; font-size: clamp(32px, 5vw, 50px); font-weight: 720;
  line-height: 1.12; letter-spacing: -.026em; text-wrap: balance;
}
.legal-heading > div { max-width: 62ch; color: var(--ink-soft); font-size: 15px; line-height: 1.8; }
.legal-sections section {
  display: grid; grid-template-columns: 156px minmax(0, 1fr); gap: 34px;
  padding: 38px 0; border-bottom: 1px solid var(--line);
}
.legal-sections h2 { font-size: 14px; font-weight: 700; line-height: 1.6; }
.legal-sections section > div { display: grid; gap: 14px; }
.legal-sections p { color: var(--ink-soft); font-size: 14px; line-height: 1.85; }
.legal-footer {
  display: flex; min-height: 48px; align-items: center; justify-content: center; gap: 18px;
  padding: 12px 24px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 10px; font-weight: 600;
}
.legal-footer a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
.legal-footer a:hover { color: var(--ink); text-decoration: underline; }

.contact-form { display: grid; gap: 0; padding-top: 18px; }
.contact-row { padding: 24px 0; border-bottom: 1px solid var(--line); }
.contact-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-row label { display: grid; gap: 9px; }
.contact-row label > span { color: var(--ink-soft); font-size: 12px; font-weight: 650; }
.contact-row input, .contact-row select, .contact-row textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid transparent;
  border-radius: 11px; outline: none; background: var(--surface); color: var(--ink);
}
.contact-row textarea { min-height: 174px; resize: vertical; line-height: 1.7; }
.contact-row input:focus, .contact-row select:focus, .contact-row textarea:focus {
  border-color: var(--blue); box-shadow: var(--focus);
}
.contact-honeypot { position: absolute; left: -10000px; }
.contact-consent {
  display: flex; gap: 10px; align-items: flex-start; padding: 22px 0; color: var(--ink-soft);
  font-size: 12px; line-height: 1.6;
}
.contact-consent input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--black); }
.contact-consent a { color: var(--ink); text-underline-offset: 3px; }
.contact-actions { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 20px; }
.contact-actions p { color: var(--red); font-size: 12px; line-height: 1.5; }
.contact-actions button, .contact-after button {
  min-width: 108px; min-height: 44px; padding: 0 20px; border-radius: var(--pill);
  background: var(--black); color: var(--surface); font-weight: 650;
}
.contact-actions button:hover, .contact-after button:hover { background: var(--black-hover); }
.contact-actions button:disabled { opacity: .46; }
.contact-after { margin-top: 32px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.contact-after > span { color: var(--green); font-size: 11px; font-weight: 700; }
.contact-after h2 { margin: 10px 0 18px; font-size: 24px; }
.contact-after strong { display: block; font-size: 18px; letter-spacing: .04em; }
.contact-after p { margin: 10px 0 24px; color: var(--ink-soft); line-height: 1.7; }

@media (max-width: 760px) {
  .legal-topbar { height: 60px; padding: 0 16px; }
  .legal-layout { display: block; width: calc(100% - 32px); padding: 26px 0 68px; }
  .legal-index { position: static; margin-bottom: 38px; }
  .legal-index > p, .legal-index small { display: none; }
  .legal-index nav {
    display: flex; gap: 6px; padding-bottom: 0; overflow-x: auto; border-bottom: 0;
    scrollbar-width: none;
  }
  .legal-index nav::-webkit-scrollbar { display: none; }
  .legal-index nav a { flex: 0 0 auto; padding: 0 14px; background: var(--surface); }
  .legal-heading { padding-bottom: 30px; }
  .legal-heading h1 { font-size: 32px; }
  .legal-heading > div { font-size: 14px; }
  .legal-sections section { display: block; padding: 30px 0; }
  .legal-sections h2 { margin-bottom: 16px; font-size: 16px; }
  .contact-row-split { grid-template-columns: 1fr; }
  .contact-actions { align-items: flex-end; }
  .legal-footer { flex-wrap: wrap; gap: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .legal-return, .legal-index a, .legal-footer a { transition: none; }
}
