/* ShortsStudy Legal Pages — shared styles */
:root {
  --orange:   #FF6B35;
  --orange-d: #D95525;
  --yellow:   #FFD23F;
  --teal:     #3EC9C0;
  --ink:      #0F0F1A;
  --ink2:     #181828;
  --ink3:     #22223A;
  --line:     rgba(255,255,255,0.08);
  --text:     #E8E8F0;
  --muted:    rgba(232,232,240,0.45);
  --r:        12px;
  --r2:       20px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
}
h1, h2, h3, h4, .brand { font-family: 'Jua', sans-serif; }
a { text-decoration: none; color: inherit; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 28px; }

/* NAV */
.legal-nav {
  background: rgba(15,15,26,.96);
  border-bottom: 1px solid var(--line);
  padding: 0 28px;
}
.legal-nav-inner {
  display: flex; align-items: center; gap: 8px;
  height: 56px; max-width: 860px; margin: 0 auto;
}
.brand { font-size: 20px; color: var(--orange); }
.breadcrumb-sep { color: var(--line); font-size: 18px; }
.breadcrumb-cur { font-size: 14px; color: var(--muted); }

/* HERO */
.page-hero {
  background: linear-gradient(135deg, var(--ink2) 0%, var(--ink) 100%);
  border-bottom: 1px solid var(--line);
  padding: 56px 28px 48px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,.06) 0%, transparent 70%);
  right: -80px; top: -80px; pointer-events: none;
}
.page-hero-inner { max-width: 860px; margin: 0 auto; position: relative; }
.page-hero h1 { font-size: 36px; color: white; margin-bottom: 8px; }
.page-hero p  { font-size: 14px; color: var(--muted); }

/* MAIN */
.legal-main { padding: 60px 0 100px; }
.legal-section { margin-bottom: 48px; }
.legal-section h2 {
  font-family: 'Jua', sans-serif;
  font-size: 20px; color: white;
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 3px solid var(--orange);
}
.legal-section h3 {
  font-family: 'Jua', sans-serif;
  font-size: 16px; color: rgba(255,255,255,.8);
  margin: 20px 0 10px;
}
.legal-section p {
  font-size: 14px; color: var(--muted);
  line-height: 1.9; margin-bottom: 12px;
}
.legal-section ol,
.legal-section ul {
  padding-left: 20px; margin-bottom: 14px;
}
.legal-section li {
  font-size: 14px; color: var(--muted);
  line-height: 1.9; margin-bottom: 4px;
}

/* BOX TYPES */
.box {
  border-radius: var(--r2);
  padding: 20px 24px;
  margin: 16px 0;
}
.box p { margin: 0; font-size: 14px; line-height: 1.85; }
.box-info {
  background: rgba(255,107,53,.07);
  border: 1px solid rgba(255,107,53,.18);
}
.box-info p { color: var(--text); }
.box-warn {
  background: rgba(239,68,68,.07);
  border: 1px solid rgba(239,68,68,.18);
}
.box-warn p { color: #FCA5A5; }
.box-ok {
  background: rgba(16,185,129,.07);
  border: 1px solid rgba(16,185,129,.18);
}
.box-ok p { color: #6EE7B7; }
.box-ai {
  background: rgba(139,92,246,.07);
  border: 1px solid rgba(139,92,246,.2);
}
.box-ai p { color: #C4B5FD; }

/* TABLE */
.legal-table {
  width: 100%; border-collapse: collapse;
  border-radius: var(--r2); overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}
.legal-table th {
  background: var(--ink3);
  color: rgba(255,255,255,.7);
  padding: 13px 18px;
  text-align: left; font-size: 13px;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700; border-bottom: 1px solid var(--line);
}
.legal-table td {
  padding: 13px 18px; font-size: 13px; color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: top; line-height: 1.7;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr:hover td { background: rgba(255,255,255,.02); }

/* GRADE BADGES */
.gbadge {
  display: inline-block; padding: 3px 10px;
  border-radius: 100px; font-size: 12px; font-weight: 700;
  white-space: nowrap;
}
.gn { background: rgba(156,163,175,.15); color: #9CA3AF; border: 1px solid rgba(156,163,175,.25); }
.gr { background: rgba(59,130,246,.15);  color: #60A5FA; border: 1px solid rgba(59,130,246,.25); }
.gu { background: rgba(16,185,129,.15);  color: #34D399; border: 1px solid rgba(16,185,129,.25); }
.gl { background: rgba(245,158,11,.15);  color: #FBBF24; border: 1px solid rgba(245,158,11,.25); }
.gd { background: rgba(168,85,247,.15);  color: #C084FC; border: 1px solid rgba(168,85,247,.25); }

/* FLOW STEPS */
.flow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0;
  margin: 24px 0;
}
.flow-step {
  background: var(--ink3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 18px;
  text-align: center; min-width: 100px;
}
.flow-step .fs-icon { font-size: 22px; margin-bottom: 6px; }
.flow-step .fs-name { font-size: 13px; font-weight: 700; color: white; }
.flow-step .fs-sub  { font-size: 11px; color: var(--muted); margin-top: 2px; }
.flow-arr { padding: 0 8px; color: var(--orange); font-size: 18px; font-weight: 700; }

/* STEP LIST */
.step-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.step-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 18px;
}
.step-num {
  width: 30px; height: 30px; flex-shrink: 0;
  background: var(--orange); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Jua', sans-serif; font-size: 15px;
}
.step-item strong { font-size: 14px; color: white; display: block; margin-bottom: 3px; }
.step-item span   { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* TOC */
.toc {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: var(--r2); padding: 22px 24px;
  margin-bottom: 48px;
}
.toc h4 { font-family: 'Jua', sans-serif; font-size: 14px; color: white; margin-bottom: 14px; }
.toc ol { padding-left: 18px; }
.toc li { font-size: 13px; margin-bottom: 5px; }
.toc a  { color: var(--orange); }
.toc a:hover { text-decoration: underline; }

/* CARD LIST */
.card-list { display: flex; flex-direction: column; gap: 8px; }
.cl-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--ink2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 18px;
}
.cl-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px; overflow: hidden;
  background: rgba(255,107,53,.1);
}
.cl-icon img { width: 100%; height: 100%; object-fit: cover; }
.cl-item strong { font-size: 14px; color: white; display: block; margin-bottom: 2px; }
.cl-item span   { font-size: 13px; color: var(--muted); }

/* META LINE */
.legal-meta {
  font-size: 12px; color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 24px; margin-top: 60px;
}

/* FOOTER */
.legal-footer {
  background: var(--ink2);
  border-top: 1px solid var(--line);
  padding: 24px 28px; text-align: center;
}
.legal-footer-links { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 12px; }
.legal-footer-links a { font-size: 13px; color: var(--muted); transition: color .2s; }
.legal-footer-links a:hover { color: white; }
.legal-footer-copy { font-size: 12px; color: rgba(255,255,255,.2); }
