/*
 * Nolleo 법적 문서 진입(허브) 페이지와 404 페이지 스타일.
 * legal/index.html(영어), legal/kr/index.html, legal/jp/index.html, legal/404.html 이 쓴다.
 * 구조는 Picks legal 의 hub.css 를 따르고 색은 Nolleo 팔레트다.
 */

:root {
  --accent: #b5500e;
  --accent-2: #e0893c;
  --sky: #7cc4ea; /* 앱 아이콘 바탕 하늘색 */
  --accent-weak: #fdf1e7;
  --accent-border: #f2d2b6;
  --text: #3a3530;
  --heading: #1f1d1a;
  --muted: #625c55;
  --border: #e6e1d9;
  --border-strong: #d4ccc0;
  --surface: #ffffff;
  --bg: #f8f6f2;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(31, 29, 26, 0.1);
  --maxw: 560px;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Segoe UI", "Noto Sans KR", "Hiragino Sans", "Yu Gothic",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand-logo {
  display: block;
  height: 32px;
  width: auto;
  image-rendering: pixelated;
  flex-shrink: 0;
}
/* 언어 바꾸기 (style.css와 같다). 지금 언어(aria-current)는 링크가 아니다 */
.lang-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
  font-size: 13px;
  line-height: 1.4;
}
.lang-switch > * {
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.lang-switch a {
  color: var(--muted);
  text-decoration: none;
}
.lang-switch a:hover {
  background: var(--accent-weak);
  color: var(--accent);
}
.lang-switch a:focus-visible {
  outline: 3px solid rgba(181, 80, 14, 0.35);
  outline-offset: 2px;
}
.lang-switch [aria-current] {
  background: var(--accent-weak);
  color: var(--accent);
  font-weight: 600;
}

.hub {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 20px 32px;
}
.hub-head {
  margin: 0 0 28px;
}
.hub-title {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.hub-sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cards {
  display: grid;
  gap: 14px;
}
.card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease,
    background 0.15s ease;
}
.card:hover {
  background: #fffaf5;
  border-color: var(--accent-border);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(181, 80, 14, 0.2);
}
.card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #ffffff;
}
.card-icon svg {
  width: 24px;
  height: 24px;
}
.card-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
  margin: 0 0 2px;
}
.card-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.card-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--border-strong);
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}
.card:hover .card-chevron {
  color: var(--accent);
  transform: translateX(2px);
}

.footer-note {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: 24px 20px 36px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .hub {
    padding: 36px 18px 24px;
  }
  .topbar-inner {
    padding: 12px 16px;
  }
  .lang-switch {
    font-size: 12px;
  }
  .lang-switch > * {
    padding: 4px 7px;
  }
  .hub-title {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    /* biome-ignore lint/complexity/noImportantStyles: 동작 줄이기 설정은 모든 전환을 끈다 */
    transition: none !important;
  }
}

/* ── 404 (legal/404.html 전용) ─────────────────────────────── */
.err {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px;
}
.err-code {
  margin: 0;
  font-size: 72px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.err-title {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin: 8px 0 6px;
}
.err-sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 600px) {
  .err-code {
    font-size: 60px;
  }
  .err-title {
    font-size: 20px;
  }
}
