:root {
  --legal-ink: #18231d;
  --legal-muted: #66716b;
  --legal-line: #dde3df;
  --legal-paper: #f4f5f1;
  --legal-accent: #0f6b48;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--legal-paper);
  color: var(--legal-ink);
  font-family: Inter, 'Noto Sans KR', system-ui, sans-serif;
  line-height: 1.75;
}
a {
  color: var(--legal-accent);
}
.topbar {
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
  height: 44px;
  gap: 38px;
  padding: 0 max(18px, calc((100% - 1440px) / 2));
  background: rgba(0, 0, 0, 0.92);
  color: #f5f5f7;
  backdrop-filter: saturate(180%) blur(20px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #f5f5f7;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand small {
  color: #9aa09c;
  font-size: 10px;
  font-weight: 400;
}
.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.topbar nav {
  display: flex;
  justify-content: center;
  gap: 32px;
}
.topbar nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  text-decoration: none;
}
.header-beta {
  position: relative;
  margin-left: auto;
}
.header-beta summary {
  color: #ffcc00;
  font-size: 11px;
  cursor: pointer;
  list-style: none;
}
.header-beta summary::-webkit-details-marker {
  display: none;
}
.header-beta > span {
  position: absolute;
  top: 31px;
  right: 0;
  width: min(340px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  color: #343a36;
  font-size: 12px;
  line-height: 1.55;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
.beta-popup {
  position: fixed;
  top: 58px;
  right: 18px;
  z-index: 19;
  width: min(340px, calc(100vw - 36px));
}
.beta-popup summary {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #d8b400;
  border-radius: 8px;
  background: #fffbe6;
  color: #6b5700;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.beta-popup summary::-webkit-details-marker {
  display: none;
}
.beta-popup p {
  margin: 8px 0 0;
  padding: 12px 14px;
  border: 1px solid #e9e0ae;
  border-radius: 10px;
  background: #fffef5;
  color: #514a2a;
  font-size: 12px;
  line-height: 1.55;
  box-shadow: 0 12px 30px rgba(35, 32, 8, 0.14);
}
.legal-main {
  width: min(860px, calc(100% - 32px));
  margin: 48px auto 72px;
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--legal-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(24, 50, 38, 0.07);
}
.legal-main h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.2;
}
.legal-main .effective {
  margin: 0 0 38px;
  color: var(--legal-muted);
}
.legal-main h2 {
  margin: 42px 0 12px;
  padding-top: 4px;
  font-size: 21px;
}
.legal-main h3 {
  margin: 24px 0 8px;
  font-size: 16px;
}
.legal-main p,
.legal-main li {
  font-size: 15px;
}
.legal-main ul,
.legal-main ol {
  padding-left: 22px;
}
.legal-main table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.legal-main th,
.legal-main td {
  padding: 12px;
  border: 1px solid var(--legal-line);
  text-align: left;
  vertical-align: top;
}
.legal-main th {
  background: #f2f6f3;
}
.privacy-items th:first-child,
.privacy-items td:first-child {
  width: 22%;
  min-width: calc(4em + 24px);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.privacy-items th:last-child,
.privacy-items td:last-child {
  width: 24%;
}
.legal-note {
  padding: 16px 18px;
  border-left: 4px solid var(--legal-accent);
  background: #f2f8f4;
}
.site-footer {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 8px 32px;
  padding: 28px max(18px, calc((100% - 1440px) / 2 + 18px));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #101512;
  color: #fff;
}
.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.footer-brand strong {
  font-size: 20px;
}
.footer-brand span {
  color: #b8c5bd;
  font-size: 12px;
}
.footer-meta {
  grid-column: 1 / 3;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9aaba1;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.footer-meta span {
  color: #cbd5cf;
  font-weight: 600;
}
.footer-meta i {
  color: #66776d;
  font-style: normal;
}
.footer-meta small {
  margin-left: 6px;
  color: #8d9d94;
}
.footer-legal {
  display: flex;
  gap: 10px;
  margin-left: 6px;
}
.footer-legal a {
  color: #cbd5cf;
  text-decoration: none;
}
.footer-legal a[aria-current='page'] {
  color: #fff;
  text-decoration: underline;
}
.footer-family {
  position: relative;
  grid-column: 3;
  grid-row: 1 / 3;
  justify-self: end;
}
.footer-family summary {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #4d6257;
  border-radius: 8px;
  color: #d3ddd7;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.footer-family summary::-webkit-details-marker {
  display: none;
}
.footer-family summary::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.footer-family[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.footer-family .menu-list {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 30;
  min-width: 240px;
  padding: 6px;
  border: 1px solid #d5ddd8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.footer-family .menu-list a {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  border-radius: 8px;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.footer-family .menu-list a:hover {
  background: #f0f4f1;
}
.footer-family .menu-list small {
  color: #667068;
  font-size: 12px;
  font-weight: 500;
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .topbar {
    position: static;
    height: auto;
    min-height: 52px;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 10px 16px;
  }
  .brand small,
  .header-beta {
    display: none;
  }
  .topbar nav {
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
    padding-left: 31px;
  }
  .legal-main {
    margin-top: 20px;
    border-radius: 16px;
  }
  .legal-main table,
  .legal-main tbody,
  .legal-main tr,
  .legal-main th,
  .legal-main td {
    display: block;
  }
  .legal-main th {
    border-bottom: 0;
  }
  .legal-main td + td {
    border-top: 0;
  }
  .privacy-items th:first-child,
  .privacy-items td:first-child,
  .privacy-items th:last-child,
  .privacy-items td:last-child {
    width: auto;
    min-width: 0;
  }
  .site-footer {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 20px;
  }
  .footer-meta {
    grid-column: 1;
    flex-wrap: wrap;
  }
  .footer-meta small {
    width: 100%;
    margin-left: 0;
  }
  .footer-legal {
    margin-left: 0;
  }
  .footer-family {
    grid-column: 1;
    grid-row: auto;
    justify-self: end;
  }
}
