:root {
  --ink: #182034;
  --muted: #63708b;
  --line: #dce4f2;
  --accent: #5865f2;
  --accent-dark: #3f49c9;
  --accent-soft: #eef0ff;
  --background: #f4f7fc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 8% 0%, rgba(88,101,242,.14), transparent 29rem), linear-gradient(180deg,#fbfcff 0%,var(--background) 100%);
  color: var(--ink);
  font-family: "Yu Gothic UI", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
.site-shell { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
.brand-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(220,228,242,.86); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .02em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: white; box-shadow: 0 8px 22px rgba(88,101,242,.28); }
.support-link { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.78); color: var(--accent-dark); font-weight: 700; }
.support-link:hover,.support-link:focus-visible { border-color: var(--accent); outline: none; }
.home-shell { min-height: 100vh; display: flex; flex-direction: column; }
.hero { padding: clamp(70px,11vw,126px) 0 58px; max-width: 760px; }
.eyebrow,.card-label { margin: 0 0 14px; color: var(--accent); font-size: .77rem; font-weight: 800; letter-spacing: .16em; }
.hero h1 { margin: 0; font-size: clamp(2.35rem,6vw,4.8rem); line-height: 1.16; letter-spacing: -.045em; }
.hero-copy { max-width: 660px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1rem,2vw,1.16rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.install-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 22px; border-radius: 12px; background: var(--accent); color: white; font-weight: 800; box-shadow: 0 12px 28px rgba(88,101,242,.25); transition: background .18s ease,transform .18s ease; }
.install-button:hover,.install-button:focus-visible { background: var(--accent-dark); transform: translateY(-1px); outline: none; }
.document-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.document-card { min-height: 270px; display: flex; flex-direction: column; padding: clamp(28px,4vw,42px); border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.9); box-shadow: 0 18px 50px rgba(31,42,77,.06); transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.document-card:hover,.document-card:focus-visible { transform: translateY(-3px); border-color: rgba(88,101,242,.52); box-shadow: 0 24px 60px rgba(31,42,77,.11); outline: none; }
.document-card h2 { margin: 0; font-size: clamp(1.45rem,3vw,2rem); letter-spacing: -.025em; }
.document-card p { margin: 16px 0; color: var(--muted); }
.card-action { margin-top: auto; color: var(--accent-dark); font-weight: 800; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: auto; padding: 52px 0 34px; color: var(--muted); font-size: .84rem; }
.legal-shell { padding-bottom: 50px; }
.legal-page { max-width: 820px; margin: 58px auto 0; padding: clamp(30px,6vw,68px); border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.94); box-shadow: 0 22px 70px rgba(31,42,77,.07); }
.back-link { color: var(--accent-dark); font-size: .9rem; font-weight: 800; }
.legal-page h1 { margin: 24px 0 6px; font-size: clamp(2rem,5vw,3.25rem); line-height: 1.25; letter-spacing: -.04em; }
.updated { margin: 0 0 36px; color: var(--muted); font-size: .88rem; }
.lead { font-size: 1.05rem; }
.legal-page section { padding-top: 26px; }
.legal-page h2 { margin: 0 0 10px; font-size: 1.3rem; line-height: 1.45; }
.legal-page p,.legal-page li { color: #39455c; }
.legal-page ul { padding-left: 1.4rem; }
.legal-page code { padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-dark); font-family: inherit; font-weight: 700; }
.inline-link { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width:700px) {
  .site-shell { width: min(100% - 24px,1100px); }
  .brand-header { min-height: 70px; }
  .document-grid { grid-template-columns: 1fr; }
  .document-card { min-height: 230px; }
  .site-footer { flex-direction: column; gap: 4px; }
  .legal-page { margin-top: 26px; border-radius: 20px; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } .document-card,.install-button { transition: none; } }
