/* Legal documents (privacy, terms, KVKK). Header and footer come from site.css. */
main { max-width: calc(var(--site-max, 1320px) + 40px); margin: auto; padding: 36px 20px 40px; }
.bread { display: flex; gap: 10px; align-items: center; color: #6F6A58; font-size: 12px; font-weight: 600; }
.bread a { color: #4A463C; text-decoration: none; }
.bread a:hover { color: #16140F; text-decoration: underline; }
.article-header { max-width: 790px; padding: 44px 0 40px; }
.eyebrow { display: inline-block; color: #168B4C; font-size: 11px; letter-spacing: .14em; font-weight: 800; text-transform: uppercase; }
h1 { margin: 12px 0 0; font-size: clamp(36px, 5vw, 62px); line-height: 1.06; letter-spacing: -.05em; }

.layout { display: grid; grid-template-columns: 250px minmax(0, 880px); gap: 40px; align-items: start; }
.toc {
  position: sticky; top: 100px; z-index: 0;
  display: flex; flex-direction: column; gap: 2px;
  max-height: calc(100vh - 120px); overflow-y: auto;
  padding: 14px; border-radius: 24px;
  font-size: 12px; line-height: 1.4;
}
.toc::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border: 1px solid rgba(255, 255, 255, .8); border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .38));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 14px 34px -14px rgba(22, 20, 15, .18);
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  backdrop-filter: blur(22px) saturate(190%);
}
.toc strong { padding: 4px 10px 8px; color: #6F6A58; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.toc a { display: flex; gap: 8px; padding: 8px 10px; border-radius: 12px; color: #4A463C; font-weight: 600; text-decoration: none; transition: color .2s ease, background .2s ease, box-shadow .2s ease; }
.toc a:hover { color: #16140F; background: rgba(255, 255, 255, .8); }
.toc a.is-active { color: #16140F; background: #fff; box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(22, 20, 15, .08), 0 6px 14px -6px rgba(22, 20, 15, .18); }
.toc .num { flex: 0 0 auto; min-width: 16px; color: #8C876F; font-weight: 800; }
.toc a.is-active .num { color: #168B4C; }

.content {
  min-width: 0; padding: 44px 52px 36px;
  border: 1px solid rgba(255, 255, 255, .85); border-radius: 30px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 18px 40px -20px rgba(22, 20, 15, .16);
  color: #34312B; font-size: 15px; line-height: 1.8;
}
.content p { margin: 0 0 20px; }
.content .updated { margin-bottom: 28px; color: #6F6A58; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.content h2 { display: flex; align-items: center; gap: 12px; margin: 48px 0 14px; color: #16140F; font-size: 22px; line-height: 1.3; letter-spacing: -.03em; }
.content section:first-of-type h2 { margin-top: 8px; }
.content h2 .num {
  flex: 0 0 auto; display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 9px;
  border-radius: 11px; background: #E3F6EA; color: #168B4C; font-size: 14px; font-weight: 800; letter-spacing: 0;
}
.content h3 { margin: 30px 0 12px; color: #16140F; font-size: 17px; }
.content a { color: #147744; text-decoration-color: #A1D5B6; }
.content ul { margin: 0 0 22px; padding-left: 22px; }
.content li { margin: 0 0 10px; padding-left: 4px; }
.content li::marker { color: #2FBE6A; }
.content code { padding: 2px 6px; border-radius: 6px; background: #F1EDE2; color: #16140F; font: 600 .88em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.content h3 { scroll-margin-top: 110px; }
.table-scroll { overflow-x: auto; margin: 24px 0 32px; border: 1px solid #ECE7DB; border-radius: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 580px; font-size: 13px; line-height: 1.6; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid #ECE7DB; padding: 13px 16px; }
th { background: #F7F4EC; font-weight: 800; color: #16140F; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; width: 29%; }

@media (max-width: 860px) {
  html:has(.toc) { scroll-padding-top: 140px; }
  main { padding: 24px 12px 24px; }
  .bread { padding: 0 8px; }
  .article-header { padding: 32px 8px 26px; }
  .layout { display: block; }
  /* Stays under the header as a chip bar, so the current section is always visible. */
  .toc {
    position: sticky; top: 76px; z-index: 5; flex-direction: row; max-height: none; overflow-x: auto;
    margin-bottom: 16px; padding: 6px; border-radius: 20px; white-space: nowrap; scrollbar-width: none;
    /* A scrolling list would carry a pseudo-element layer away with it, so the glass sits on the bar itself. */
    border: 1px solid rgba(255, 255, 255, .85);
    background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .68));
    box-shadow: inset 0 1px 0 #fff, 0 12px 28px -14px rgba(22, 20, 15, .22);
    -webkit-backdrop-filter: blur(22px) saturate(190%);
    backdrop-filter: blur(22px) saturate(190%);
  }
  .toc::before { display: none; }
  .toc a.is-active { background: #E3F6EA; box-shadow: none; }
  .toc::-webkit-scrollbar { display: none; }
  .toc strong { display: none; }
  .toc a { flex: 0 0 auto; align-items: center; min-height: 40px; }
  .content { padding: 30px 22px 22px; border-radius: 26px; font-size: 14px; }
  .content h2 { margin-top: 40px; font-size: 20px; }
  .content h2 .num { min-width: 30px; height: 30px; font-size: 13px; }
}
