/* ===== 내 권리 알기 — 공통 스타일 ===== */
:root {
  --ink: #1a1208;
  --paper: #f7f3ec;
  --paper2: #ede6d6;
  --gold: #b8860b;
  --gold-light: #d4a017;
  --red: #8b1a1a;
  --muted: #6b5e4a;
  --border: #c8b89a;
  --white: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: 'Noto Sans KR', sans-serif; }

/* NAV */
nav { background: var(--ink); padding: 0 24px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav-logo { font-family: 'Noto Serif KR', serif; font-size: 18px; font-weight: 700; color: var(--gold-light); text-decoration: none; }
.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-links a { color: #c8b89a; text-decoration: none; font-size: 13px; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold-light); }

/* TOC BAR (블로그 페이지용) */
.toc-bar { background: #111008; border-top: 1px solid #2d2010; padding: 0 24px; overflow-x: auto; position: sticky; top: 56px; z-index: 99; }
.toc-inner { max-width: 1100px; margin: 0 auto; display: flex; white-space: nowrap; }
.toc-btn { background: none; border: none; border-bottom: 2px solid transparent; color: #8a7a62; font-size: 12px; padding: 10px 16px; cursor: pointer; font-family: 'Noto Sans KR', sans-serif; transition: all 0.2s; }
.toc-btn:hover, .toc-btn.active { color: var(--gold-light); border-bottom-color: var(--gold); }

/* PAGE LAYOUT */
.page-wrap { max-width: 900px; margin: 0 auto; padding: 40px 24px 80px; }

/* PAGE HERO */
.page-hero { background: var(--ink); color: var(--paper); padding: 36px 32px; border-radius: 4px; margin-bottom: 32px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(184,134,11,0.07) 31px, rgba(184,134,11,0.07) 32px); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; }
.page-cat { display: inline-block; font-size: 11px; letter-spacing: .12em; color: var(--gold); border: 1px solid var(--gold); padding: 3px 12px; border-radius: 100px; margin-bottom: 14px; }
.page-hero h1 { font-family: 'Noto Serif KR', serif; font-size: clamp(22px, 4vw, 32px); font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.page-hero p { font-size: 13px; color: #b0a080; line-height: 1.7; }

/* SECTION CARDS */
.section { background: var(--white); border: 1px solid var(--border); border-radius: 4px; padding: 32px; margin-bottom: 20px; scroll-margin-top: 110px; }
.sec-title { font-family: 'Noto Serif KR', serif; font-size: 21px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.sec-title::before { content: '§'; color: var(--gold); }
.sec-law { font-size: 12px; color: var(--muted); margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }

/* BODY TEXT */
.body { font-size: 14px; line-height: 1.9; color: #2a1e10; }
.body p { margin-bottom: 12px; }
.body h3 { font-family: 'Noto Serif KR', serif; font-size: 16px; font-weight: 700; margin: 22px 0 8px; }
.body ul, .body ol { margin: 8px 0 12px 18px; }
.body li { margin-bottom: 6px; }
.body strong { color: var(--ink); }

/* INFO/WARNING BOXES */
.ibox { background: var(--paper); border: 1px solid var(--border); border-left: 4px solid var(--gold); padding: 14px 18px; border-radius: 2px; margin: 14px 0; font-size: 13px; line-height: 1.8; }
.ibox b { color: var(--gold); display: block; font-family: 'Noto Serif KR', serif; margin-bottom: 6px; font-size: 14px; }
.wbox { background: #fff5f0; border: 1px solid #f0c8b0; border-left: 4px solid var(--red); padding: 14px 18px; border-radius: 2px; margin: 14px 0; font-size: 13px; line-height: 1.8; }
.wbox b { color: var(--red); display: block; margin-bottom: 6px; font-size: 14px; }
.cbox { background: var(--ink); color: #d4c8b0; padding: 16px 20px; border-radius: 4px; margin: 14px 0; font-size: 13px; line-height: 1.9; }
.cbox strong { color: var(--gold-light); }

/* TABLE */
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
th { background: var(--ink); color: var(--gold-light); padding: 9px 13px; text-align: left; font-weight: 500; }
td { padding: 9px 13px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:nth-child(even) td { background: var(--paper); }

/* AD SLOT */
.ad-slot { background: var(--paper2); border: 1px dashed var(--border); border-radius: 4px; padding: 16px; text-align: center; color: var(--muted); font-size: 12px; margin: 20px 0; }

/* DISCLAIMER */
.disclaimer { margin-top: 28px; padding: 14px 18px; border: 1px dashed var(--border); border-radius: 2px; font-size: 12px; color: var(--muted); line-height: 1.7; text-align: center; }

/* FOOTER */
footer { background: var(--ink); color: #6b5e4a; padding: 28px 24px; text-align: center; font-size: 12px; margin-top: 48px; }
footer a { color: #8a7a62; text-decoration: none; margin: 0 8px; transition: color 0.2s; }
footer a:hover { color: var(--gold-light); }

/* SIMPLE PAGE LAYOUT (about, privacy, terms) */
.simple-wrap { max-width: 760px; margin: 0 auto; padding: 60px 24px 80px; }
.simple-wrap h1 { font-family: 'Noto Serif KR', serif; font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.simple-wrap .updated { font-size: 12px; color: var(--muted); margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.simple-wrap .content { font-size: 14px; line-height: 1.9; color: #2a1e10; }
.simple-wrap .content h2 { font-family: 'Noto Serif KR', serif; font-size: 18px; font-weight: 700; margin: 28px 0 10px; padding-left: 12px; border-left: 3px solid var(--gold); }
.simple-wrap .content p { margin-bottom: 12px; }
.simple-wrap .content ul { margin: 10px 0 12px 20px; }
.simple-wrap .content li { margin-bottom: 5px; }
.simple-wrap .content a { color: var(--gold); }
.highlight-box { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--gold); padding: 16px 20px; border-radius: 2px; margin: 20px 0; font-size: 14px; line-height: 1.8; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .section { padding: 20px; }
  .page-hero { padding: 24px 18px; }
  .simple-wrap { padding: 40px 16px 60px; }
  .simple-wrap h1 { font-size: 26px; }
}
