/* 루프 — 먹색 바탕에 인주색 하나. 그림과 글이 주인공이고 장식은 두지 않는다. */
:root {
  color-scheme: dark;
  --bg: #111110; --bg2: #171716; --panel: #1c1c1a; --panel2: #272725; --ink: #ecebe7; --muted: #9b9a94; --line: #2f2f2c;
  --accent: #ff6a45; --accent-ink: #1b0e09; --user: #3b241b; --bot: #1c1c1a;
  --danger: #ff6b6b; --ok: #5cc98f; --adult: #d43d3d;
  --r-s: 8px; --r: 12px; --r-l: 16px;
  --side: 224px;
}
@media (prefers-color-scheme: light) {
  :root { color-scheme: light;
    --bg: #f5f5f4; --bg2: #ededeb; --panel: #ffffff; --panel2: #efefed; --ink: #1a1a18; --muted: #66655f; --line: #dfdedb;
    --accent: #df4420; --accent-ink: #ffffff; --user: #ffe4da; --bot: #ffffff;
    --danger: #c0352b; --ok: #177a4d; --adult: #c0352b; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 Pretendard, "Pretendard Variable", -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; word-break: keep-all; }
body { min-height: 100dvh; }
a { color: inherit; text-decoration: none; }
p a, .muted a, td a { color: var(--accent); }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); }
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.ic.fill { fill: currentColor; }

