:root {
  color-scheme: light;
  --bg: #f7f6f1;
  --ink: #1d2420;
  --muted: #59635c;
  --line: #d8d5ca;
  --brand: #2f6b4f;
  --accent: #d97745;
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--ink);
}

body {
  min-height: 100vh;
  margin: 0;
}

.page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
}

.brand-panel {
  width: min(100%, 720px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: clamp(32px, 8vw, 72px);
  box-shadow: 0 24px 80px rgb(29 36 32 / 8%);
}

.event-panel {
  border-top: 6px solid var(--accent);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.75rem, 5rem, 5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 48rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .page {
    align-items: stretch;
    min-height: auto;
    padding: 20px;
  }

  .brand-panel {
    align-self: center;
    padding: 28px;
  }

  h1 {
    max-width: 100%;
    font-size: 2.6rem;
  }
}

/* ── 개인정보처리방침 페이지 ─────────────────────────────────── */

.page-privacy {
  align-items: start;
  min-height: auto;
  padding: clamp(24px, 6vw, 64px) 20px 96px;
}

.privacy-doc {
  width: min(100%, 760px);
  margin: 0 auto;
  color: var(--ink);
  line-height: 1.65;
}

.privacy-doc h1 {
  font-size: clamp(2rem, 4vw, 2.4rem);
  max-width: none;
  margin-bottom: 8px;
}

.privacy-meta {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.privacy-meta a {
  color: inherit;
}

.privacy-intro {
  margin: 0 0 32px;
  padding: 16px 18px;
  background: rgb(47 107 79 / 6%);
  border-left: 3px solid var(--brand);
  border-radius: 4px;
}

.privacy-doc section {
  margin: 28px 0 0;
}

.privacy-doc h2 {
  font-size: 1.1rem;
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}

.privacy-doc ul {
  margin: 6px 0 0;
  padding-left: 22px;
}

.privacy-doc li {
  margin: 4px 0;
}

.privacy-doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: rgb(29 36 32 / 5%);
  padding: 1px 5px;
  border-radius: 3px;
}

.privacy-callout {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: rgb(217 119 69 / 8%);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 0.95rem;
}

.privacy-optout-section {
  margin-top: 40px;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.privacy-optout-button {
  appearance: none;
  display: inline-block;
  margin: 8px 0 0;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.privacy-optout-button[data-state="opted-out"] {
  background: var(--muted);
}

.privacy-optout-button:hover {
  filter: brightness(0.96);
}

.privacy-optout-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ── 공통 푸터 ─────────────────────────────────────────────── */

.site-footer {
  position: relative;
  margin-top: 48px;
  padding: 18px 20px 24px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: transparent;
}

.site-footer small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer a,
.site-footer__optout {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__optout {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.site-footer a:hover,
.site-footer__optout:hover {
  color: var(--ink);
}

.site-footer__sep {
  opacity: 0.5;
}

/* ── 사용 통계 토글 토스트 ────────────────────────────────── */

.wmx-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 0.88rem;
  border-radius: 6px;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  box-shadow: 0 8px 24px rgb(0 0 0 / 22%);
}

.wmx-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
