.legal-page-body {
  margin: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%, #f8fafc 100%);
  color: #0f172a;
  font-family: 'Noto Sans JP', sans-serif;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
}

.legal-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  text-decoration: none;
}

.legal-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2732c;
  flex-shrink: 0;
}

.legal-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.legal-brand-sub {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #64748b;
  text-transform: uppercase;
  font-family: 'DM Mono', monospace;
}

.legal-brand-main {
  font-size: 15px;
  font-weight: 700;
  font-family: 'Noto Serif JP', serif;
  color: #0f172a;
}

.legal-home-link {
  color: #e2732c;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(226, 115, 44, 0.35);
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.legal-home-link:hover {
  background: rgba(226, 115, 44, 0.08);
}

.legal-main {
  padding: 48px 24px 72px;
}

.legal-main-with-nav-offset {
  padding-top: 128px;
}

.legal-card {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
  padding: 36px 34px;
}

.legal-kicker {
  margin: 0;
  color: #e2732c;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-family: 'DM Mono', monospace;
}

.legal-title {
  margin: 10px 0 18px;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  color: #0f172a;
}

.legal-lead {
  margin: 0 0 28px;
  color: #475569;
  line-height: 1.9;
  font-size: 15px;
}

.legal-section {
  border-top: 1px solid #e2e8f0;
  padding-top: 22px;
  margin-top: 22px;
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-family: 'Noto Serif JP', serif;
  color: #0f172a;
}

.legal-section p,
.legal-section li {
  color: #334155;
  line-height: 1.95;
  font-size: 15px;
}

.legal-section ul {
  margin: 10px 0 0;
  padding-left: 1.2em;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}

.legal-table th,
.legal-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 14px;
  vertical-align: top;
  text-align: left;
  font-size: 14px;
  line-height: 1.8;
}

.legal-table th {
  width: 34%;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

.legal-table td {
  background: #ffffff;
  color: #334155;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-meta {
  margin-top: 26px;
  font-size: 12px;
  color: #64748b;
}

@media screen and (max-width: 782px) {
  .admin-bar .legal-header {
    top: 46px;
  }

  .legal-header-inner {
    padding: 12px 16px;
  }

  .legal-main {
    padding: 24px 12px 42px;
  }

  .legal-main-with-nav-offset {
    padding-top: 96px;
  }

  .legal-card {
    border-radius: 14px;
    padding: 22px 16px;
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table th,
  .legal-table td {
    border-bottom: none;
    padding: 10px 12px;
  }

  .legal-table th {
    border-top: 1px solid #e2e8f0;
  }

  .legal-table tr:first-child th {
    border-top: none;
  }
}

@media screen and (min-width: 783px) {
  .admin-bar .legal-header {
    top: 32px;
  }
}