/* ---------- 틀: 넓은 화면은 왼쪽 메뉴, 휴대폰은 아래 탭 ---------- */
.top { display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; flex: none; }
.brand::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 5px solid var(--accent); }
nav a { position: relative; display: flex; align-items: center; gap: 11px; color: var(--muted); white-space: nowrap; transition: color .15s, background .15s; }
nav a svg { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
nav a.on { color: var(--ink); }
nav a .dot { position: absolute; top: 7px; left: 25px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: var(--accent-ink);
  font: 700 10px/16px system-ui, sans-serif; text-align: center; font-style: normal; }
main { max-width: 1040px; margin: 0 auto; padding: 28px 28px 48px; }

@media (min-width: 900px) {
  body { padding-left: var(--side); }
  .top { position: fixed; inset: 0 auto 0 0; width: var(--side); flex-direction: column; align-items: stretch; gap: 26px;
    padding: 24px 12px; background: var(--bg); border-right: 1px solid var(--line); z-index: 5; }
  .brand { padding: 0 12px; }
  nav { display: flex; flex-direction: column; gap: 2px; }
  nav a { padding: 9px 12px; border-radius: var(--r-s); font-weight: 600; }
  nav a:hover { color: var(--ink); }
  nav a.on { background: var(--panel2); }
}
@media (max-width: 899px) {
  .top { position: sticky; top: 0; z-index: 5; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); background: var(--bg); }
  nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; justify-content: space-around;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
  nav a { flex-direction: column; gap: 2px; font-size: 11px; padding: 4px 4px; min-width: 46px; max-width: 86px; }
  nav a .t { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  nav a .dot { top: 0; left: 50%; margin-left: 4px; }
  main { padding: 12px 16px 96px; }
  body.in-chat .top, body.in-chat nav { display: none; }
  body.in-chat main { padding: 0; }
  input, textarea, select { font-size: 16px; } /* iOS 확대 방지 */
}

/* ---------- 공통 ---------- */
h1 { font-size: 22px; line-height: 1.3; letter-spacing: -.02em; margin: 0 0 18px; text-wrap: balance; }
h2 { font-size: 16px; line-height: 1.35; margin: 36px 0 12px; letter-spacing: -.01em; }
p { margin: 0 0 12px; max-width: 68ch; }
.muted { color: var(--muted); } .small { font-size: 13px; line-height: 1.55; } .right { text-align: right; }
.hint { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 4px 0 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.stack > * + * { margin-top: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--panel);
  min-height: 40px; padding: 8px 14px; border-radius: var(--r-s); cursor: pointer; font-weight: 600; color: var(--ink); white-space: nowrap;
  transition: background .15s, border-color .15s, transform .12s; }
.btn:hover { background: var(--panel2); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); min-height: 32px; padding: 4px 9px; font-weight: 500; }
.btn.ghost:hover { color: var(--ink); background: var(--panel2); }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.live { background: var(--adult); color: #fff; border-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; margin: 0; cursor: pointer; }
label.check input { margin-top: 2px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input:not([type]), textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--bg); transition: border-color .15s; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input[type=checkbox] { width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
input[type=file] { font-size: 13px; color: var(--muted); }
textarea { resize: vertical; min-height: 80px; line-height: 1.55; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
.tag { display: inline-flex; align-items: center; font-size: 12px; line-height: 1; padding: 5px 8px; border-radius: 6px; background: var(--panel2); color: var(--muted); }
.tag.adult, .badge19 { background: var(--adult); color: #fff; font-weight: 700; }
.tabs { display: flex; gap: 20px; margin-bottom: 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 10px 0; margin-bottom: -1px; border-bottom: 2px solid transparent; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 15px; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chip { border: 1px solid var(--line); background: none; padding: 6px 11px; border-radius: 999px; cursor: pointer; color: var(--muted); font-size: 13px; white-space: nowrap; }
.chip:hover { color: var(--ink); border-color: var(--muted); }
.list > a { display: flex; gap: 12px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); transition: background .15s; }
.list > a:hover { background: var(--panel); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--panel2); flex: none;
  display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.avatar.lg { width: 72px; height: 72px; font-size: 26px; border-radius: var(--r); }
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.empty { text-align: center; padding: 56px 16px; color: var(--muted); margin: 0 auto; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }

/* ---------- 홈: 검색 한 줄 + 세로 표지 ---------- */
.search { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.search input { flex: 1; min-width: 0; height: 44px; background: var(--panel); }
.search .btn { min-height: 44px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 20px 14px; }
.cv { display: block; cursor: pointer; min-width: 0; }
.cv .art { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--panel2); }
.cv .art img, .cv .art .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease-out; }
.cv:hover .art img { transform: scale(1.03); }
.cv .ph { display: grid; place-items: center; font-size: 56px; font-weight: 800; color: rgba(255,255,255,.5); }
.cv .badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
.cv .badges span { font-size: 11px; font-weight: 700; line-height: 1; padding: 5px 7px; border-radius: 6px; background: rgba(17,17,16,.82); color: #fff; }
.cv .badges .rank { background: var(--accent); color: var(--accent-ink); }
.cv .badges .badge19 { background: var(--adult); }
.cv .nm { font-weight: 700; margin-top: 9px; letter-spacing: -.01em; }
.cv .tl { font-size: 13px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.cv .st { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 6px; }
.cv .st span { display: inline-flex; gap: 3px; align-items: center; }

/* ---------- 캐릭터 상세 ---------- */
.profile { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.profile .art { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--panel2); }
.profile .art img, .profile .art .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile .art .ph { display: grid; place-items: center; font-size: 72px; font-weight: 800; color: rgba(255,255,255,.5); }
.profile h1 { font-size: 26px; margin: 0 0 4px; }
.profile .meta { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }
.profile .meta span { display: inline-flex; gap: 4px; align-items: center; }
.quote { border-left: 2px solid var(--line); padding: 2px 0 2px 14px; white-space: pre-wrap; max-width: 62ch; }
.quote em { color: var(--muted); }
@media (max-width: 640px) { .profile { grid-template-columns: 1fr; gap: 18px; } .profile .art { max-width: 220px; } }

/* ---------- 채팅 ---------- */
.chat { display: flex; flex-direction: column; height: 100dvh; max-width: 860px; margin: -28px auto -48px; }
@media (max-width: 899px) { .chat { margin: 0; } }
.chat-head { display: flex; gap: 10px; align-items: center; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); border-bottom: 1px solid var(--line); background: var(--bg); }
.chat-head .name { font-weight: 700; letter-spacing: -.01em; }
.back { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none; }
.back:hover { background: var(--panel2); }
.msgs { flex: 1; overflow-y: auto; padding: 20px 14px; display: flex; flex-direction: column; gap: 16px; }
.mrow { display: flex; gap: 10px; align-items: flex-start; }
.mrow.user { justify-content: flex-end; }
.msg { max-width: min(78%, 620px); padding: 11px 14px; border-radius: var(--r-l); word-break: break-word; }
.msg .body { white-space: pre-wrap; }
.msg.assistant { background: var(--bot); border: 1px solid var(--line); border-top-left-radius: 4px; }
.msg.user { background: var(--user); border-top-right-radius: 4px; }
.msg em { color: var(--muted); font-style: normal; }
.msg.user em { color: color-mix(in srgb, var(--ink) 72%, transparent); }
.msg .spk { display: block; font-size: 13px; font-weight: 700; color: var(--accent); margin-top: 6px; }
.msg .body > .spk:first-child { margin-top: 0; }
.msg .scene { display: block; width: 100%; max-width: 420px; border-radius: var(--r-s); margin-top: 10px; cursor: zoom-in; }
.msg-tools { display: flex; gap: 2px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.msg-tools .btn.ghost, .msg-tools select { font-size: 12px; min-height: 26px; padding: 2px 7px; }
.msg-tools select { width: auto; border: 0; background: transparent; color: var(--muted); }
.cost { font-size: 12px; color: var(--muted); margin-left: auto; padding-left: 8px; font-variant-numeric: tabular-nums; }
.composer { border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); }
.composer textarea { min-height: 44px; max-height: 160px; border-radius: var(--r-l); padding: 10px 14px; background: var(--panel); resize: none; }
.composer #sendBtn { min-height: 44px; border-radius: var(--r-l); }
.composer .tools { display: flex; gap: 2px; align-items: center; margin-top: 6px; overflow-x: auto; scrollbar-width: none; font-size: 13px; }
.composer .tools .btn { font-size: 13px; flex: none; }
.composer #status { margin-left: auto; padding-left: 10px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.suggests { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.suggests button { font-size: 13px; text-align: left; white-space: normal; font-weight: 400; min-height: 0; padding: 8px 12px; }
.drawer { border-bottom: 1px solid var(--line); padding: 18px 16px; background: var(--bg2); max-height: 64dvh; overflow-y: auto; }
.directions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.typing:empty::after { content: "···"; color: var(--muted); letter-spacing: 2px; }
.cast { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cast .tag { gap: 4px; padding: 4px 4px 4px 9px; color: var(--ink); }
.cast .tag button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px 5px; font-size: 12px; }

/* ---------- 표·숫자 ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child > td, tr:last-child > th { border-bottom: 0; }
th { color: var(--muted); font-weight: 600; font-size: 12px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
code { background: var(--panel2); padding: 2px 6px; border-radius: 5px; font-size: 13px; }
.kpis { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--line); gap: 1px; }
.kpi { flex: 1 1 150px; padding: 16px 18px; background: var(--panel); border: 0; border-radius: 0; }
.kpi .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi .k { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.pos { color: var(--ok); } .neg { color: var(--danger); }
#toast { position: fixed; left: 50%; bottom: 92px; transform: translate(-50%, 8px); background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px;
  padding: 11px 16px; border-radius: var(--r-s); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; max-width: 90vw; z-index: 20; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.lore-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 6px; }
.noti { display: flex; gap: 12px; align-items: flex-start; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.noti .mark { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; background: transparent; }
.noti.unread .mark { background: var(--accent); }
.gal { display: flex; gap: 8px; flex-wrap: wrap; }
.gal .th { position: relative; width: 72px; height: 96px; border-radius: var(--r-s); overflow: hidden; cursor: pointer; background: var(--panel2); }
.gal .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal .th.on { outline: 2px solid var(--accent); outline-offset: 1px; }
.gal .th button { position: absolute; top: 3px; right: 3px; border: 0; border-radius: 50%; width: 22px; height: 22px; background: rgba(17,17,16,.8); color: #fff; cursor: pointer; font-size: 11px; }
@media (max-width: 600px) {
  .lore-row { grid-template-columns: 1fr auto; } .lore-row input:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px 10px; } .msg { max-width: 86%; }
}

/* ---------- 로그인 ---------- */
.auth { max-width: 380px; margin: 9dvh auto 0; }
.auth h1 { font-size: 28px; margin: 0 0 6px; }
.auth .btn.primary { width: 100%; min-height: 46px; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- 상태창 · 미션 · 기억 노트 · 검색 · 단축어 · 댓글 ---------- */
.statbox { white-space: pre-wrap; margin: 10px 0 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--bg2);
  font-size: 13px; line-height: 1.7; color: var(--muted); font-variant-numeric: tabular-nums; }
.msg .body > .statbox:first-child { margin-top: 0; }
.mission { display: flex; gap: 10px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--bg2); font-size: 13px; min-width: 0; }
.mission .lbl { flex: none; font-weight: 700; color: var(--accent); }
.mission .done { flex: none; margin-left: auto; font-weight: 700; color: var(--ok); }
.mission.static { border: 1px solid var(--line); border-radius: var(--r-s); align-items: flex-start; max-width: 62ch; }
.fold { border: 1px solid var(--line); border-radius: var(--r-s); background: var(--panel); padding: 0 14px; }
.fold > summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 14px; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted); transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
.fold[open] > summary::after { transform: rotate(-135deg); }
.fold[open] { padding-bottom: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.hits { display: flex; flex-direction: column; margin-top: 8px; max-height: 240px; overflow-y: auto; }
.hits button { text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 10px 2px; cursor: pointer; font-size: 13px; line-height: 1.55; color: var(--ink); }
.hits button:hover { color: var(--accent); }
.hits .who { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.msg.flash { outline: 2px solid var(--accent); outline-offset: 2px; }
.sc-pop { display: flex; flex-direction: column; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; max-height: 200px; overflow-y: auto; }
.sc-pop button { display: flex; gap: 10px; align-items: baseline; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; cursor: pointer; font-size: 14px; min-width: 0; }
.sc-pop button:last-child { border-bottom: 0; }
.sc-pop button:hover, .sc-pop button:first-child { background: var(--panel2); }
.sc-pop b { flex: none; color: var(--accent); font-weight: 600; }
.sc-pop span { color: var(--muted); min-width: 0; }
.btn.sm { min-height: 0; padding: 5px 12px; font-size: 13px; }
.by { display: flex; gap: 10px; align-items: center; margin-top: 10px; font-size: 14px; }
.by > span:first-child { font-weight: 600; }
.by .muted { font-size: 13px; }
.comments { max-width: 680px; }
.cm { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cm-top { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.cm-top .btn { margin-left: auto; }
.cm .txt { white-space: pre-wrap; margin-top: 4px; word-break: break-word; }
.card.draft { padding: 16px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- 잠금 이미지 · 체험 채팅 ---------- */
.gal a.th { display: block; }
.gal .th.locked { display: grid; place-items: center; cursor: default; color: var(--muted); border: 1px dashed var(--line); background: var(--bg2); font-size: 20px; }
.lock-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 8px; align-items: center; }
.lock-row img { width: 48px; height: 64px; object-fit: cover; border-radius: var(--r-s); background: var(--panel2); }
#trialBox { margin-top: 28px; }
#trialBox h2 { font-size: 15px; margin: 0 0 4px; }
.trial-end { margin: 18px auto 6px; padding: 18px; max-width: 420px; text-align: center; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.trial-end p { margin: 0 0 12px; }

/* 소셜 로그인 */
.social { display: grid; gap: 8px; }
.social .or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 4px 0; }
.social .or::before, .social .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sbtn { width: 100%; min-height: 46px; font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.sbtn.kakao { background: #fee500; border-color: #fee500; color: #191919; }
.sbtn.google { background: #fff; border-color: #dadce0; color: #1f1f1f; }
.links { display: grid; gap: 8px; max-width: 680px; margin-bottom: 16px; }
.links:empty { display: none; }
.legal { text-align: center; margin-top: 24px; }
.legal a { color: inherit; }
