/* Shared styles for policy pages (privacy policy, terms). */
:root {
  --ink: #16223A;
  --muted: #45526B;
  --line: #C5CCD8;
  --dash: #B9C2D0;
  --sky-top: #7EC6EF;
  --sky-mid: #B4DEF6;
  --sky-low: #D6EEFA;
  --card-blue: #7CC6EE;
  --strap: #1556D6;
  --copy: #2F86D6;
  --paper: #F4FAFE;
  --todo: #FFE58A;
  --white: #FFFFFF;
  --font-jp: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-round: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  --font-en: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sky-low);
  color: var(--ink);
  font-family: var(--font-jp);
  line-height: 1.75;
}
img, svg { display: block; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--strap); outline-offset: 3px; }
.page { overflow-x: clip; }
.nb { display: inline-block; }

/* Clouds (same shapes as the top page) */
.cloud { position: absolute; width: 10em; height: 4.1em; pointer-events: none; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: var(--white); }
.cloud::before { left: 0; right: 0; bottom: 0; height: 2.2em; border-radius: 1.1em; }
.cloud::after {
  left: 1.6em; bottom: 0.8em; width: 3.7em; height: 3.2em; border-radius: 50%;
  box-shadow: 3.1em 0.45em 0 -0.3em var(--white);
}
.cloud--drift { animation: drift 20s ease-in-out infinite; }

/* Header */
.sky {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-low) 100%);
}
.sky__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: clamp(8px, 2.2vh, 20px);
  font-family: var(--font-en);
}
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav__mark { font-weight: 600; font-size: 15px; letter-spacing: 0.2em; }
.nav__links { display: flex; gap: 24px; font-size: 14px; font-weight: 500; letter-spacing: 0.16em; }

.title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(32px, 7vh, 72px) 0 clamp(88px, 14vh, 140px);
}
.title__icon {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  border: 2px solid var(--ink);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 10px 0 -5px rgba(22, 34, 58, 0.14);
}
.title__icon img { width: 100%; height: 100%; object-fit: cover; }
.title__eyebrow {
  margin: 24px 0 6px;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.26em;
}
.title__name {
  margin: 0;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.3;
  letter-spacing: 0.06em;
}
.title__sub { margin: 4px 0 0; font-family: var(--font-en); font-weight: 500; font-size: 15px; letter-spacing: 0.08em; color: var(--muted); }
.title__date { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
/* Which apps the page covers */
.platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 12px 0 0;
}
.platform__now {
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
}
/* Tag in front of a heading or paragraph that only applies to one OS */
.os {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  vertical-align: 0.15em;
  white-space: nowrap;
}

.lang {
  display: inline-flex;
  gap: 4px;
  margin-top: 24px;
  padding: 4px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
}
.lang a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.lang a:hover { background: var(--sky-low); }

/* Body: the white "building" with the ruler down its side */
.building {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.floor { display: flex; border-bottom: 3px solid var(--ink); scroll-margin-top: 0; }
.floor:last-child { border-bottom: 0; }
.floor__ruler {
  flex: 0 0 clamp(28px, 5vw, 64px);
  border-right: 2px solid var(--ink);
  background:
    repeating-linear-gradient(to bottom, var(--ink) 0 2px, transparent 2px 80px) right top / 14px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 16px) right top / 8px 100% no-repeat;
}
.floor__body { flex: 1 1 0; min-width: 0; padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 56px); }

.doc { max-width: 760px; margin: 0 auto; }
.doc__label {
  margin: 0;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.doc__heading {
  margin: 2px 0 0;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 30px);
  line-height: 1.35;
  letter-spacing: 0.04em;
}
.doc p, .doc li, .doc dd { font-size: 16px; line-height: 1.95; }
.doc p { margin: 0 0 1em; }
.doc[lang="en"] p, .doc[lang="en"] li, .doc[lang="en"] dd { line-height: 1.75; }

