/* ─── Legal Pages — Common Styles ─────────────────────────────── */
/* Design tokens inherited from landing pages                      */

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

:root {
  --navy: #1E2E4A;
  --navy-light: #2C4470;
  --accent: #E8913A;
  --accent-hover: #D4802C;
  --bg-white: #FFFFFF;
  --bg-gray: #F7F8FA;
  --text-body: #444C5C;
  --text-muted: #7A8499;
  --border: #E4E8EF;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.24s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Legal Header ────────────────────────────────────────────── */
.legal-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.legal-header .container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-header-logo {
  height: 40px;
  width: auto;
}

.legal-header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.legal-header-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.legal-header-nav a:hover {
  color: var(--navy);
}

.legal-header-nav .lang-sep {
  color: var(--border);
  font-size: 12px;
}

/* ─── Legal Content ───────────────────────────────────────────── */
.legal-content {
  padding: 56px 0 80px;
}

.legal-content .container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-content h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 48px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 28px;
  margin-bottom: 8px;
}

.legal-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

.legal-content th {
  background: var(--bg-gray);
  font-weight: 600;
  color: var(--navy);
}

.legal-placeholder {
  background: var(--bg-gray);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

/* ─── Table of Contents ───────────────────────────────────────── */
.legal-toc {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 40px;
}

.legal-toc-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-toc ol {
  padding-left: 20px;
  margin-bottom: 0;
}

.legal-toc li {
  margin-bottom: 4px;
  font-size: 14px;
}

.legal-toc a {
  color: var(--text-body);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--accent);
}

/* ─── Footer (simplified) ─────────────────────────────────────── */
.footer {
  background: #111926;
  padding: 32px 0;
}

.footer .container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  height: 40px;
  opacity: 0.7;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-copy a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.footer-links {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-links a:hover { color: rgba(255,255,255,0.9); }
.footer-links a.footer-highlight { color: rgba(255,255,255,0.9); font-weight: 700; }
.footer-links a.footer-highlight:hover { color: #fff; }
.footer-sep { color: rgba(255,255,255,0.35); font-size: 14px; }
.footer-business { margin-top: 16px; }
.footer-business p { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.8; margin: 0; }
.footer-business a { color: rgba(255,255,255,0.65); text-decoration: underline; }

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 767px) {
  .legal-content h1 { font-size: 24px; }
  .legal-content h2 { font-size: 18px; margin-top: 36px; }
  .legal-content { padding: 40px 0 60px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .legal-header .container { flex-direction: column; gap: 12px; align-items: flex-start; }
  .legal-content .container { padding: 0 16px; }
  .legal-content h1 { font-size: 22px; }
}
