/* SpoonLog Legal Pages — shared stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand: #e8503a;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #fafafa;
  --card: #ffffff;
}

body {
  font-family:
    'Noto Sans KR',
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header__inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}
.site-header__logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  display: block;
}
.site-header__logo-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.site-header__sep {
  color: var(--border);
  font-size: 18px;
}
.site-header__page-title {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

/* ── Nav pills ── */
.terms-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.terms-nav__inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  padding: 10px 0;
}
.terms-nav a {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 99px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition:
    background 0.15s,
    color 0.15s;
}
.terms-nav a:hover {
  background: var(--bg);
  color: var(--text);
}
.terms-nav a.active {
  background: var(--brand);
  color: #fff;
}

/* ── Main content ── */
.page-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.doc-header {
  margin-bottom: 36px;
}
.doc-header h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.doc-header .meta {
  font-size: 13px;
  color: var(--muted);
}

/* ── Sections ── */
.section {
  margin-bottom: 28px;
}
.section h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.section p {
  color: #374151;
  margin-bottom: 6px;
}
.section ul {
  list-style: none;
  padding: 0;
  margin-top: 6px;
}
.section ul li {
  padding: 5px 0 5px 18px;
  position: relative;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}
.section ul li:last-child {
  border-bottom: none;
}
.section ul li::before {
  content: '·';
  position: absolute;
  left: 6px;
  color: var(--brand);
  font-weight: 700;
}

/* ── Company info card ── */
.company-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 8px;
}
.company-card ul {
  margin: 0;
}
.company-card li {
  border-bottom-color: var(--bg) !important;
  font-size: 14px;
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 40px 24px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.site-footer a {
  color: var(--brand);
  text-decoration: none;
}

/* ── Index page ── */
.index-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.index-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  text-decoration: none;
  color: var(--text);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.index-card:hover {
  border-color: var(--brand);
  box-shadow: 0 2px 12px rgba(232, 80, 58, 0.1);
}
.index-card h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.index-card p {
  font-size: 13px;
  color: var(--muted);
}
.index-card .arrow {
  float: right;
  color: var(--brand);
  font-size: 18px;
}

@media (max-width: 480px) {
  .page-wrap {
    padding: 24px 16px 60px;
  }
  .doc-header h1 {
    font-size: 18px;
  }
}
