:root {
  --bg: #0f0b14;
  --bg-soft: #18111f;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.10);
  --text: #f5eefc;
  --muted: #c8b9d6;
  --accent: #b48cff;
  --accent-2: #e7c46a;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.legal-page {
  margin: 0;
  min-height: 100vh;
  font-family:
    "Hiragino Mincho ProN",
    "Yu Mincho",
    "YuMincho",
    "Noto Serif JP",
    serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(180, 140, 255, 0.24), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(231, 196, 106, 0.12), transparent 30%),
    linear-gradient(180deg, #100b16 0%, #09070d 55%, #110b16 100%);
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(15, 11, 20, 0.72);
  border-bottom: 1px solid var(--border);
}

.legal-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.legal-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.legal-brand-name {
  font-size: 22px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.legal-brand-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family:
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}

.legal-nav a:hover {
  color: var(--text);
}

.legal-nav-cta {
  padding: 9px 16px;
  border: 1px solid rgba(180, 140, 255, 0.48);
  border-radius: 999px;
  color: var(--text);
  background: rgba(180, 140, 255, 0.12);
}

.legal-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 82px 22px 42px;
}

.legal-kicker {
  color: var(--accent-2);
  letter-spacing: 0.18em;
  font-size: 13px;
  margin: 0 0 18px;
  font-family:
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.12;
  letter-spacing: 0.06em;
}

.legal-lead {
  margin: 24px 0 0;
  max-width: 760px;
  font-size: clamp(17px, 2vw, 22px);
  color: #efe6f8;
  line-height: 1.9;
}

.legal-updated {
  margin: 20px 0 0;
  color: var(--muted);
  font-family:
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  font-size: 14px;
}

.legal-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 22px 96px;
}

.legal-panel {
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035)),
    rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 46px);
}

.legal-panel h2 {
  margin: 46px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(231, 196, 106, 0.24);
  color: #fff8df;
  font-size: clamp(21px, 2.5vw, 28px);
  line-height: 1.45;
}

.legal-panel h2:first-child {
  margin-top: 0;
}

.legal-panel p {
  margin: 0 0 16px;
  color: rgba(245, 238, 252, 0.88);
  line-height: 2;
}

.legal-panel ul {
  margin: 0 0 24px;
  padding-left: 1.35em;
}

.legal-panel li {
  margin: 0 0 10px;
  color: rgba(245, 238, 252, 0.88);
  line-height: 1.9;
}

.legal-panel a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.legal-box {
  margin: 20px 0 32px;
  padding: 20px;
  border: 1px solid rgba(180, 140, 255, 0.28);
  border-radius: 18px;
  background: rgba(180, 140, 255, 0.08);
}

.legal-footer {
  border-top: 1px solid var(--border);
  background: rgba(15, 11, 20, 0.84);
}

.legal-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-copy {
  color: var(--muted);
  font-family:
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  font-size: 13px;
}

@media (max-width: 760px) {
  .legal-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-nav {
    gap: 12px;
    font-size: 13px;
  }

  .legal-hero {
    padding-top: 58px;
  }

  .legal-panel {
    border-radius: 22px;
  }
}

/* =========================================================
   Shared site header / footer
   Used by /partials/site-nav.html and /partials/site-footer.html
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(15, 11, 20, 0.72);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: var(--text);
  text-decoration: none;
}

.brand-name {
  font-size: 22px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family:
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}

.nav a {
  color: inherit;
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 9px 16px;
  border: 1px solid rgba(180, 140, 255, 0.48);
  border-radius: 999px;
  color: var(--text) !important;
  background: rgba(180, 140, 255, 0.12);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(15, 11, 20, 0.86);
  backdrop-filter: blur(18px);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.footer-brand-name {
  color: var(--text);
  text-decoration: none;
  font-size: 20px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.footer-brand-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.footer-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: var(--muted);
  font-family:
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  font-size: 13px;
}

.footer-nav a {
  color: inherit;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-copy {
  grid-column: 1 / -1;
  color: rgba(200, 185, 214, 0.72);
  font-family:
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  font-size: 12px;
}

@media (max-width: 760px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    gap: 10px 14px;
    font-size: 13px;
  }

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

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