:root {
  --static-header-bg: rgba(246, 242, 235, 0.9);
  --static-control-bg: rgba(255, 253, 248, 0.82);
  --static-fg: #4b3f32;
  --static-muted: #6b625a;
  --static-line: #e2d9cb;
  --static-accent: #667a62;
  --static-action-bg: #4b3f32;
  --static-action-fg: #fffdf8;
  --static-notice-bg: rgba(255, 253, 248, 0.72);
}

html[data-theme="dark"] {
  --static-header-bg: rgba(34, 31, 28, 0.92);
  --static-control-bg: #2a2622;
  --static-fg: #ece6dd;
  --static-muted: #b8aea3;
  --static-line: #3a352f;
  --static-accent: #9db398;
  --static-action-bg: #ece6dd;
  --static-action-fg: #221f1c;
  --static-notice-bg: rgba(42, 38, 34, 0.74);
}

.static-skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--static-action-bg);
  color: var(--static-action-fg);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.static-skip-link:focus {
  transform: translateY(0);
}

.legal-localized {
  display: none;
}

html[data-legal-ui="ko"] .legal-localized[data-legal-language="ko"],
html[data-legal-ui="en"] .legal-localized[data-legal-language="en"] {
  display: block;
}

.static-site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 70px;
  border-bottom: 1px solid var(--static-line);
  background: var(--static-header-bg);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.static-header-inner {
  width: min(1180px, calc(100% - 40px));
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.static-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  color: var(--static-fg);
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
}

.static-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.static-header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.static-header-nav a {
  color: var(--static-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}

.static-header-nav a:hover {
  color: #bd5f1a;
}

.static-home-link {
  justify-self: end;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border: 1px solid var(--static-line);
  border-radius: 13px;
  background: var(--static-action-bg);
  box-shadow: 0 8px 18px rgba(75, 63, 50, 0.16);
  color: var(--static-action-fg);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.static-header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.static-locale-select {
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid var(--static-line);
  border-radius: 13px;
  background: var(--static-control-bg);
  color: var(--static-fg);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.static-locale-badge {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--static-line);
  border-radius: 13px;
  color: var(--static-muted);
  font-size: 12px;
  font-weight: 700;
}

.legal-language-notice {
  margin: 0 0 2rem;
  padding: 18px 20px;
  border: 1px solid var(--static-line);
  border-radius: 18px;
  background: var(--static-notice-bg);
  color: var(--static-fg);
  line-height: 1.55;
  word-break: normal;
  overflow-wrap: anywhere;
}

.legal-language-notice strong {
  display: block;
  margin-bottom: 5px;
  color: var(--static-fg);
  font-size: 1rem;
}

.legal-language-notice p {
  margin: 0;
  color: var(--static-muted);
  font-size: 0.9375rem;
}

.legal-language-notice__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
}

.legal-language-notice__links a {
  color: var(--static-accent);
  font-size: 0.875rem;
  font-weight: 750;
}

.static-home-link:hover {
  box-shadow: 0 11px 22px rgba(75, 63, 50, 0.22);
  color: var(--static-action-fg);
  transform: translateY(-1px);
}

.theme-control {
  position: relative;
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 1px solid var(--static-line);
  border-radius: 13px;
  background: var(--static-control-bg);
  color: var(--static-fg);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.theme-control-value {
  display: none;
}

.theme-control-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

html[data-theme-preference="light"] .theme-control-icon {
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}

html[data-theme-preference="dark"] .theme-control-icon {
  border-color: transparent;
  background: transparent;
  box-shadow: inset 5px -3px 0 0 currentColor;
}

.theme-control select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.theme-control:focus-within {
  outline: 3px solid rgba(189, 95, 26, 0.48);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .static-header-inner {
    grid-template-columns: 1fr auto;
  }

  .static-header-nav {
    display: none;
  }
}

@media (max-width: 720px) {
  .static-header-inner {
    width: min(100% - 28px, 1180px);
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .static-header-nav {
    display: none;
  }

  .static-brand {
    font-size: 17px;
  }

  .static-brand img {
    width: 34px;
    height: 34px;
  }

  .static-header-actions {
    gap: 6px;
  }

  .static-locale-select {
    max-width: 88px;
    min-height: 38px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .static-locale-badge {
    display: none;
  }

  .static-home-link {
    min-height: 38px;
    padding-inline: 12px;
  }

  .theme-control {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
  }

  .legal-language-notice {
    padding: 16px;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .static-site-header .static-brand span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .static-skip-link,
  .static-header-nav a,
  .static-home-link {
    transition: none;
  }
}
