@font-face {
  font-family: "Centaur BSS";
  src: url("/assets/fonts/centaur.woff2") format("woff2");
  font-display: swap;
}

:root {
  --black: #050505;
  --white: #f2f1ed;
  --muted: rgba(242, 241, 237, .55);
  --hairline: rgba(242, 241, 237, .2);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; background: var(--black); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  background: radial-gradient(circle at 50% 18%, rgba(255,255,255,.035), transparent 38%), var(--black);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--white); outline-offset: 4px; }

.legal-noise {
  position: fixed;
  inset: -100%;
  opacity: .045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: max(20px, env(safe-area-inset-top)) clamp(20px, 4vw, 64px) 18px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(5,5,5,.86);
  backdrop-filter: blur(14px);
}

.legal-brand {
  text-decoration: none;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
}

.legal-languages { display: flex; align-items: center; gap: 8px; }
.legal-languages button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 24px;
  padding: 5px;
  border: 1px solid transparent;
  background: transparent;
  opacity: .5;
  cursor: pointer;
  transition: opacity .18s ease, border-color .18s ease, background .18s ease;
}
.legal-languages button:hover,
.legal-languages button:focus-visible,
.legal-languages button.is-selected {
  opacity: 1;
  border-color: var(--hairline);
  background: rgba(255,255,255,.05);
}
.legal-languages img {
  display: block;
  width: 22px;
  height: 14px;
  object-fit: cover;
  border: 1px solid rgba(242,241,237,.22);
}

.legal-main { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: clamp(56px, 9vw, 120px) 0 80px; }
.legal-version[hidden] { display: none; }
.legal-kicker { margin: 0 0 18px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .2em; }
h1 {
  margin: 0;
  font-family: "Centaur BSS", Georgia, serif;
  font-size: clamp(52px, 10vw, 118px);
  font-weight: 400;
  line-height: .8;
  letter-spacing: -.055em;
}
.legal-intro {
  max-width: 720px;
  margin: clamp(30px, 5vw, 56px) 0 clamp(40px, 7vw, 76px);
  color: rgba(242,241,237,.76);
  font-family: "Centaur BSS", Georgia, serif;
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.16;
}
.legal-version section {
  display: grid;
  grid-template-columns: minmax(170px, .42fr) 1fr;
  gap: 30px;
  padding: 25px 0;
  border-top: 1px solid var(--hairline);
}
h2 { margin: 0; font-size: 9px; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; }
.legal-version section p { margin: 0; color: rgba(242,241,237,.72); font-size: 13px; line-height: 1.75; }
.legal-version section a { text-underline-offset: 4px; }
.legal-updated { margin: 34px 0; color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.legal-back { display: inline-flex; gap: 9px; padding-bottom: 5px; border-bottom: 1px solid currentColor; text-decoration: none; font-size: 9px; font-weight: 800; letter-spacing: .18em; }

html[lang="ja"] body { font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Arial, sans-serif; }
html[lang="ja"] h1,
html[lang="ja"] .legal-intro { font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif; letter-spacing: -.03em; }

@media (max-width: 650px) {
  .legal-main { width: min(100% - 32px, 900px); padding-top: 54px; }
  .legal-brand { font-size: 8px; }
  .legal-version section { grid-template-columns: 1fr; gap: 12px; }
  h1 { font-size: clamp(45px, 15vw, 74px); }
  .legal-intro { font-size: clamp(19px, 6vw, 27px); }
}
