/* privacy.html, terms.html, apply.html: plain readable pages, light and dark */
:root { --bg: #F6F7F7; --surface: #FFFFFF; --ink: #1B2126; --ink-2: #4A545C; --line: #DDE1E4; --accent: #2A44B0; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --bg: #101417; --surface: #171C20; --ink: #E7EBEE; --ink-2: #A9B3BA; --line: #2B3339; --accent: #8EA2F0; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.7 "IBM Plex Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; word-break: keep-all; }
main { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
header a { color: var(--accent); }
h1 { font-size: 24px; margin: 0; }
h2 { font-size: 17px; margin: 32px 0 8px; }
p, li { color: var(--ink); }
.muted { color: var(--ink-2); font-size: 13.5px; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; background: var(--surface); font-size: 14px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: color-mix(in srgb, var(--surface) 80%, var(--line)); font-weight: 600; }
.wrap { overflow-x: auto; }
footer { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }
a { color: var(--accent); }

/* apply.html: 연구실 이용 신청 form */
.apply [hidden] { display: none !important; }
.apply .facts { margin: 4px 0 20px; }
.apply form { display: flex; flex-direction: column; gap: 18px; }
.apply fieldset { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 14px 16px 16px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.apply legend { font-weight: 600; padding: 0 6px; }
.apply .field { display: flex; flex-direction: column; gap: 5px; }
.apply .field > label, .apply .label { font-weight: 600; font-size: 14px; }
.apply .opt { font-weight: 400; color: var(--ink-2); font-size: 12.5px; margin-left: 4px; }
.apply .hint { margin: 0; color: var(--ink-2); font-size: 13px; }
.apply input:not([type=radio]):not([type=checkbox]), .apply select, .apply textarea {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; min-height: 42px; box-sizing: border-box; width: 100%;
}
.apply textarea { resize: vertical; }
.apply input:focus-visible, .apply select:focus-visible, .apply textarea:focus-visible, .apply button:focus-visible, .apply .chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.apply .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.apply .chips label { position: relative; }
.apply .chips input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.apply .chips span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; background: var(--bg); cursor: pointer; font-size: 14px; }
.apply .chips input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); font-weight: 600; }
.apply .consent { display: flex; flex-direction: column; gap: 4px; }
.apply .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.apply .check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--accent); }
.apply details { margin-left: 26px; color: var(--ink-2); font-size: 13.5px; }
.apply details ul { padding-left: 18px; margin: 6px 0 0; }
.apply fieldset.optional { background: transparent; border-style: dashed; }
.apply .more { align-self: flex-start; font: inherit; font-size: 14px; color: var(--accent); background: none; border: 0; padding: 6px 0; min-height: 36px; cursor: pointer; }
.apply .more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.apply .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.apply .msg { margin: 0; padding: 9px 12px; border-radius: 8px; background: color-mix(in srgb, #C2410C 12%, var(--surface)); color: var(--ink); font-size: 14px; }
.apply button[type=submit] { font: inherit; font-weight: 600; color: #fff; background: var(--accent); border: 0; border-radius: 10px; padding: 12px; min-height: 46px; cursor: pointer; }
.apply button[type=submit]:disabled { opacity: .6; cursor: default; }
@media (prefers-color-scheme: dark) { .apply button[type=submit] { color: #0B1020; } }
#done h2 { margin-top: 8px; }

/* logo + name above the apply page title (same mark as pymbio.com) */
.apply .brand { display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 20px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.apply .brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
