.legal-page {
  background: #f7f4ed;
  color: #2f2a24;
  line-height: 1.9;
}

.legal-inner {
  width: calc(100% - 48px);
  max-width: 960px;
  margin-inline: auto;
}

.legal-header {
  padding: 24px 0;
  border-bottom: 1px solid #d8cfbe;
  background: rgba(255, 255, 255, 0.72);
}

.legal-back,
.legal-bottom-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  color: #7d1d1d;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.legal-back:focus-visible,
.legal-bottom-nav a:focus-visible,
.legal-row a:focus-visible {
  outline: 3px solid #bfa25f;
  outline-offset: 4px;
}

.legal-main {
  padding: 72px 0 88px;
}

.legal-title {
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 3px solid #bfa25f;
}

.legal-title__label {
  margin-bottom: 8px;
  color: #9c1919;
  font-family: Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.legal-title h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.legal-section + .legal-section {
  margin-top: 56px;
}

.legal-section h2 {
  margin-bottom: 18px;
  padding-left: 16px;
  border-left: 5px solid #9c1919;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.5;
}

.legal-list {
  overflow: hidden;
  border: 1px solid #d8cfbe;
  border-radius: 4px;
  background: #fff;
}

.legal-row {
  display: grid;
  grid-template-columns: 230px 1fr;
}

.legal-row + .legal-row {
  border-top: 1px solid #e3ddd2;
}

.legal-row dt,
.legal-row dd {
  padding: 20px 24px;
}

.legal-row dt {
  background: #eee8dc;
  font-weight: 700;
}

.legal-row dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.legal-row dd p + p {
  margin-top: 1em;
}

.legal-row a {
  color: #7d1d1d;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.legal-bottom-nav {
  margin-top: 48px;
  text-align: center;
}

.legal-footer {
  padding: 28px 0;
  color: #fff;
  background: #4a4035;
  text-align: center;
}

.legal-footer small {
  font-size: 1.2rem;
}

.site-legal-link {
  padding: 22px;
  color: #fff;
  background: #4a4035;
  text-align: center;
}

.site-legal-link a {
  color: #fff;
  font-size: 1.4rem;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

@media (hover: hover) {
  .legal-back:hover,
  .legal-bottom-nav a:hover,
  .legal-row a:hover,
  .site-legal-link a:hover {
    text-decoration-thickness: 2px;
  }
}

@media screen and (max-width: 700px) {
  .legal-inner {
    width: calc(100% - 32px);
  }

  .legal-header {
    padding: 18px 0;
  }

  .legal-main {
    padding: 48px 0 64px;
  }

  .legal-title {
    margin-bottom: 40px;
  }

  .legal-title h1 {
    font-size: 2.6rem;
  }

  .legal-section + .legal-section {
    margin-top: 44px;
  }

  .legal-section h2 {
    font-size: 1.9rem;
  }

  .legal-row {
    display: block;
  }

  .legal-row dt,
  .legal-row dd {
    padding: 14px 16px;
  }

  .legal-row dt {
    border-bottom: 1px solid #e3ddd2;
  }

  .legal-row dd {
    font-size: 1.5rem;
  }
}

@media print {
  .legal-page {
    background: #fff;
  }

  .legal-header,
  .legal-bottom-nav,
  .legal-footer {
    display: none;
  }

  .legal-main {
    padding: 0;
  }

  .legal-row {
    break-inside: avoid;
  }
}