/* Table of contents */
.toc {
  margin: 32px 0 56px;
  padding: 20px 24px 12px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
}
.toc__title { margin: 0 0 6px; font-family: var(--font-en); font-weight: 600; font-size: 13px; letter-spacing: 0.22em; }
.toc ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; border-top: 1px dashed var(--dash); }
.doc .toc li { font-size: 15px; line-height: 1.5; }
.toc a { display: flex; gap: 10px; padding: 9px 0; text-decoration: none; }
.toc a:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.toc__no { flex: 0 0 auto; min-width: 1.6em; font-family: var(--font-en); font-weight: 600; color: var(--copy); }

/* Sections */
.sec { padding-top: 8px; margin-bottom: 48px; scroll-margin-top: 16px; }
.sec:last-child { margin-bottom: 0; }
.sec h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 22px);
  line-height: 1.4;
}
.sec__no {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 16px;
}
.sec h4 { margin: 24px 0 6px; font-size: 16px; font-weight: 700; color: var(--copy); }

.doc ul.dots { margin: 0 0 1em 1em; padding: 0; list-style: none; }
.doc ul.dots li { position: relative; padding-left: 16px; margin-bottom: 4px; }
.doc ul.dots li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.82em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}
.doc[lang="en"] ul.dots li::before { top: 0.7em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.2em; padding: 0; list-style: none; }
.doc .chips li {
  padding: 4px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.rows { margin: 0 0 1.2em; display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); }
.rows dt, .rows dd { margin: 0; padding: 12px 0; border-top: 1px dashed var(--dash); }
.rows dt { padding-right: 20px; font-weight: 700; font-size: 15px; line-height: 1.7; }
.rows dt:last-of-type, .rows dd:last-of-type { border-bottom: 1px dashed var(--dash); }

.note {
  margin: 0 0 1em;
  padding: 16px 20px;
  border-left: 4px solid var(--card-blue);
  border-radius: 0 12px 12px 0;
  background: var(--paper);
}
.note p:last-child { margin-bottom: 0; }

.ui { font-weight: 700; white-space: nowrap; }
mark.todo { background: var(--todo); color: var(--ink); padding: 0 4px; border-radius: 4px; }

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 56px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--sky-low);
}
.contact-card p { margin: 0; }
.contact-card__label { font-family: var(--font-en); font-weight: 600; font-size: 13px; letter-spacing: 0.22em; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--ink); color: var(--white); }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-decoration: none;
}
.to-top:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.ground-sky {
  position: relative;
  overflow: hidden;
  padding: 150px 20px 40px;
  text-align: center;
  background: linear-gradient(to bottom, var(--sky-low) 0%, var(--sky-mid) 100%);
}
.ground-sky p { position: relative; margin: 0; }
.ground-sky__mark { font-family: var(--font-en); font-weight: 600; font-size: 15px; letter-spacing: 0.2em; }
.ground-sky__mark a { text-decoration: none; }
.ground-sky__copy { margin-top: 4px !important; font-size: 13px; }

@keyframes drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(32px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 680px) {
  .toc ol { columns: 1; }
  .rows { grid-template-columns: minmax(0, 1fr); }
  .rows dt { padding-bottom: 0; }
  .rows dd { border-top: 0; padding-top: 2px; }
  .rows dt:last-of-type { border-bottom: 0; }
}
@media (max-width: 600px) {
  .nav__mark { font-size: 13px; letter-spacing: 0.04em; }
  .nav__links { gap: 14px; font-size: 12px; letter-spacing: 0.06em; }
  .cloud--wide-only { display: none; }
  .doc p, .doc li, .doc dd { font-size: 15px; }
  .toc { padding: 16px 18px 8px; }
  .ground-sky { padding-top: 120px; }
  .ground-sky .cloud { transform: scale(0.62); transform-origin: left top; }
}

@media print {
  .cloud, .nav__links, .lang, .to-top, .contact-card .btn { display: none !important; }
  .sky, .ground-sky { background: none; }
  .title { padding: 16px 0 24px; }
  .floor__ruler { display: none; }
  .building, .floor { border: 0; }
  .floor { break-before: page; }
  .floor:first-child { break-before: auto; }
  .sec h3 { break-after: avoid; }
  mark.todo { outline: 1px solid var(--ink); }
}
