/* Legal pages: extends the existing seminar LP design in styles.css */
body.legal-page {
  color: var(--color-text-plum);
  background: url("../assets/images/menu_bg.webp") center / cover no-repeat fixed;
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Yu Gothic Medium", "Noto Sans JP", Meiryo, sans-serif;
}

.legal-page .layout-shell__content {
  min-height: 100vh;
}

.legal-main {
  min-height: 100vh;
  padding: 56px 28px 64px;
  background: #fff;
  font-size: 12px;
  line-height: 2;
}

.legal-kicker {
  margin: 0 0 8px;
  color: var(--color-text-mauve);
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.legal-title {
  margin: 0 0 42px;
  color: var(--color-text-plum);
  font-family: "Zen Antique", "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-align: center;
}

.legal-lead {
  margin: 0 0 40px;
}

.legal-section {
  margin-top: 40px;
}

.legal-section h2 {
  margin: 0 0 18px;
  padding: 0 0 9px;
  border-bottom: 1px solid rgba(99, 83, 105, 0.22);
  font-family: "Zen Antique", "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.legal-section p {
  margin: 0 0 14px;
}

.legal-section ul,
.legal-section ol {
  margin: 12px 0 16px;
  padding-left: 1.45em;
}

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

/* Justify continuous prose without stretching headings, labels or short controls. */
.legal-lead,
.legal-section p,
.legal-section li {
  text-align: justify;
  text-justify: inter-ideograph;
}

.legal-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 11px;
  line-height: 1.9;
}

.legal-section .legal-table {
  margin-top: 18px;
}

.legal-table th,
.legal-table td {
  padding: 12px 11px;
  border: 1px solid rgba(99, 83, 105, 0.24);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}

.legal-table th {
  width: 34%;
  background: var(--color-bg-blush);
  font-weight: 500;
}

.legal-table td {
  text-align: justify;
  text-justify: inter-ideograph;
}

.legal-table td ul {
  margin: 0 0 10px;
  padding-left: 1.35em;
}

.legal-table td p {
  margin: 0;
}

.legal-table small {
  font-size: 10px;
  line-height: 1.8;
}

.legal-contact {
  padding: 16px;
  border: 1px solid rgba(99, 83, 105, 0.24);
  background: var(--color-bg-blush);
}

.legal-contact p:last-child {
  margin-bottom: 0;
}

.legal-page .legal-main a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(99, 83, 105, 0.45);
  text-underline-offset: 0.2em;
}

.legal-page .legal-main a:hover,
.legal-page .legal-main a:focus-visible {
  text-decoration-color: currentColor;
}

.legal-date {
  margin: 42px 0 0;
  font-size: 10px;
  text-align: right;
}

.legal-back {
  margin: 44px 0 0;
  text-align: center;
}

.legal-back a {
  display: inline-flex;
  min-width: 210px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--color-text-plum);
  border-radius: 999px;
  text-decoration: none !important;
  transition: color 0.25s ease, background 0.25s ease;
}

.legal-back a:hover,
.legal-back a:focus-visible {
  color: #fff;
  background: var(--color-text-plum);
}

.legal-copyright {
  margin: 46px 0 0;
  color: var(--color-text-mauve);
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
}

.sticky-menu__item--legal a {
  font-size: 13px;
  line-height: 1.55;
  white-space: normal;
}

.legal-page .sticky-menu__item a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.seminar-price-note {
  width: 82%;
  margin: 24px auto 0;
  color: var(--color-text-plum);
  font-size: 11px;
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-ideograph;
}

@media (max-width: 980px) {
  .legal-main {
    padding-top: 50px;
  }

  .legal-page .sticky-menu__list {
    gap: 15px;
  }
}

@media (max-width: 520px) {
  .legal-main {
    padding: 40px 20px 54px;
    font-size: 12px;
  }

  .legal-title {
    margin-bottom: 34px;
    font-size: 22px;
    letter-spacing: 0.08em;
  }

  .legal-section {
    margin-top: 34px;
  }

  .legal-section h2 {
    font-size: 16px;
  }

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

  .legal-table tr + tr {
    margin-top: -1px;
  }

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

  .legal-table td {
    padding-top: 8px;
  }
}

@media print {
  .mobile-header,
  .layout-shell__panel,
  .mobile-menu-backdrop,
  .legal-back,
  .legal-copyright {
    display: none !important;
  }

  body.legal-page,
  .legal-page .layout-shell__content,
  .legal-main {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    background: #fff;
  }
}
