html, body.legal-body {
  height: auto;
  overflow: visible;
  background: var(--paper);
  color: var(--ink);
}

.legal-main {
  padding: calc(var(--header-height) + 48px) 0 96px;
  min-height: calc(100vh - 160px);
}

.legal-main .wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 20px;
}

.legal-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.legal-header .eyebrow {
  justify-content: flex-start;
  margin-bottom: 14px;
}

.legal-header h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.25;
  font-weight: 550;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.legal-date {
  font-size: 14px;
  color: var(--muted);
}

.legal-intro {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin: 20px 0;
}

.legal-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin: 28px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.legal-box h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.legal-box ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #444;
}

.legal-box li + li {
  margin-top: 10px;
}

.legal-placeholder {
  background: #fff8f2;
  border-left: 3px solid var(--orange);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.7;
  color: #664422;
}

.legal-placeholder strong {
  color: #c44d00;
}

.legal-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--ink);
}

.legal-section h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 20px 0 8px;
  color: var(--ink);
}

.legal-section p {
  font-size: 15px;
  line-height: 1.85;
  color: #333;
  margin: 14px 0;
}

.legal-section ul {
  margin: 14px 0;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

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

.legal-section strong {
  font-weight: 600;
  color: var(--ink);
}

.legal-section a,
.legal-box a,
.legal-intro a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--grey);
  transition: color 0.15s, text-decoration-color 0.15s;
}

.legal-section a:hover,
.legal-box a:hover,
.legal-intro a:hover {
  color: var(--orange);
  text-decoration-color: var(--orange);
}

.legal-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 40px 0;
  font-size: 14px;
}

.legal-footer .wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal-footer a {
  color: var(--paper);
  transition: color 0.2s;
}

.legal-footer a:hover {
  color: var(--orange);
}

.legal-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.legal-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  color: var(--grey);
  font-size: 13px;
}

@media (max-width: 700px) {
  .legal-main {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 60px;
  }
  .legal-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
