@font-face {
  font-family:Gowun;
  src:url('/assets/GowunDodum-Regular.ttf') format('truetype');
  font-display:swap;
  font-weight:400
}

:root {
  --paper:#f6efe5;
  --card:#fffdf9;
  --ink:#493c37;
  --brown:#74574b;
  --muted:#74675f;
  --line:#e9ded3;
  --pink:#fce9e6;
  --green:#eef2e6;
  --blue:#eaf0f7;
  --gold:#fff0d8;
  --lilac:#f0ebf4;
  --radius:24px
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:32px
}

body {
  margin:0;
  color:var(--ink);
  background:var(--paper);
  font:17px/1.85 Gowun,system-ui,sans-serif;
  -webkit-text-size-adjust:100%;
  overflow-wrap:anywhere
}

a {
  color:var(--brown);
  text-underline-offset:5px
}

a:hover {
  text-decoration-thickness:2px
}

a:focus-visible,summary:focus-visible,button:focus-visible,input:focus-visible {
  outline:3px solid var(--brown);
  outline-offset:5px
}

h1,h2,h3,p {
  margin-top:0
}

h1,h2,h3 {
  font-weight:400;
  line-height:1.45;
  word-break:keep-all
}

h1 {
  font-size:clamp(30px,4vw,44px);
  letter-spacing:-1.2px;
  margin-bottom:20px
}

h2 {
  font-size:23px
}

p {
  margin-bottom:20px
}

header.site-header {
  max-width:1120px;
  margin:auto;
  padding:26px 32px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  border-bottom:1px solid var(--line)
}

.brand {
  display:flex;
  align-items:center;
  gap:11px;
  text-decoration:none;
  color:var(--ink)
}

.brand-logo {
  display:block;
  position:relative;
  overflow:hidden;
  flex-shrink:0;
}

.brand-logo img {
  position:absolute;
  display:block;
  height:auto;
  max-width:none;
}

.brand-logo-ko {
  width:94px;
  height:57px;
}

.brand-logo-ko img {
  width:100px;
  left:-6px;
  top:-29px;
}

.brand-logo-en {
  width:138px;
  height:39px;
}

.brand-logo-en img {
  width:144px;
  left:-6px;
  top:-61px;
}


.header-home {
  font-size:14px;
  text-decoration:none;
  padding:8px 0
}

.skip {
  position:absolute;
  top:-100px;
  left:20px;
  background:var(--card);
  padding:12px;
  z-index:10
}

.skip:focus {
  top:12px
}

main {
  max-width:1120px;
  margin:auto;
  padding:0 32px
}

.eyebrow {
  font:12px/1.5 system-ui,sans-serif;
  color:var(--brown);
  letter-spacing:2.4px;
  margin-bottom:18px
}

.home-hero {
  padding:66px 0 44px;
  max-width:740px
}

.home-hero h1 {
  font-size:clamp(34px,5vw,52px);
  margin-bottom:20px
}

.home-hero p:last-child {
  max-width:600px;
  color:var(--muted);
  font-size:18px;
  margin-bottom:0
}

.notice {
  font-size:14px;
  color:#765f43;
  display:flex;
  align-items:flex-start;
  gap:10px;
  background:var(--gold);
  border:1px solid #ecddc4;
  padding:13px 18px;
  border-radius:14px;
  margin-bottom:28px;
  line-height:1.7
}

.notice:before {
  content:'i';
  font:14px/22px system-ui;
  text-align:center;
  border:1px solid currentColor;
  border-radius:50%;
  flex:0 0 22px;
  margin-top:1px
}

.language-picker {
  position:relative;
  z-index:3;
  flex-shrink:0;
  font-size:14px;
}

.language-picker summary {
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  min-height:46px;
  padding:9px 14px;
  border:1px solid #dfcfc0;
  border-radius:16px;
  list-style:none;
  background:#fbf7f0;
  color:var(--brown);
  transition:background .16s,border-color .16s;
}


.language-picker summary:after {
  content:'';
  width:7px;
  height:7px;
  margin:0 2px 4px 8px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:rotate(45deg);
  transition:transform .16s;
}

.language-picker summary:hover,
.language-picker[open] summary {
  background:#eee4d8;
  border-color:#baa18f;
}

.language-picker[open] summary:after {
  transform:translateY(4px) rotate(225deg);
}

.language-picker summary::-webkit-details-marker {
  display:none;
}

