.legal-shell {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.legal-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 22px;
}

.legal-top .brand-mark {
  order: 0;
  text-decoration: none;
}

.legal-top .brand-name {
  color: var(--navy-900);
}

.legal-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
}

.legal-switch a {
  padding: 6px 14px;
  border-bottom: none;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.legal-switch a:hover {
  color: var(--navy-700);
}

.legal-switch a[aria-current="page"] {
  background: var(--navy-700);
  color: #fff;
}

.legal-card {
  padding: 40px 44px 44px;
}

.legal-card h1 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.2;
  margin: 4px 0 8px;
  color: var(--navy-900);
}

.legal-meta {
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.legal-old {
  margin: -8px 0 24px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--warning-line);
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 14px;
}

.legal-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-faint);
}

.legal-foot a {
  color: var(--navy-700);
}

.legal-doc {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.legal-doc > * + * {
  margin-top: 12px;
}

.legal-doc h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy-900);
  margin-top: 30px;
}

.legal-doc h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 22px;
}

.legal-doc > :first-child {
  margin-top: 0;
}

.legal-doc ul,
.legal-doc ol {
  padding-left: 22px;
}

.legal-doc li + li {
  margin-top: 6px;
}

.legal-doc li::marker {
  color: var(--brass-ink);
}

.legal-doc strong {
  font-weight: 600;
  color: var(--navy-900);
}

.legal-doc a {
  border-bottom: none;
  text-decoration: underline;
  color: var(--navy-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.accept-body {
  padding-bottom: 150px;
}

.accept-page {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 24px 0;
}

.accept-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.accept-top .brand-mark {
  order: 0;
}

.accept-top .brand-name {
  color: var(--navy-900);
}

.accept-logout {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: var(--surface);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
}

.accept-logout:hover {
  color: var(--danger);
  border-color: var(--danger-line);
}

.accept-head {
  max-width: 760px;
  margin: 0 auto 26px 260px;
}

.accept-head h1 {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.15;
  color: var(--navy-900);
  margin: 6px 0 10px;
}

.accept-intro {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 62ch;
}

.accept-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin-top: 22px;
}

.accept-steps[hidden] {
  display: none;
}

.accept-step + .accept-step::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--line-strong);
}

.accept-step button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
}

.accept-step button:disabled {
  cursor: default;
}

.accept-step-no {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  font-weight: 600;
}

.accept-step.is-current button {
  border-color: var(--navy-700);
  color: var(--navy-900);
}

.accept-step.is-current .accept-step-no {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
}

.accept-step.is-done .accept-step-no {
  background: var(--success-bg);
  border-color: var(--success-line);
  color: var(--success);
}

.accept-step button:not(:disabled):hover {
  border-color: var(--navy-600);
}

.accept-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: 30px;
  align-items: start;
  justify-content: start;
}

.accept-toc {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 190px);
  overflow-y: auto;
  padding: 4px 0;
}

.accept-toc[hidden] {
  display: none;
}

.accept-toc-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 10px 14px;
}

.accept-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--line);
}

.accept-toc a {
  display: block;
  border-bottom: none;
  margin-left: -1px;
  padding: 6px 12px 6px 13px;
  border-left: 2px solid transparent;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-soft);
  text-decoration: none;
}

.accept-toc a:hover {
  color: var(--navy-700);
}

.accept-toc a.on {
  border-left-color: var(--brass);
  color: var(--navy-900);
  font-weight: 600;
}

.accept-reader {
  padding: 36px 44px 44px;
}

.accept-reader-head {
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.accept-reader-head h2 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
  color: var(--navy-900);
}

.accept-reader-meta {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--ink-faint);
}

.accept-note {
  margin-bottom: 22px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--info-bg);
  border: 1px solid var(--info-line);
  color: var(--info);
  font-size: 14.5px;
}

.accept-note[hidden] {
  display: none;
}

.accept-text {
  font-size: 16.5px;
  line-height: 1.75;
  max-width: 68ch;
}

.accept-text h2 {
  font-size: 21px;
  margin-top: 36px;
  scroll-margin-top: 24px;
}

.accept-text > :first-child {
  margin-top: 0;
}

.accept-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(28, 37, 54, 0.07);
}

.accept-progress {
  height: 3px;
  background: var(--line);
}

.accept-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brass);
  transition: width 0.12s linear;
}

.accept-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
}

.accept-check {
  display: flex;
  flex: 1 1 360px;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
}

.accept-check input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex: 0 0 auto;
  accent-color: var(--navy-700);
  cursor: pointer;
}

.accept-error {
  flex: 1 1 100%;
  order: 3;
  margin: 0;
  font-size: 14px;
  color: var(--danger);
}

.accept-error[hidden] {
  display: none;
}

.accept-buttons {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.accept-buttons .btn {
  width: auto;
  min-width: 120px;
  min-height: 44px;
}

.accept-buttons .btn[hidden] {
  display: none;
}

@media (max-width: 1060px) {
  .accept-head {
    margin-left: 0;
  }

  .accept-layout {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  .accept-toc {
    display: none;
  }

  .accept-text {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .legal-shell {
    padding: 20px 16px 40px;
  }

  .legal-card {
    padding: 26px 20px 28px;
  }

  .legal-card h1 {
    font-size: 26px;
  }

  .accept-page {
    padding: 18px 16px 0;
  }

  .accept-head h1 {
    font-size: 27px;
  }

  .accept-steps {
    gap: 8px;
  }

  .accept-step + .accept-step::before {
    display: none;
  }

  .accept-step button {
    font-size: 13.5px;
  }

  .accept-reader {
    padding: 24px 20px 28px;
  }

  .accept-text {
    font-size: 16px;
  }

  .accept-bar-inner {
    padding: 12px 16px 14px;
  }

  .accept-check {
    font-size: 14px;
  }

  .accept-buttons {
    width: 100%;
  }

  .accept-buttons .btn {
    flex: 1;
    min-width: 0;
  }

  .accept-body {
    padding-bottom: 190px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .legal-top nav,
  .legal-foot {
    display: none;
  }

  .legal-card {
    border: none;
    box-shadow: none;
    padding: 0;
  }
}
