* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: linear-gradient(180deg, #b890d8 0%, #a880c8 100%);
  color: #4a355c;
  font-family:
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
}

a {
  color: inherit;
}

.page {
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page > * {
  width: 100%;
  max-width: 500px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 50px;
  padding: 6px 14px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.92) 0%, rgb(249 241 255 / 0.86) 100%);
  backdrop-filter: blur(10px);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.65) inset,
    0 6px 18px rgb(94 53 177 / 0.08);
}

.page-header__brand {
  display: inline-flex;
  align-items: center;
  width: 100px;
  max-width: 100%;
  text-decoration: none;
}

.page-header__brand img {
  display: block;
  width: 100%;
  height: auto;
}

.legal-main {
  padding-bottom: 40px;
}

.legal-main--privacy {
  background: linear-gradient(180deg, #efe0ff 0%, #f7f0ff 100%);
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 20px 24px;
  background:
    radial-gradient(circle at 14% 18%, rgb(255 255 255 / 0.65) 0, rgb(255 255 255 / 0) 22%),
    radial-gradient(circle at 86% 16%, rgb(255 221 248 / 0.8) 0, rgb(255 221 248 / 0) 18%),
    linear-gradient(180deg, #efe0ff 0%, #f7f0ff 100%);
}

.legal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 40%, rgb(255 199 92 / 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 77% 28%, rgb(255 199 92 / 0.8) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 76%, rgb(255 255 255 / 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 12% 74%, rgb(255 255 255 / 0.9) 0 2px, transparent 3px);
  pointer-events: none;
}

.legal-hero--plain {
  background: transparent;
  padding: 30px 20px 12px;
  text-align: center;
}

.legal-hero--plain::after {
  display: none;
}

.legal-hero__panel {
  position: relative;
  z-index: 1;
  padding: 24px 18px;
  border: 1px solid rgb(236 205 255 / 0.95);
  border-radius: 26px;
  background: rgb(255 255 255 / 0.9);
  box-shadow:
    0 12px 28px rgb(113 71 152 / 0.12),
    inset 0 1px 0 rgb(255 255 255 / 0.9);
  text-align: center;
}

.legal-hero--plain .legal-hero__eyebrow,
.legal-hero--plain .legal-hero__title,
.legal-hero--plain .legal-hero__lead {
  position: relative;
  z-index: 1;
}

.legal-hero__eyebrow {
  margin: 0 0 8px;
  color: #7d57b8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.legal-hero__title {
  margin: 0;
  color: #5b2a8a;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 800;
  line-height: 1.25;
}

.legal-hero__lead {
  margin: 12px 0 0;
  color: #5d4a6a;
  font-size: 14px;
  line-height: 1.8;
}

.legal-content {
  padding: 18px 14px 0;
}

.legal-content--plain {
  padding-top: 30px;
}

.legal-card {
  padding: 18px 16px;
  border: 1px solid rgb(229 212 244 / 0.95);
  border-radius: 22px;
  background: rgb(255 255 255 / 0.94);
  box-shadow:
    0 8px 22px rgb(113 71 152 / 0.1),
    inset 0 1px 0 rgb(255 255 255 / 0.92);
}

.legal-card + .legal-card {
  margin-top: 14px;
}

.legal-plain {
  padding-bottom: 20px;
}

.legal-plain + .legal-plain {
  margin-top: 22px;
}

.legal-heading {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px dotted #d4a72c;
  color: #5b2a8a;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
}

.legal-text,
.legal-list li {
  margin: 0;
  color: #4f405c;
  font-size: 14px;
  line-height: 1.9;
}

.legal-list {
  margin: 0;
  padding-left: 1.2em;
}

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

.legal-note {
  margin-top: 18px;
  color: #7a687f;
  font-size: 12px;
  line-height: 1.8;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2px;
}

.legal-table th,
.legal-table td {
  padding: 12px 0;
  border-bottom: 1px solid rgb(230 216 241);
  vertical-align: top;
  text-align: left;
  font-size: 14px;
  line-height: 1.8;
}

.legal-table th {
  width: 34%;
  padding-right: 12px;
  color: #5b2a8a;
  font-weight: 700;
}

.legal-table td {
  color: #4f405c;
}

.legal-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  margin: 20px auto 0;
  padding: 0 22px;
  border: 2px solid #ffd66d;
  border-radius: 999px;
  background: linear-gradient(135deg, #7a45ca 0%, #5e35b1 100%);
  color: #fff;
  font-weight: 700;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  text-decoration: none;
  box-shadow:
    0 10px 18px rgb(38 20 59 / 0.18),
    inset 0 1px 0 rgb(255 255 255 / 0.35);
}

.page-footer {
  width: 100%;
}

.page-footer__image {
  display: block;
  width: 100%;
  height: auto;
}

.site-meta {
  position: relative;
  width: 100%;
  margin-top: -72px;
  padding: 0 20px 12px;
  color: #fff7ff;
  text-align: center;
}

.site-meta__links {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.site-meta__link {
  color: #fff7ff;
  text-decoration: none;
  font-size: clamp(13px, 3.2vw, 16px);
  font-weight: 700;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgb(67 28 96 / 0.28);
}

.site-meta__link:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-meta__copy {
  position: relative;
  margin: 0;
  font-size: clamp(11px, 2.8vw, 13px);
  letter-spacing: 0.05em;
  color: rgb(255 247 255 / 0.88);
}

@media (max-width: 480px) {
  .legal-hero {
    padding: 24px 14px 20px;
  }

  .legal-hero--plain {
    padding: 24px 14px 6px;
  }

  .legal-hero__panel {
    padding: 22px 14px;
  }

  .legal-content {
    padding: 16px 10px 0;
  }

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

  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
    padding: 8px 0;
  }

  .legal-table th {
    border-bottom: none;
    padding-bottom: 0;
  }

  .legal-table td {
    padding-top: 0;
  }
}