.language-list {
  position:absolute;
  right:0;
  top:calc(100% + 12px);
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:5px;
  width:320px;
  max-width:calc(100vw - 40px);
  max-height:70vh;
  overflow:auto;
  padding:13px;
  background:#fffdf9;
  border:1px solid #dfcfc0;
  border-radius:22px;
  box-shadow:0 12px 32px #493c3714,0 2px 6px #493c3708;
}

.language-list:before {
  content:attr(data-caption);
  grid-column:1 / -1;
  padding:4px 10px 10px;
  margin-bottom:3px;
  border-bottom:1px solid var(--line);
  color:var(--muted);
  font:10px/1.6 system-ui,sans-serif;
  letter-spacing:1.8px;
}

.language-list a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:7px;
  padding:10px 12px;
  border:1px solid transparent;
  border-radius:12px;
  color:var(--ink);
  text-decoration:none;
  min-height:46px;
  line-height:1.5;
}

.language-list a:hover {
  background:#f6efe5;
}

.language-list a[aria-current] {
  background:#eee4d8;
  border-color:#e2d3c3;
  color:#60483c;
}

.language-list a[aria-current]:after {
  content:'✓';
  font:14px/1 system-ui,sans-serif;
  flex-shrink:0;
}

.section-label {
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  margin:22px 0 20px
}

.section-label h2 {
  font-size:20px;
  margin:0
}

.section-label span {
  font-size:13px;
  color:var(--muted)
}

.card-grid {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:18px
}

.document-card {
  grid-column:span 2;
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  grid-template-rows:auto 1fr auto;
  column-gap:16px;
  align-items:start;
  padding:27px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--card);
  text-decoration:none;
  color:var(--ink);
  min-height:200px;
  transition:transform .18s,border-color .18s
}

.document-card:nth-child(-n+2) {
  grid-column:span 3
}

.document-card:hover {
  transform:translateY(-3px);
  border-color:#c5aca0
}

.card-icon {
  display:grid;
  place-items:center start;
  width:46px;
  height:46px;
  border-radius:16px;
  margin-bottom:0;
  grid-column:1;
  grid-row:1;
  font:23px/1 system-ui;
  color:var(--brown)
}

.card-icon svg {
  display:block;
  width:25px;
  height:25px;
}





.document-card h3 {
  grid-column:2;
  grid-row:1;
  align-self:center;
  font-size:23px;
  margin-bottom:0
}

.document-card p {
  grid-column:1 / -1;
  grid-row:2;
  margin-top:14px;
  font-size:15px;
  line-height:1.75;
  color:var(--muted);
  margin-bottom:24px
}

.card-link {
  grid-column:1 / -1;
  grid-row:3;
  align-self:end;
  display:flex;
  justify-content:space-between;
  font-size:14px;
  margin-top:auto
}

.support-strip {
  margin:30px 0 0;
  padding:26px 28px;
  border-radius:20px;
  background:#eee5d9;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px
}

.support-strip h2 {
  font-size:19px;
  margin-bottom:4px
}

.support-strip p {
  font-size:14px;
  color:var(--muted);
  margin:0
}

.support-strip a {
  font-size:15px
}

.breadcrumb {
  margin:26px 0;
  font-size:14px;
  color:var(--muted)
}

.breadcrumb a {
  text-decoration:none
}

.document-layout {
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:42px;
  align-items:start;
  margin:36px 0 0
}

.sidebar {
  min-width:0;
  position:sticky;
  top:24px;
  font-size:14px
}

.sidebar h2 {
  font-size:13px;
  color:var(--muted);
  margin-bottom:16px
}

.sidebar nav {
  display:flex;
  flex-direction:column;
  gap:5px
}

.sidebar a {
  display:block;
  text-decoration:none;
  padding:10px 13px;
  border-radius:12px;
  line-height:1.6
}

.sidebar a[aria-current] {
  background:#e9ded3;
  color:var(--ink)
}

.sidebar a:hover {
  background:#eee5db
}

.sidebar .side-help {
  border-top:1px solid var(--line);
  margin-top:24px;
  padding-top:20px;
  color:var(--muted);
  font-size:13px
}

.document {
  background:var(--card);
  border:1px solid var(--line);
  border-radius:28px;
  padding:44px 46px;
  min-width:0
}

.document .eyebrow {
  margin-bottom:13px
}

.document h1 {
  font-size:clamp(28px,3vw,36px);
  margin-bottom:16px
}

.meta {
  font-size:13px;
  color:var(--muted);
  line-height:1.8;
  margin-bottom:26px
}

