/* ===========================================================
   JSK Counsel — legal pages (disclaimer.html, disclaimer-ko.html)
   Requires assets/tokens.css first.
   =========================================================== */

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

body{
  margin:0;
  background:var(--paper);
  color:var(--body-ink);
  font-family:var(--font-body);
  font-size:var(--body-size);
  line-height:var(--body-lh);
  letter-spacing:var(--body-ls);
  -webkit-font-smoothing:antialiased;
  word-break:keep-all;
  overflow-wrap:break-word;
}

img{max-width:100%;height:auto;}
a{color:inherit;}

a:focus-visible,button:focus-visible{
  outline:var(--focus);
  outline-offset:var(--focus-offset);
  border-radius:1px;
}

.skip-link{
  position:absolute;left:-10000px;top:0;
  font-family:var(--font-ui);font-size:13px;
  background:var(--ink);color:var(--white);
  padding:12px 18px;z-index:200;text-decoration:none;
}
.skip-link:focus{left:8px;top:8px;}

/* ---- header: ONE shared rule serving both languages ----
   v10 gave .brand display:flex inline on the English page only,
   so the Korean header stacked. This fixes both at once.       */
header{
  position:sticky;top:0;z-index:100;
  background:rgba(246,244,238,0.94);
  backdrop-filter:saturate(140%) blur(8px);
  border-bottom:1px solid var(--rule);
}

.brand{
  max-width:860px;
  margin:0 auto;
  padding:16px var(--wrap-pad);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.brand > a,.brand .home{display:flex;align-items:center;flex:0 0 auto;}
/* right-hand controls group (was an inline flex style) */
.brand > div{display:flex;align-items:center;gap:20px;}

.logo-full{height:48px;width:auto;display:block;}
.logo-mark{height:38px;width:auto;display:none;}

.return-link{
  font-family:'IBM Plex Mono', monospace;
  font-size:16px;
  font-weight:500;
  letter-spacing:0.04em;
  text-transform:uppercase;
  text-decoration:none;
  color:var(--ink);
  display:inline-flex;align-items:center;
  min-height:var(--tap);
  transition:color .2s ease, text-shadow .2s ease;
}
html[lang="ko"] .return-link{ font-family:'IBM Plex Mono', 'Noto Sans KR', sans-serif; }
.return-link:hover,
.return-link:focus-visible{
  color:var(--brass);
  text-decoration:underline;
  text-decoration-color:var(--brass);
  text-underline-offset:3px;
  text-shadow:0 0 3px rgba(185,154,92,0.45), 0 0 7px rgba(185,154,92,0.18);
}

.lang-switch{
  display:flex;align-items:center;
  font-family:'IBM Plex Mono', monospace;
  font-size:16px;
  font-weight:500;
  letter-spacing:0.04em;
  color:var(--muted);
}
html[lang="ko"] .lang-switch{ font-family:'IBM Plex Mono', 'Noto Sans KR', sans-serif; }
.lang-switch a{
  text-decoration:none;padding:6px 5px;
  display:inline-flex;align-items:center;
  min-height:var(--tap);
  transition:color .2s ease, text-shadow .2s ease;
}
.lang-switch a.active{
  color:var(--ink);
  text-decoration:underline;
  text-decoration-color:var(--brass);
  text-underline-offset:3px;
}
.lang-switch a:not(.active):hover,
.lang-switch a:not(.active):focus-visible{
  color:var(--brass);
  text-decoration:underline;
  text-decoration-color:var(--brass);
  text-underline-offset:3px;
  text-shadow:0 0 3px rgba(185,154,92,0.45), 0 0 7px rgba(185,154,92,0.18);
}
.lang-switch span{margin:0 2px;color:var(--rule);}

/* ---- body ---- */
main{
  max-width:860px;
  margin:0 auto;
  padding:clamp(48px,6vw,72px) var(--wrap-pad) clamp(56px,6vw,80px);
}

.eyebrow{
  font-family:var(--font-ui);
  font-size:16px;
  font-weight:500;
  letter-spacing:0.10em;
  text-transform:uppercase;
  color:var(--label);
  margin-bottom:14px;
}
/* Korean keeps restrained tracking; wide English uppercase spacing
   is inappropriate for Hangul. */
html[lang="ko"] .eyebrow{ letter-spacing:0.025em; }

main h1{
  font-family:var(--font-display);
  font-size:clamp(30px,3.6vw,42px);
  font-weight:var(--h1-weight);
  line-height:var(--title-lh);
  letter-spacing:var(--title-ls);
  color:var(--ink);
  margin:0 0 20px;
  word-break:keep-all;
}

.intro{
  font-size:calc(var(--body-size) + 1px);
  line-height:var(--body-lh);
  color:var(--body-ink);
  margin:0 0 12px;
}

.meta{
  font-family:var(--font-ui);
  font-size:var(--t-micro);
  letter-spacing:var(--ls-ui);
  text-transform:uppercase;
  color:var(--muted);
  padding-bottom:30px;
  border-bottom:1px solid var(--rule);
}

main h2{
  font-family:var(--font-display);
  font-size:var(--title-size);
  font-weight:var(--title-weight);
  line-height:var(--title-lh);
  letter-spacing:var(--title-ls);
  color:var(--ink);
  margin:clamp(44px,4.5vw,58px) 0 20px;
  scroll-margin-top:calc(var(--header-h) + 12px);
  word-break:keep-all;
}

main h3{
  font-family:var(--font-display);
  font-size:calc(var(--body-size) + 3px);
  font-weight:var(--sub-weight);
  line-height:var(--sub-lh);
  color:var(--ink);
  margin:30px 0 10px;
  word-break:keep-all;
}

main p{
  margin:0 0 var(--para-gap);
  line-height:var(--body-lh);
  color:var(--body-ink);
}

main a{text-decoration:underline;text-underline-offset:3px;color:var(--label);}
main a:hover{color:var(--ink);}

footer{
  background:var(--ink);
  border-top:1px solid rgba(255,255,255,0.12);
  padding:28px var(--wrap-pad);
  font-family:var(--font-ui);
  font-size:var(--t-footer);
  letter-spacing:var(--ls-ui);
  text-transform:uppercase;
  color:rgba(255,253,248,0.78);
  text-align:center;
}
footer a{
  color:rgba(255,253,248,0.9);
  text-decoration:underline;
  text-underline-offset:3px;
  display:inline-flex;align-items:center;
  min-height:var(--tap);
}
footer a:hover{color:var(--white);}

@media (max-width:900px){
  .logo-full{height:42px;}
}

/* keep the language switch; drop only the return link when tight */
@media (max-width:560px){
  .return-link{display:none;}
}

@media (max-width:520px){
  .logo-full{display:none;}
  .logo-mark{display:block;}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
}
