:root {
  --background: #fbf9ff;
  --surface: #ffffff;
  --surface-soft: #f3edff;
  --foreground: #20182d;
  --muted: #6f647d;
  --border: #e7ddf2;
  --accent: #7b3ff2;
  --accent-dark: #5c22ca;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI",
    "Yu Gothic", sans-serif;
  line-height: 1.75;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid #b692ff;
  outline-offset: 4px;
  border-radius: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  background: rgb(251 249 255 / 92%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--foreground);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #9d68ff, #6727df);
  box-shadow: 0 8px 24px rgb(108 48 220 / 24%);
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--accent-dark);
}

.hero,
.policy-hero {
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 112px 0 128px;
  text-align: center;
}

.policy-hero {
  padding: 84px 0 52px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

h1 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.policy-hero h1 {
  margin-left: 0;
}

.lead {
  max-width: 660px;
  margin: 26px auto 34px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.policy-hero .lead {
  margin-left: 0;
}

.primary-link {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #8a4dff, #6824dc);
  box-shadow: 0 14px 34px rgb(103 39 217 / 24%);
  font-weight: 800;
  text-decoration: none;
}

.panel {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto 30px;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: 0 20px 70px rgb(65 31 110 / 7%);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.section-heading p:not(.eyebrow),
.policy p,
.policy li {
  color: var(--muted);
}

.notice {
  padding: 22px 24px;
  border: 1px solid #ddccff;
  border-radius: 18px;
  background: var(--surface-soft);
  color: #4c386d;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq-grid article {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fdfcff;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.45;
}

.faq-grid p {
  margin: 0;
  color: var(--muted);
}

.policy {
  max-width: 1000px;
}

.policy h2 {
  margin-top: 38px;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
}

.policy h2:first-of-type {
  margin-top: 30px;
}

.policy ul {
  padding-left: 1.35rem;
}

footer {
  display: flex;
  justify-content: space-between;
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .site-header {
    width: min(100% - 28px, 1120px);
  }

  nav {
    gap: 14px;
  }

  nav a {
    font-size: 0.82rem;
  }

  .hero,
  .policy-hero {
    width: min(100% - 32px, 1000px);
  }

  .hero {
    padding: 76px 0 92px;
    text-align: left;
  }

  h1 {
    margin: 0;
  }

  .lead {
    margin-left: 0;
  }

  .panel {
    width: min(100% - 24px, 1100px);
    padding: 28px 22px;
    border-radius: 24px;
  }

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

  footer {
    width: min(100% - 36px, 1040px);
  }
}

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

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: flex-end;
  max-width: 960px;
  margin: 0 auto;
  padding: 6px 20px 0;
  font-size: 0.85rem;
}

.lang-switch a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
}