.meta code {
  font-size:12px;
  overflow-wrap:anywhere
}

.intro {
  font-size:17px;
  color:var(--muted);
  line-height:1.95
}

.toc {
  margin:32px 0;
  padding:19px 23px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#faf6ef;
  font-size:15px
}

.toc summary {
  cursor:pointer;
  min-height:32px
}

.toc ol {
  padding-left:22px;
  margin:16px 0 4px
}

.toc li {
  margin:8px 0;
  line-height:1.6
}

.toc a {
  text-decoration:none
}

.policy-section {
  padding-top:30px;
  margin-top:30px;
  border-top:1px solid var(--line);
  scroll-margin-top:25px
}

.policy-section h2 {
  font-size:21px;
  margin-bottom:19px
}

.policy-text {
  white-space:pre-wrap;
  line-height:2;
  margin-bottom:0;
  word-break:normal
}

.technical {
  font-size:12px;
  color:var(--muted);
  border-top:1px solid var(--line);
  padding-top:23px;
  margin-top:40px
}

.technical summary {
  cursor:pointer;
  padding:8px 0;
  min-height:40px
}

.technical code {
  display:block;
  white-space:normal;
  overflow-wrap:anywhere;
  font:11px/1.8 ui-monospace,monospace;
  margin-top:12px
}

.actions {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:26px 0
}

.button,button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:48px;
  padding:11px 20px;
  border:1px solid var(--brown);
  border-radius:14px;
  background:var(--brown);
  color:#fffdf9;
  font:16px/1.6 Gowun,system-ui,sans-serif;
  text-decoration:none;
  cursor:pointer
}

.button.secondary,button.secondary {
  background:transparent;
  color:var(--brown);
  border-color:#d5c3b4
}

.button:hover,button:hover {
  text-decoration:none;
  background:#62483e;
  color:white
}

.contact-box {
  margin:26px 0;
  padding:22px;
  background:var(--green);
  border-radius:18px;
  font-size:15px
}

.contact-box p {
  margin-bottom:10px
}

.contact-box a {
  overflow-wrap:anywhere
}

.footer-region {
  margin-top:56px;
  background:#fff;
  border-top:1px solid var(--line);
}

.site-footer {
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  max-width:1120px;
  margin:0 auto;
  padding:38px 32px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  font-size:12px;
  color:var(--muted)
}

.site-footer p {
  margin:0
}

.site-footer a {
  text-decoration:none
}

.footer-identity {
  min-width:0;
}

.refactory-logo {
  display:block;
  position:relative;
  width:192px;
  height:27px;
  overflow:hidden;
}

.refactory-logo img {
  position:absolute;
  width:242px;
  height:auto;
  max-width:none;
  left:-25px;
  top:-111px;
  mix-blend-mode:multiply;
}

.site-footer .footer-identity p {
  margin:12px 0 0;
  font-size:12px;
  line-height:1.6;
}

.copyright {
  flex-shrink:0;
  font:12px/1.6 system-ui,sans-serif;
}

.portal {
  max-width:720px;
  margin:45px auto
}

.portal .document {
  padding:36px
}

.portal label {
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:18px;
  background:var(--paper);
  border-radius:14px
}

.portal input[type=checkbox] {
  flex:0 0 20px;
  width:20px;
  height:20px;
  margin-top:6px;
  accent-color:var(--brown)
}

.portal #google {
  margin:24px 0
}

.portal #status:not(:empty) {
  background:var(--gold);
  padding:16px;
  border-radius:12px
}

.portal .portal-links {
  font-size:14px;
  border-top:1px solid var(--line);
  padding-top:22px
}

.portal form {
  margin:16px 0
}

.portal h2 {
  font-size:22px
}

@media(max-width:800px) {
  .document-layout {
    grid-template-columns:1fr;
    gap:20px;
    margin-top:22px
  }
  .sidebar {
    position:static
  }
  .sidebar h2,.side-help {
    display:none
  }
  .sidebar nav {
    flex-direction:row;
    overflow-x:auto;
    padding:3px 2px 10px;
    gap:8px
  }
  .sidebar a {
    white-space:nowrap;
    background:#eee5db;
    padding:9px 15px
  }
  .sidebar a[aria-current] {
    background:var(--brown);
    color:white
  }
  .document {
    padding:32px
  }
  .document-card {
    grid-column:span 3
  }
  .document-card:last-child {
    grid-column:span 6
  }

}

