:root{
  --bg:#ffffff;
  --bg2:#f6f7fb;
  --text:#111827;
  --muted:#6b7280;
  --line:rgba(17,24,39,.12);
  --brand:#0b0147;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; font-family:"Pretendard", system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color:var(--text); background:var(--bg); }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.container{ width:min(1100px, 80%); margin:0 auto; }

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  background:#fff;
  border-bottom:1px solid rgba(17,24,39,.08);
}
.header-inner{
  height:72px;
  display:flex; align-items:center; justify-content:space-between;
}
.brand img{ height:34px; width:auto; }

.gnb{ display:flex; gap:26px; font-weight:600; }
.gnb a{ opacity:.88; }
.gnb a:hover{ opacity:1; }

.m-toggle{
  display:none;
  width:44px; height:44px;
  border:1px solid rgba(17,24,39,.12);
  background:#fff;
  border-radius:12px;
  cursor:pointer;
}
.mnav{
  display:none;
  border-top:1px solid rgba(17,24,39,.08);
  background:#fff;
}
.mnav-inner{ padding:14px 0; display:flex; gap:18px; flex-wrap:wrap; }
.mnav a{ font-weight:800; opacity:.9; }
.mnav.is-open{ display:block; }

@media (max-width: 860px){
  .gnb{ display:none; }
  .m-toggle{ display:inline-flex; align-items:center; justify-content:center; }
}

/* Terms hero */
.terms-hero{
  padding: 44px 0 24px;
  background: linear-gradient(180deg, rgba(11,1,71,.10), rgba(11,1,71,0));
  border-bottom:1px solid rgba(17,24,39,.06);
}
.eyebrow{
  margin:0 0 8px;
  font-weight:900;
  color: var(--brand);
  letter-spacing:-.2px;
}
.terms-hero h1{
  margin:0 0 10px;
  font-size: 34px;
  letter-spacing:-.8px;
}
.lead{
  margin:0;
  color: var(--muted);
  line-height:1.7;
  max-width: 820px;
}
.meta{
  margin-top: 12px;
  color: rgba(17,24,39,.72);
  display:flex; gap:10px; flex-wrap:wrap;
}
.meta .dot{ opacity:.5; }

/* Layout */
.terms{ padding: 26px 0 70px; }
.terms .container{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  align-items:start;
}

@media (max-width: 980px){
  .terms .container{ grid-template-columns: 1fr; }
}

.toc-box{
  position: sticky;
  top: 90px;
  background:#fff;
  border:1px solid rgba(17,24,39,.08);
  border-radius: 18px;
  padding: 16px;
}
.toc-box strong{ display:block; margin-bottom:10px; }
.toc-box a{
  display:block;
  padding: 9px 10px;
  border-radius: 12px;
  color: rgba(17,24,39,.84);
}
.toc-box a:hover{
  background: rgba(11,1,71,.06);
  color: var(--brand);
}

.doc{
  background:#fff;
  border:1px solid rgba(17,24,39,.08);
  border-radius: 18px;
  padding: 18px;
}
.block{
  padding: 14px 8px;
  border-bottom:1px solid rgba(17,24,39,.06);
}
.block:last-child{ border-bottom:none; }
.block h2{
  margin:0 0 10px;
  font-size: 18px;
  letter-spacing:-.3px;
}
.block p, .block li{
  color: rgba(17,24,39,.78);
  line-height:1.8;
}
.block ul{
  margin:0; padding-left: 18px;
  display:grid; gap:6px;
}

.notice{
  margin-top: 14px;
  background: rgba(11,1,71,.06);
  border:1px solid rgba(11,1,71,.12);
  border-radius: 14px;
  padding: 14px;
  color: rgba(17,24,39,.78);
  line-height:1.7;
}

/* Footer */
.site-footer{
  background:#0b0b12;
  color:#fff;
  padding: 44px 0 28px;
}
.footer-top{
  display:flex;
  justify-content:space-between;
  gap: 22px;
  align-items:flex-start;
}
.f-logo{ height: 34px; width:auto; }
.f-right p{ margin:6px 0; color: rgba(255,255,255,.88); }
.footer-bottom{ margin-top: 22px; }
.footer-line{ height:1px; background: rgba(255,255,255,.15); margin-bottom: 14px; }
.footer-links{
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  color: rgba(255,255,255,.78);
}
.links a{ color: rgba(255,255,255,.9); }
.links a:hover{ color:#fff; }
.sep{ opacity:.65; margin: 0 6px; }

@media (max-width: 860px){
  .footer-top{ flex-direction:column; }
}

/* reveal */
.reveal{ opacity:0; transform: translateY(14px); transition: .5s ease; }
.reveal.is-in{ opacity:1; transform: translateY(0); }
