/* Gem Sudoku public pages. Colors come from the app: the stone skin's lilac paper, indigo ink, and ruby for the one accent. */
:root{
  --page:#EEEAF6;
  --board:#FFFFFF;
  --ink:#221C3B;
  --muted:#5F5A78;
  --line:#CFC8E3;
  --tint:#E2DBF3;
  --ruby:#B8123A;
  --round:ui-rounded,"SF Pro Rounded","Hiragino Maru Gothic ProN","Apple SD Gothic Neo","Nunito",system-ui,sans-serif;
  --body:system-ui,-apple-system,"Apple SD Gothic Neo","Noto Sans KR","Segoe UI",Roboto,sans-serif;
  color-scheme:light dark;
}
@media (prefers-color-scheme:dark){
  :root{
    --page:#17132B;
    --board:#221C3B;
    --ink:#EFECF9;
    --muted:#B4AECF;
    --line:#3D3564;
    --tint:#2C2550;
    --ruby:#FF8FA8;
  }
}
*{box-sizing:border-box}
html{background:var(--page);-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;color:var(--ink);font:17px/1.7 var(--body)}
a{color:var(--ruby);text-underline-offset:.18em;text-decoration-thickness:.06em}
a:focus-visible,summary:focus-visible{outline:3px solid var(--ruby);outline-offset:3px;border-radius:4px}
.skip{position:absolute;left:-999px;top:8px;background:var(--board);padding:8px 12px;border-radius:8px}
.skip:focus{left:8px}

.top,main,footer{width:min(44rem,100%);margin:0 auto;padding-left:22px;padding-right:22px}
.home .top,.home main,.home footer{width:min(64rem,100%)}

/* header */
.top{display:flex;flex-wrap:wrap;align-items:center;gap:6px 22px;padding-top:20px;padding-bottom:6px}
.brand{display:inline-flex;align-items:center;gap:9px;margin-right:auto;font:800 1.12rem/1 var(--round);color:var(--ink);text-decoration:none}
.brand svg{width:26px;height:26px;flex:none}
.top nav{display:flex;gap:18px}
.top nav a,.lang{font-size:.94rem;color:var(--ink);text-decoration:none;padding:6px 0}
.top nav a:hover,.lang:hover{text-decoration:underline}
.top nav a[aria-current="page"]{font-weight:700;text-decoration:underline;text-decoration-color:var(--ruby);text-decoration-thickness:.14em}
.lang{padding-left:18px;border-left:1px solid var(--line)}

/* type */
h1{font:800 clamp(2.1rem,7.2vw,3.4rem)/1.08 var(--round);letter-spacing:-.012em;margin:2.2rem 0 .8rem}
h2{font:700 1.38rem/1.3 var(--round);margin:2.7rem 0 .55rem;scroll-margin-top:16px}
h3{font:700 1.1rem/1.4 var(--round);margin:1.9rem 0 .3rem;scroll-margin-top:16px}
p,ul{margin:.6rem 0}
main ul{padding-left:1.2rem}
main li+li{margin-top:.5rem}
.effective{color:var(--muted);font-size:.95rem;margin-top:0}
.contact-line{font-size:1.1rem}

/* the list of sections on long pages: drawn like one row of a sudoku box */
.toc{margin:1.6rem 0 0;border-top:2px solid var(--ink);border-bottom:1px solid var(--line)}
.toc ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr}
.toc li{margin:0;border-bottom:1px solid var(--line)}
.toc li:nth-child(odd){border-right:1px solid var(--line)}
.toc li:nth-last-child(-n+2):nth-child(odd),.toc li:last-child{border-bottom:0}
.toc a{display:block;padding:9px 12px;color:var(--ink);text-decoration:none;font-size:.95rem;line-height:1.4}
.toc li:nth-child(odd) a{padding-left:0}
.toc a:hover{background:var(--tint)}

/* data table on the privacy page */
.scroll{margin:1rem 0}
table{width:100%;border-collapse:collapse;font-size:.94rem;line-height:1.55;background:var(--board);border:2px solid var(--ink)}
th,td{border:1px solid var(--line);padding:10px 12px;text-align:left;vertical-align:top}
th{font:700 .9rem/1.3 var(--round);background:var(--tint)}
td:first-child{width:46%}

/* home */
.hero{display:grid;gap:26px 48px;align-items:center;margin-top:1.4rem}
.hero h1{margin-top:.6rem}
.hero .lede{font-size:1.2rem;line-height:1.6;max-width:26rem;margin:0}
.hero .store{margin-top:1.3rem;font-weight:700}
.boardwrap{justify-self:center;width:min(100%,430px)}
.boardwrap svg{display:block;width:100%;height:auto;filter:drop-shadow(0 14px 24px rgba(34,28,59,.16))}
.digit{font:700 25px var(--round);fill:var(--ink)}
.digit.entered{fill:var(--ruby)}
.pages{list-style:none;margin:3.2rem 0 0;padding:0;border-top:2px solid var(--ink)}
.pages li{margin:0;border-bottom:1px solid var(--line)}
.pages a{display:grid;gap:2px 28px;padding:16px 0;color:var(--ink);text-decoration:none}
.pages a:hover strong{text-decoration:underline;text-decoration-color:var(--ruby)}
.pages strong{font:700 1.18rem/1.3 var(--round)}
.pages span{color:var(--muted)}

/* footer */
footer{margin-top:4rem;padding-bottom:44px;font-size:.88rem;color:var(--muted)}
footer dl{display:grid;grid-template-columns:max-content 1fr;gap:3px 14px;margin:0 0 12px;padding-top:18px;border-top:1px solid var(--line)}
footer dt{font-weight:600}
footer dd{margin:0}
footer a{color:inherit}
footer p{margin:0}

.pending{background:#FFE08A;color:#3A2A00;padding:0 .25em;border-radius:3px}

@media (min-width:48rem){
  .hero{grid-template-columns:minmax(0,1fr) minmax(0,430px);margin-top:3rem}
  .pages a{grid-template-columns:14rem 1fr;align-items:baseline}
}
@media (max-width:34rem){
  .top nav{order:3;width:100%;gap:20px;border-top:1px solid var(--line);padding-top:2px}
  .toc ul{grid-template-columns:1fr}
  .toc li:nth-child(odd){border-right:0}
  .toc li:nth-last-child(2):nth-child(odd){border-bottom:1px solid var(--line)}
  .toc a,.toc li:nth-child(odd) a{padding-left:0}
  /* stack the data table: one block per row, each cell labelled */
  table,tbody,tr,td{display:block;width:auto}
  table{border-width:2px 0 0;background:none}
  tr:first-child{display:none}
  tr{border-bottom:1px solid var(--line);padding:10px 0}
  td{border:0;padding:3px 0}
  td:first-child{width:auto}
  td::before{display:block;font:700 .82rem/1.4 var(--round);color:var(--muted)}
  td:nth-child(1)::before{content:"Data"}
  td:nth-child(2)::before{content:"Service"}
  td:nth-child(3)::before{content:"Purpose"}
  :lang(ko) td:nth-child(1)::before{content:"항목"}
  :lang(ko) td:nth-child(2)::before{content:"서비스"}
  :lang(ko) td:nth-child(3)::before{content:"목적"}
}
@media print{
  .top nav,.lang,.toc,.skip{display:none}
  html{background:#fff}
}
