:root {
  color-scheme: dark;
  --background: #0a1323;
  --background-soft: #101b2c;
  --panel: rgba(38, 49, 66, 0.88);
  --panel-strong: #202b3d;
  --border: rgba(156, 180, 216, 0.14);
  --text: #f5f7fb;
  --muted: #9ca8ba;
  --accent: #70aefb;
  --accent-soft: rgba(71, 139, 231, 0.13);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 8%, rgba(41, 90, 169, 0.13), transparent 28rem),
    radial-gradient(circle at 12% 36%, rgba(40, 86, 158, 0.08), transparent 30rem),
    var(--background);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 80; height: 3px; background: transparent; }
.scroll-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #4b8ee8, #83c4ff); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(8, 17, 31, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
}

.nav-shell, .hero, .policy-layout, .footer-shell, .copyright { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }
.nav-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 1.02rem; font-weight: 800; letter-spacing: -0.03em; }
.brand small { font-size: 0.7em; color: #c8d6ea; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; color: #07101e; background: #fff; font-size: 0.8rem; letter-spacing: -0.05em; box-shadow: 0 8px 30px rgba(98, 166, 255, 0.22); transform: rotate(-3deg); }
nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 46px); }
nav a { color: #aeb8c8; text-decoration: none; font-weight: 600; transition: color .2s ease; }
nav a:hover { color: #fff; }
.menu-button { display: none; color: #fff; background: #1a2638; border: 1px solid var(--border); border-radius: 9px; padding: 9px 13px; font: inherit; }

.hero { text-align: center; padding: 72px 0 47px; }
.eyebrow { margin: 0 0 22px; color: #7eb5fa; font-size: 0.78rem; font-weight: 800; letter-spacing: .32em; }
.eyebrow span { color: #3a72bd; }
h1 { margin: 0; font-size: clamp(2.35rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -0.052em; }
h1 i { color: #c4cede; font-style: normal; font-weight: 400; }
.subtitle { margin: 28px auto 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.14rem); }
.updated { margin: 17px 0 38px; color: #8290a5; font-size: 0.86rem; }
.updated strong { color: #aebbd0; font-weight: 600; }

.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; text-align: left; }
.info-card { min-height: 91px; display: flex; align-items: center; gap: 13px; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); box-shadow: inset 0 1px rgba(255,255,255,.025), 0 12px 28px rgba(0,0,0,.12); }
.card-icon { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; color: var(--accent); background: var(--accent-soft); border-radius: 10px; }
.card-icon svg { width: 22px; height: 22px; }
.info-card div { min-width: 0; }
.info-card div > span { display: block; color: #9aa6b8; margin-bottom: 9px; font-size: .67rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.info-card strong { display: block; overflow-wrap: anywhere; font-size: .88rem; }
.info-card strong a { text-decoration: none; }
.info-card strong a:hover { color: var(--accent); }

.cookie-bar { width: min(1014px, 100%); margin: 15px auto 0; display: flex; justify-content: space-between; gap: 24px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px; color: #9ba7ba; background: var(--panel); text-align: left; font-size: .86rem; }
.cookie-bar div { flex: 0 0 auto; display: flex; gap: 16px; }
.cookie-bar a { color: #8fc1ff; font-weight: 700; text-decoration: none; }

.policy-layout { display: grid; grid-template-columns: 278px minmax(0, 1fr); align-items: start; gap: 30px; padding: 0 0 88px; }
.contents-card, .policy-card { border: 1px solid var(--border); border-radius: 14px; background: rgba(35, 46, 63, .82); box-shadow: var(--shadow); }
.contents-card { position: sticky; top: 98px; max-height: calc(100vh - 118px); overflow: hidden; }
.contents-list { max-height: inherit; overflow-y: auto; padding: 22px 18px 24px; scrollbar-width: thin; scrollbar-color: #40516a transparent; }
.contents-list h2 { margin: 0 0 19px; padding: 0 3px 15px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1rem; }
.contents-list ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.contents-list li { counter-increment: toc; }
.contents-list a { display: block; padding: 8px 10px; border-radius: 8px; color: #a6b1c1; font-size: .78rem; line-height: 1.55; text-decoration: none; transition: color .2s, background .2s, transform .2s; }
.contents-list a:hover, .contents-list a.active { color: #d9e9ff; background: rgba(84, 146, 229, .12); transform: translateX(2px); }
.contents-toggle { display: none; }
.policy-card { padding: clamp(24px, 4vw, 42px); }
.policy-card h2 { margin: 44px 0 20px; padding: 38px 0 0; border-top: 1px solid rgba(255,255,255,.085); scroll-margin-top: 104px; font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.24; letter-spacing: -.035em; }
.policy-card h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.policy-card h3 { margin: 31px 0 14px; scroll-margin-top: 104px; font-size: clamp(1.18rem, 2vw, 1.45rem); letter-spacing: -.025em; }
.policy-card p, .policy-card li { color: #b6c0cf; font-size: .96rem; line-height: 1.88; }
.policy-card p { margin: 0 0 18px; }
.policy-card ul { margin: 12px 0 22px; padding-left: 22px; }
.policy-card li { margin: 8px 0; padding-left: 4px; }
.policy-card li::marker { color: var(--accent); }
.policy-card strong { color: #f3f6fa; }
.policy-card a { color: #8fc1ff; text-underline-offset: 4px; overflow-wrap: anywhere; }

footer { border-top: 1px solid rgba(255,255,255,.06); background: #070f1c; }
.footer-shell { display: flex; justify-content: space-between; gap: 40px; padding-block: 45px; }
.footer-brand { margin-bottom: 18px; }
.footer-shell p { margin: 0; color: #8f9aab; font-size: .9rem; }
.footer-shell p a { color: #b9cee9; }
.footer-links { display: flex; align-items: center; gap: 28px; }
.footer-links a { color: #9ca8ba; text-decoration: none; font-size: .9rem; }
.copyright { padding-block: 19px; color: #748196; border-top: 1px solid rgba(255,255,255,.055); font-size: .8rem; }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: grid; place-items: center; width: 46px; height: 46px; color: #dfeaf9; background: rgba(55, 68, 89, .88); border: 1px solid var(--border); border-radius: 50%; text-decoration: none; box-shadow: 0 10px 24px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s, background .2s; backdrop-filter: blur(12px); }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: #3d5b86; }

@media (max-width: 920px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .policy-layout { grid-template-columns: 1fr; gap: 20px; }
  .contents-card { position: static; max-height: none; }
  .contents-toggle { width: 100%; display: flex; justify-content: space-between; padding: 18px 20px; color: #fff; background: transparent; border: 0; font: 700 1rem "Manrope", sans-serif; cursor: pointer; }
  .contents-list { display: none; max-height: 65vh; border-top: 1px solid var(--border); }
  .contents-list.open { display: block; }
}

@media (max-width: 680px) {
  .nav-shell, .hero, .policy-layout, .footer-shell, .copyright { width: min(100% - 28px, 1140px); }
  .menu-button { display: block; }
  nav { position: absolute; inset: 76px 14px auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: rgba(18, 28, 43, .98); box-shadow: var(--shadow); }
  nav.open { display: flex; }
  nav a { padding: 12px; }
  .hero { padding-top: 55px; }
  h1 i { display: none; }
  .info-grid { grid-template-columns: 1fr; }
  .cookie-bar, .footer-shell { flex-direction: column; }
  .cookie-bar div { flex-wrap: wrap; }
  .policy-card { border-radius: 12px; }
  .footer-links { align-items: flex-start; flex-direction: column; gap: 12px; }
  .back-to-top { right: 15px; bottom: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
