:root {
  color: #111515;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
}

body {
  margin: 0;
  background: #fff;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

header {
  border-bottom: 2px solid #ef2435;
  background: #050808;
  color: #fff;
}

.legal-header-inner {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

header a {
  color: inherit;
  text-decoration: none;
}

.legal-brand-link {
  display: inline-flex;
  align-items: center;
}

.legal-back {
  min-width: 78px;
  min-height: 44px;
  padding: 0 12px 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.legal-back:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.legal-back:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.legal-back-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.brand::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 5px;
  border-radius: 50%;
  background: #ef2435;
}

main {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 48px 24px 88px;
  background: #fff;
}

h1 {
  margin: 0;
  padding-bottom: 22px;
  border-bottom: 1px solid #cfd3d1;
  color: #080b0b;
  font-size: clamp(36px, 9.6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

h2 {
  margin: 46px 0 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #d7dad8;
  color: #0a0d0d;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

h3 {
  margin: 30px 0 0;
  color: #151919;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.55;
}

p,
ul,
ol,
dl {
  margin: 18px 0 0;
}

main > .updated + p {
  margin-top: 40px;
}

ul,
ol {
  padding-left: 1.65em;
}

li + li {
  margin-top: 11px;
}

a {
  color: #075e3b;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.updated {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  justify-content: space-between;
  margin: 13px 0 0;
  color: #46504d;
  font-size: 14px;
  line-height: 1.6;
}

.updated span:last-child {
  margin-left: auto;
  text-align: right;
}

.note {
  color: #4e5955;
  font-size: 14px;
}

.document-type {
  display: none;
}

.legal-details {
  margin-top: 18px;
  border-top: 1px solid #bfc5c2;
  border-bottom: 1px solid #bfc5c2;
}

.legal-details div {
  display: grid;
  grid-template-columns: minmax(122px, 0.32fr) minmax(0, 1fr);
  border-bottom: 1px solid #dfe2e0;
}

.legal-details div:last-child {
  border-bottom: 0;
}

.legal-details dt,
.legal-details dd {
  margin: 0;
  padding: 12px 14px;
}

.legal-details dt {
  background: #f4f5f4;
  font-weight: 750;
}

.legal-details dd {
  overflow-wrap: anywhere;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border-top: 1px solid #bfc5c2;
  border-bottom: 1px solid #bfc5c2;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 12px;
  border-right: 1px solid #dfe2e0;
  border-bottom: 1px solid #dfe2e0;
  text-align: left;
  vertical-align: top;
}

th:last-child,
td:last-child {
  border-right: 0;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  background: #f4f5f4;
}

.action,
.secondary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 0 22px;
  border-radius: 4px;
  font-weight: 750;
  text-decoration: none;
}

.action {
  border: 1px solid #071312;
  background: #071312;
  color: #fff;
}

.secondary-action {
  border: 1px solid #aeb7b3;
  background: #fff;
  color: #153f31;
}

.support-contact-card {
  display: grid;
  gap: 5px;
  margin-top: 24px;
  padding: 18px 0;
  border-top: 1px solid #cfd4d1;
  border-bottom: 1px solid #cfd4d1;
}

.support-contact-card strong {
  font-size: 17px;
}

.support-contact-card a {
  width: fit-content;
  color: #075e3b;
  font-weight: 800;
}

.support-contact-card small {
  color: #4e5955;
  line-height: 1.6;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid #cfd4d1;
}

.links a {
  color: #075e3b;
}

@media (max-width: 520px) {
  body {
    font-size: 12.5px;
    line-height: 1.75;
  }

  .legal-header-inner {
    padding-top: calc(14px + env(safe-area-inset-top));
    padding-right: 20px;
    padding-bottom: 14px;
    padding-left: 20px;
  }

  .brand {
    font-size: 20px;
  }

  main {
    padding: 28px 23px 72px;
  }

  h1 {
    padding-bottom: 12px;
    font-size: 32px;
  }

  h1.long-title {
    font-size: 28px;
  }

  h2 {
    margin-top: 32px;
    padding-bottom: 8px;
    font-size: 19px;
  }

  h3 {
    margin-top: 26px;
    font-size: 16px;
  }

  p,
  ul,
  ol,
  dl {
    margin-top: 14px;
  }

  li + li {
    margin-top: 8px;
  }

  .updated {
    margin-top: 10px;
    font-size: 12px;
  }

  main > .updated + p {
    margin-top: 24px;
  }

  .legal-details div {
    grid-template-columns: 1fr;
  }

  .legal-details dt {
    padding-bottom: 4px;
  }

  .legal-details dd {
    padding-top: 4px;
  }
}

@media (max-width: 340px) {
  main {
    padding-right: 16px;
    padding-left: 16px;
  }

  h1 {
    font-size: 26px;
  }

  h1.long-title {
    font-size: 22px;
  }

  .updated span:last-child {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }
}

.legal-table-scroll { overflow-x: auto; } .legal-table-scroll table { border-collapse: collapse; width: 100%; } .legal-table-scroll td { border: 1px solid #dce3e5; padding: 12px; vertical-align: top; } .legal-table-scroll tr:first-child { font-weight: 700; }
/* Legal pages: centered wordmark and a compact left-side back control. */
header { border-bottom: 1px solid #20323b; }
.legal-header-inner { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; }
.legal-brand-link { grid-column: 2; grid-row: 1; justify-self: center; }
.brand::after { background: #62be46; }
.legal-back { grid-column: 1; grid-row: 1; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; }
.legal-back-icon { width: 24px; height: 24px; }
.legal-back span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Legal typography review: preserve the full policy text. */
body { font-size: 16px; line-height: 1.85; }
main { width: min(720px, 100%); padding: 28px 20px 48px; overflow-wrap: break-word; line-break: strict; }
h1, h1.long-title { font-size: 24px; font-weight: 700; letter-spacing: 0; line-height: 1.5; padding-bottom: 14px; overflow-wrap: normal; }
h2 { font-size: 18px; font-weight: 650; line-height: 1.65; letter-spacing: 0; margin-top: 28px; padding-bottom: 8px; }
h3 { font-size: 16px; font-weight: 600; line-height: 1.65; margin-top: 22px; }
p, ul, ol, dl { margin-top: 14px; }
li + li { margin-top: 10px; }
.updated { display: grid; justify-content: start; gap: 2px; font-size: 12px; line-height: 1.7; margin-top: 10px; }
.updated span:last-child { margin-left: 0; width: auto; text-align: left; }
.note { font-size: 14px; line-height: 1.75; }
main > .updated + p { margin-top: 18px; }
.links { margin-top: 32px; font-size: 14px; gap: 12px 16px; }
@media (min-width: 720px) { main { padding-top: 36px; } h1, h1.long-title { font-size: 28px; } }

/* Keep the wordmark stable when opening a document from the app. */
.legal-header-inner .brand { font-family: Inter, "Noto Sans JP", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; font-size: 22.75px; font-weight: 725; line-height: 22.75px; letter-spacing: -0.04em; }
.legal-header-inner .brand::after { width: 6px; height: 6px; background: #59c94f; }
