/* Legal documents share the LP shell; the source wording stays unchanged. */
.mirai-legal-page {
  color: #354b71;
  background: #fff;
}
.mirai-legal-page #main {
  padding-top: 146px;
}
.legal-hero {
  position: relative;
  padding: 28px 28px 60px;
  border-radius: 0 0 72px 72px;
  background: linear-gradient(145deg, #f1f3ef 0%, #f7f7f5 70%, #eef3ee 100%);
}
.legal-hero__inner,
.legal-content {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
}
.legal-breadcrumbs {
  color: #626f80;
  font-size: 12px;
  line-height: 1.7;
}
.legal-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.legal-breadcrumbs li + li::before {
  display: inline-block;
  margin-right: 12px;
  color: #839080;
  content: "/";
}
.legal-breadcrumbs a {
  color: #626f80;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-hero__heading {
  position: relative;
  margin-top: 38px;
  padding-right: 160px;
}
.legal-hero__english {
  color: #557f72;
  font-family: "Caveat", cursive, sans-serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
}
.legal-hero h1 {
  margin-top: 14px;
  color: #354b71;
  font-size: clamp(29px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: .035em;
  overflow-wrap: anywhere;
}
.legal-hero__leaf {
  position: absolute;
  right: 6px;
  bottom: -4px;
  width: 116px;
  height: 116px;
  transform: rotate(7deg);
}
.legal-content {
  padding: 48px 28px 0;
}
.legal-tabs ul {
  display: grid;
  grid-template-columns: 1.2fr 1fr .7fr;
  gap: 12px;
}
.legal-tabs li {
  min-width: 0;
}
.legal-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  height: 100%;
  padding: 13px 16px;
  border: 1px solid #dce3de;
  border-radius: 12px;
  color: #354b71;
  background: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.legal-tabs a[aria-current="page"] {
  border-color: #354b71;
  color: #fff;
  background: #354b71;
}
.legal-toc {
  margin-top: 38px;
  padding: 28px 34px 32px;
  border: 1px solid #e0e7e0;
  border-radius: 20px;
  background: #f7f8f5;
}
.legal-toc__eyebrow {
  color: #557f72;
  font-family: "Caveat", cursive, sans-serif;
  font-size: 24px;
  line-height: 1.2;
}
.legal-toc h2 {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
}
.legal-toc ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  margin-top: 18px;
}
.legal-toc li {
  min-width: 0;
}
.legal-toc a {
  display: block;
  position: relative;
  padding: 5px 0 5px 17px;
  color: #354b71;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  text-decoration: underline;
  text-decoration-color: #b8c9bf;
  text-underline-offset: 4px;
}
.legal-toc a::before {
  position: absolute;
  left: 0;
  top: 16px;
  width: 5px;
  height: 5px;
  border-right: 1px solid #557f72;
  border-bottom: 1px solid #557f72;
  transform: rotate(-45deg);
  content: "";
}
.legal-document {
  max-width: 880px;
  margin: 52px auto 0;
  color: #3d4c5e;
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  overflow-wrap: anywhere;
}
.legal-intro {
  margin-bottom: 42px;
}
.legal-document p + p {
  margin-top: 18px;
}
.legal-section + .legal-section {
  margin-top: 40px;
}
.legal-section h2 {
  margin-bottom: 21px;
  padding: 0 0 15px 18px;
  border-bottom: 1px solid #dae3dc;
  border-left: 3px solid #86aa91;
  color: #354b71;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.7;
  scroll-margin-top: 116px;
}
.legal-document ol,
.legal-document ul {
  padding-left: 1.65em;
}
.legal-document ol { list-style: decimal; }
.legal-document ul { list-style: disc; }
.legal-document p + ol,
.legal-document p + ul {
  margin-top: 16px;
}
.legal-document li + li {
  margin-top: 10px;
}
.legal-document li > ul,
.legal-document li > ol {
  margin: 14px 0 18px;
  padding-left: 1.45em;
}
.legal-document li::marker {
  color: #557f72;
  font-weight: 500;
}
.legal-document a,
.legal-back a {
  color: #354b71;
  text-decoration: underline;
  text-decoration-color: #a0b5a8;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.legal-document strong {
  color: #354b71;
  font-weight: 700;
}
.legal-contact {
  margin-top: 23px;
  padding: 25px 30px;
  border-radius: 14px;
  background: #f7f8f5;
}
.legal-contact p + p {
  margin-top: 4px;
}
.legal-details {
  border-top: 1px solid #d8e1da;
}
.legal-details__row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  border-bottom: 1px solid #d8e1da;
}
.legal-details dt,
.legal-details dd {
  min-width: 0;
  padding: 27px 25px;
}
.legal-details dt {
  color: #354b71;
  background: #f7f8f5;
  font-weight: 700;
}
.legal-details dd {
  margin: 0;
}
.legal-details dd > strong {
  display: block;
}
.legal-details dd > strong:not(:first-child) {
  margin-top: 14px;
}
.legal-details dd > ul {
  margin-bottom: 14px;
}
.legal-back {
  margin: 48px auto 0;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
}
.legal-back a {
  display: inline-block;
  padding: 10px 14px;
}
.mirai-legal-page .l-footer {
  margin-top: 100px;
}
@media (hover: hover) {
  .legal-tabs a:not([aria-current="page"]):hover {
    border-color: #9bb7a6;
    background: #f0f5ef;
  }
  .legal-toc a:hover,
  .legal-document a:hover,
  .legal-back a:hover {
    text-decoration-color: currentColor;
  }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .mirai-legal-page #main { padding-top: 130px; }
}
@media (max-width: 767px) {
  .mirai-legal-page #main { padding-top: 80px; }
  .legal-hero {
    padding: 19px 22px 34px;
    border-radius: 0 0 36px 36px;
  }
  .legal-breadcrumbs { font-size: 11px; }
  .legal-breadcrumbs ol { gap: 5px 8px; }
  .legal-breadcrumbs li + li::before { margin-right: 8px; }
  .legal-hero__heading {
    margin-top: 27px;
    padding-right: 0;
  }
  .legal-hero__english {
    padding-right: 62px;
    font-size: 29px;
  }
  .legal-hero h1 {
    max-width: 100%;
    margin-top: 13px;
    font-size: 26px;
    line-height: 1.55;
    letter-spacing: .015em;
  }
  .legal-hero__leaf {
    top: -19px;
    right: 0;
    bottom: auto;
    width: 55px;
    height: 55px;
  }
  .legal-content { padding: 28px 20px 0; }
  .legal-tabs ul {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .legal-tabs a {
    min-height: 47px;
    padding: 10px 13px;
    border-radius: 9px;
    font-size: 14px;
  }
  .legal-toc {
    margin-top: 28px;
    padding: 23px 20px 25px;
    border-radius: 16px;
  }
  .legal-toc ul {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 14px;
  }
  .legal-toc a { font-size: 14px; }
  .legal-document {
    margin-top: 35px;
    font-size: 16px;
    line-height: 1.95;
  }
  .legal-intro { margin-bottom: 32px; }
  .legal-section + .legal-section { margin-top: 32px; }
  .legal-section h2 {
    margin-bottom: 18px;
    padding: 0 0 12px 13px;
    font-size: 19px;
    line-height: 1.65;
    scroll-margin-top: 90px;
  }
  .legal-contact {
    padding: 20px 17px;
    border-radius: 12px;
  }
  .legal-details__row { grid-template-columns: 1fr; }
  .legal-details dt { padding: 15px 17px; }
  .legal-details dd { padding: 19px 17px 24px; }
  .legal-back { margin-top: 34px; }
  .mirai-legal-page .l-footer { margin-top: 65px; }
}
@media print {
  .mirai-legal-page .l-header,
  .mirai-legal-page .l-mobile-nav,
  .mirai-legal-page .l-footer,
  .mirai-legal-page .c-gotop,
  .legal-tabs,
  .legal-toc,
  .legal-back { display: none; }
  .mirai-legal-page #main { padding-top: 0; }
  .legal-hero { padding: 20px 0; background: none; }
  .legal-hero__heading { margin-top: 20px; }
  .legal-hero__leaf { display: none; }
  .legal-content { max-width: none; padding: 0; }
  .legal-document { max-width: none; margin-top: 20px; color: #000; font-size: 11pt; }
  .legal-section h2 { break-after: avoid; }
  .legal-details__row { break-inside: avoid; }
}
