:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #121212;
  --surface-2: #191919;
  --paper: #f2efe9;
  --paper-ink: #111;
  --ink: #f4f1eb;
  --muted: #aaa69f;
  --faint: #8d8982;
  --footer-focus: #6c2e98;
  --line: rgba(255, 255, 255, .14);
  --line-strong: rgba(255, 255, 255, .24);
  --accent: #ff8068;
  --accent-soft: #ff8068;
  --max: 1180px;
  --measure: 760px;
  --ease: cubic-bezier(.19, 1, .22, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: .22em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #b8afff;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--paper);
  color: var(--paper-ink);
  font-size: 12px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-inline: 28px;
}


/* the door island is fixed at the top of the viewport — reserve its band so
   the first heading never starts underneath it */
.legal-main {
  padding-top: 64px;
}



/* No English tag beside the logo either. "LEGAL / BILLING" next to the
   wordmark named the page a second time in a language the page is not
   written in — the heading below already says it, in Japanese. */




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

.legal-hero {
  padding-block: clamp(68px, 10vw, 132px) clamp(52px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}

/* No English label above a heading. A tiny uppercase line that only restates
   the title in another language is ornament — nobody reads it, and it dates
   the page. The heading carries the page on its own. */

.legal-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(42px, 7vw, 92px);
  line-height: .96;
  letter-spacing: -.065em;
}

.legal-hero .lede {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 28px 0 0;
  color: var(--faint);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
}

.content-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, var(--measure));
  justify-content: space-between;
  gap: clamp(42px, 8vw, 110px);
  padding-top: 56px;
}

.toc {
  position: sticky;
  top: 96px;
  align-self: start;
}

.toc b {
  display: block;
  margin-bottom: 14px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: .18em;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
}

.legal-article {
  min-width: 0;
}

.legal-article section {
  scroll-margin-top: 98px;
  padding-block: 8px 42px;
  border-bottom: 1px solid var(--line);
}

.legal-article section + section {
  padding-top: 42px;
}

.legal-article section:last-child {
  border-bottom: 0;
}

.legal-article h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -.035em;
}

.legal-article h3 {
  margin: 28px 0 10px;
  font-size: 17px;
  line-height: 1.5;
}

.legal-article p,
.legal-article ul,
.legal-article ol {
  margin-block: 0 18px;
  color: #cbc7c0;
}

.legal-article li + li {
  margin-top: 7px;
}

.legal-article code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .88em;
  overflow-wrap: anywhere;
}

.legal-article pre {
  margin: 24px 0;
  overflow-x: auto;
  padding: 16px 18px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  color: #e2ded7;
  line-height: 1.65;
}

.legal-article pre code {
  white-space: pre;
}

/* A filled pastel block carries black type. Light grey on orange was both
   hard to read and the look the brand rules rule out. */
.notice,
.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border: 0;
  border-radius: 14px;
  background: var(--accent-soft);
  color: #111;
}

.notice strong,
.callout strong {
  color: #111;
}

.quiet-callout {
  background: rgba(255, 255, 255, .025);
  color: #cbc7c0;
}

.quiet-callout strong {
  color: var(--ink);
}

.disclosure-list {
  display: grid;
  grid-template-columns: minmax(170px, .35fr) minmax(0, 1fr);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.disclosure-list dt,
.disclosure-list dd {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.disclosure-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.disclosure-list dd {
  border-left: 1px solid var(--line);
  color: #d9d5ce;
}

.disclosure-list dt:last-of-type,
.disclosure-list dd:last-of-type {
  border-bottom: 0;
}

.plan-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.plan-card,
.contact-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(24px, 4vw, 38px);
  border: 0;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
}

/* The recommended plan is raised, not outlined. A colored edge on a
   container is out — pastel is a fill, never a line around content. */
.plan-card.is-featured {
  background: #171717;
  box-shadow: 0 24px 60px -38px rgba(0, 0, 0, .84);
}

/* the same rule applies inside cards — see the note above .legal-hero h1 */

.plan-card h2,
.contact-card h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -.045em;
}
.plan-alias {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .05em;
}

.price {
  margin: 22px 0;
  font-variant-numeric: tabular-nums;
}

.price strong {
  display: block;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -.055em;
}

.price span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.plan-card ul {
  margin: 0 0 28px;
  padding-left: 1.2em;
  color: #cbc7c0;
}

.plan-card .card-action,
.contact-card .card-action {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

.plan-card .card-action:hover,
.contact-card .card-action:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper-ink);
}

.comparison {
  width: 100%;
  margin-top: 34px;
  border-collapse: collapse;
  border: 1px solid var(--line);
}

.comparison th,
.comparison td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison th {
  color: var(--muted);
  font-size: 11px;
}
.comparison th small {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
}

.comparison td {
  color: #d3cfc8;
}

.comparison tr:last-child th,
.comparison tr:last-child td {
  border-bottom: 0;
}

.mail-address {
  display: inline-block;
  margin: 18px 0 28px;
  color: var(--ink);
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 850;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}

.legal-footer {
  border-top: 2px solid var(--paper);
  background: var(--paper);
  color: rgba(17, 17, 17, .66);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(180px, .45fr) minmax(0, 1fr);
  gap: 32px;
  padding-block: 42px 48px;
}

.footer-brand {
  color: var(--paper-ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.footer-copy {
  margin: 8px 0 0;
  font-size: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 8px 18px;
}

.footer-links a {
  color: var(--paper-ink);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}

.footer-links a:hover {
  color: #c8321d;
}

.legal-footer a:focus-visible {
  outline-color: var(--footer-focus);
}

@media (max-width: 800px) {
  .shell {
    padding-inline: 18px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
  }

  .toc b {
    grid-column: 1 / -1;
  }

  .plan-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .disclosure-list {
    display: block;
  }

  .disclosure-list dt {
    padding-bottom: 5px;
    border-bottom: 0;
  }

  .disclosure-list dd {
    padding-top: 5px;
    border-left: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .legal-hero h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .toc {
    grid-template-columns: 1fr;
  }

  .comparison {
    font-size: 13px;
  }

  .comparison th,
  .comparison td {
    padding: 12px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #fff;
    color: #111;
  }

  .door-header,
  .header-auth-slot,
  .toc,
  .legal-footer {
    display: none;
  }

  .legal-hero {
    padding-block: 20px;
  }

  .content-grid {
    display: block;
  }

  .legal-article p,
  .legal-article ul,
  .legal-article ol,
  .disclosure-list dd {
    color: #222;
  }
}
