/* Shared styles for PokeChamps legal static pages */
:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --muted: #6b7280;
  --border: #e5e7eb;
  --link: #0066cc;
  --primary-soft: rgba(0, 102, 204, 0.12);
  --callout-bg: #f3f4f6;
  --shadow: 0 6px 22px rgba(0, 0, 0, 0.05);
  --max: 920px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --card: #161b22;
    --ink: #e6edf3;
    --muted: #9da7b3;
    --border: #30363d;
    --link: #58a6ff;
    --primary-soft: rgba(88, 166, 255, 0.15);
    --callout-bg: #21262d;
    --shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
}

a { color: var(--link); }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--card);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; opacity: 0.85; }
.home-link { font-size: 14px; }

.layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 16px 60px;
  display: grid;
  gap: 20px;
}

@media (min-width: 960px) {
  .layout.has-toc {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
  }
  .toc-side {
    position: sticky;
    top: 16px;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}

h1 { margin: 0 0 8px; font-size: 1.6rem; letter-spacing: -0.02em; }
h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  scroll-margin-top: 16px;
}
h3 { margin: 16px 0 8px; font-size: 1rem; font-weight: 700; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); font-size: 14px; }

.effective {
  display: inline-block;
  margin: 4px 0 16px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--primary-soft);
  font-size: 14px;
  font-weight: 600;
}

.article {
  margin-bottom: 18px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.article:last-of-type { border-bottom: none; margin-bottom: 0; }

ul, ol { margin: 0 0 12px; padding-left: 1.25rem; }
li { margin: 0 0 6px; }

dl.info { margin: 0 0 12px; }
dl.info dt {
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}
dl.info dd { margin: 2px 0 0; }

.callout {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--callout-bg);
  border-left: 3px solid var(--link);
}

.toc details,
.toc-side nav {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}
.toc summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.toc ul, .toc-side ul {
  margin: 8px 0 0;
  padding-left: 1.1rem;
  font-size: 13px;
}
.toc-side .toc-title {
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 8px;
}
.toc-side a { text-decoration: none; }
.toc-side a:hover { text-decoration: underline; }

@media (min-width: 960px) {
  .toc-mobile { display: none; }
}
@media (max-width: 959px) {
  .toc-side { display: none; }
}

.legal-nav {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 14px;
}

@media print {
  .site-header, .toc, .toc-side, .legal-nav, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border: none; padding: 0; }
  .layout { display: block; max-width: none; }
}