@media(max-width:540px) {
  body {
    font-size:16px
  }
  header.site-header {
    padding:19px 20px
  }
  .header-home {
    display:none
  }
  .language-picker summary {
    font-size:13px;
    padding:9px 12px
  }
  main {
    padding:0 20px
  }
  .home-hero {
    padding:40px 0 28px
  }
  .home-hero h1 {
    font-size:34px;
    letter-spacing:-.8px
  }
  .home-hero p:last-child {
    font-size:16px
  }
  .notice {
    font-size:13px;
    padding:12px 14px;
    margin-bottom:24px
  }
  .section-label {
    margin-top:28px
  }
  .section-label span {
    font-size:12px
  }
  .card-grid {
    grid-template-columns:1fr;
    gap:12px
  }
  .document-card,.document-card:nth-child(-n+2),.document-card:last-child {
    grid-column:auto;
    padding:23px;
    min-height:0;
    grid-template-columns:40px minmax(0,1fr);
    column-gap:14px;
  }
  .card-icon {
    width:40px;
    height:40px;
    font-size:21px;
    border-radius:13px;
    margin-bottom:0
  }
  .document-card h3 {
    font-size:22px
  }
  .document-card p {
    font-size:15px;
    margin-bottom:17px
  }
  .support-strip {
    align-items:flex-start;
    flex-direction:column;
    padding:23px;
    gap:14px
  }
  .document-layout {
    margin:18px -8px 0
  }
  .document {
    padding:28px 22px;
    border-radius:22px
  }
  .document h1 {
    font-size:29px
  }
  .intro {
    font-size:16px;
    line-height:1.9
  }
  .policy-text {
    font-size:16px;
    line-height:2
  }
  .policy-section h2 {
    font-size:20px
  }
  .toc {
    padding:17px;
    margin-top:25px
  }
  .actions {
    flex-direction:column
  }
  .actions .button {
    width:100%
  }
  .footer-region {
    margin-top:35px;
  }
  .site-footer {
    margin:0 auto;
    padding:28px 20px;
    align-items:flex-start;
    flex-direction:column;
    gap:10px
  }
  .portal {
    margin:24px auto
  }
  .portal .document {
    padding:26px 22px
  }
  .portal button {
    width:100%
  }
  .meta {
    font-size:12px
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  * {
    transition:none!important
  }
}

@media print {
  body {
    background:white;
    color:black;
    font:12pt/1.6 sans-serif
  }
  .site-header,.sidebar,.site-footer,.notice,.toc,.technical,.actions {
    display:none
  }
  .document-layout {
    display:block;
    margin:0
  }
  .document {
    padding:0;
    border:0
  }
  .policy-section {
    break-inside:avoid
  }
  main {
    max-width:none;
    padding:0
  }
}


/* Subscription guidance: 1.5 times the original paragraph spacing. */
.document-subscriptions > .policy-text,
.document-child-safety > .policy-text {
  margin-bottom:30px;
}

/* Social identity buttons share the app login colors, spacing and silhouette. */
@font-face {
  font-family:SUIT;
  src:url('/assets/SUIT-SemiBold.ttf') format('truetype');
  font-weight:600;
  font-display:swap;
}
.provider-buttons {
  display:flex;
  flex-direction:column;
  gap:12px;
  width:100%;
  margin:28px 0 0;
}
.deletion-content .provider-buttons form {
  margin:0;
}
.provider-button {
  position:relative;
  display:flex;
  align-items:center;
  width:100%;
  height:48px;
  min-height:48px;
  padding:0 24px;
  border-radius:999px;
  border:0;
  gap:12px;
  margin:0;
  font:600 17px/1.4 SUIT,system-ui,sans-serif;
}
.provider-button > img,.provider-button > svg {
  flex:0 0 24px;
  object-fit:contain;
}
.provider-button > span {
  flex:1;
  text-align:center;
  padding-right:24px;
}
.provider-kakao,.provider-kakao:hover {
  background:#ffe14b;
  color:#000;
}
.provider-google {
  min-height:48px;
  width:100%;
  display:flex;
  align-items:center;
}
.provider-google .provider-button,.provider-google .provider-button:hover {
  background:#fff;
  border:1px solid #000;
  color:#493c37;
}
.provider-apple,.provider-apple:hover {
  background:#282828;
  color:#fff;
}
.provider-button:disabled {
  opacity:.55;
  cursor:not-allowed;
}
.provider-button:not(:disabled):hover {
  filter:brightness(.97);
}
.deletion-content .provider-note {
  font-size:13px;
  color:var(--muted);
  margin:0;
}

/* Shared off-canvas guide navigation. Native dialog contains keyboard focus. */
.breadcrumb {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.guide-menu-toggle {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 44px;
  width:44px;
  height:44px;
  min-height:44px;
  padding:0;
  border:1px solid #dfcfc0;
  border-radius:14px;
  background:#fbf7f0;
  color:var(--brown);
}
.guide-menu-toggle:hover {
  background:#eee4d8;
  color:var(--brown);
}
.guide-drawer {
  position:fixed;
  inset:0 0 0 auto;
  width:min(350px,90vw);
  max-width:90vw;
  height:100dvh;
  max-height:100dvh;
  margin:0;
  padding:24px;
  border:0;
  border-left:1px solid var(--line);
  border-radius:26px 0 0 26px;
  background:var(--card);
  color:var(--ink);
  box-shadow:-12px 0 40px #493c3714;
  overflow-y:auto;
}
.guide-drawer[open] {
  display:flex;
  flex-direction:column;
  animation:guide-slide-in .22s ease-out;
}
.guide-drawer::backdrop {
  background:#493c3766;
}
.drawer-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:28px;
}
.drawer-heading h2 {
  font-size:22px;
  margin:0;
}
.guide-drawer nav {
  display:flex;
  flex-direction:column;
  gap:8px;
}
.guide-drawer nav a {
  padding:14px 16px;
  min-height:48px;
  border-radius:14px;
  text-decoration:none;
}
.guide-drawer nav a:hover {
  background:var(--paper);
}
.guide-drawer nav a[aria-current] {
  background:var(--brown);
  color:var(--card);
}
.drawer-help {
  margin-top:auto;
  padding-top:28px;
  border-top:1px solid var(--line);
  font-size:14px;
}
.drawer-help p {
  margin:24px 0 8px;
  color:var(--muted);
}
.guide-drawer.is-closing {
  animation:guide-slide-out .18s ease-in forwards;
}
@keyframes guide-slide-in {
  from {transform:translateX(100%)}
  to {transform:translateX(0)}
}
@keyframes guide-slide-out {
  from {transform:translateX(0)}
  to {transform:translateX(100%)}
}
@media(max-width:800px) {
  .document-layout > .sidebar {display:none}
}
@media(prefers-reduced-motion:reduce) {
  .guide-drawer[open],.guide-drawer.is-closing {animation:none}
}
@media print {
  .guide-menu-toggle,.guide-drawer {display:none!important}
}

.farewell-note {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  margin-top:40px;
  padding:28px 20px;
  background:var(--pink);
  border:1px solid #efd5ce;
  border-radius:20px;
  color:#694d43;
  text-align:center;
}
.farewell-heart {
  font:30px/1 system-ui,sans-serif;
  color:#af5a59;
}
.farewell-note p {
  margin:0;
  font-size:17px;
  line-height:1.9;
  word-break:keep-all;
}

.failure-feedback:empty {
  display:none;
}
.failure-notice {
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:20px;
  margin:24px 0;
  border:1px solid #e8c6bc;
  border-radius:18px;
  background:#fcf0ed;
  color:#765046;
}
.failure-feedback:focus {
  outline:none;
}
.failure-notice-icon {
  display:grid;
  place-items:center;
  flex:0 0 38px;
  height:38px;
  border-radius:50%;
  background:#f5dfd8;
  color:#9b5c4e;
}
.failure-notice-copy {
  min-width:0;
}
.document .failure-notice-copy h2 {
  font-size:18px;
  line-height:1.6;
  margin:0 0 6px;
}
.failure-notice-copy p {
  margin:0;
  color:#80655c;
  font-size:14px;
  line-height:1.8;
}
@media(max-width:540px) {
  .failure-notice {padding:17px 15px;gap:12px}
  .document .failure-notice-copy h2 {font-size:17px}
}

.failure-notice-copy .failure-reference {
  margin-top:10px;
  font:12px/1.7 system-ui,sans-serif;
  overflow-wrap:anywhere;
}

.failure-back-button {
  width:100%;
}

.account-deletion-request-button {
  width:100%;
}

.action-icon {
  flex-shrink:0;
}

.account-deletion-request-button {
  background:#a64f4f;
  border-color:#a64f4f;
  color:#fffdf9;
}
.account-deletion-request-button:hover {
  background:#8e4141;
  border-color:#8e4141;
  color:#fffdf9;
}
