:root {
  color-scheme: light dark;
  --background: #f5f4ef;
  --surface: #ffffff;
  --text: #17201b;
  --muted: #5f6963;
  --line: #d7ddd8;
  --accent: #176b47;
  --accent-strong: #0e4d32;
  --notice: #fff4cf;
  --notice-text: #5b4510;
  --shadow: 0 18px 50px rgb(21 47 34 / 10%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #101512;
    --surface: #18201b;
    --text: #edf3ef;
    --muted: #aab7af;
    --line: #344139;
    --accent: #75d7a6;
    --accent-strong: #9ae8be;
    --notice: #3a3014;
    --notice-text: #f5dfa1;
    --shadow: 0 18px 50px rgb(0 0 0 / 30%);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-strong);
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 0.2rem;
}

.landing {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem 1.25rem;
}

.hero {
  width: min(44rem, 100%);
  padding: clamp(2rem, 7vw, 4.5rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2 {
  line-height: 1.25;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 8vw, 4.5rem);
  letter-spacing: -0.045em;
}

.lead {
  margin: 1.4rem 0 0;
  font-size: clamp(1.05rem, 3vw, 1.3rem);
}

.lead.secondary {
  margin-top: 0.3rem;
  color: var(--muted);
}

.document-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2.5rem;
}

.document-card {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  color: var(--text);
  text-decoration: none;
}

.document-card:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.document-card small {
  color: var(--muted);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 58rem;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
}

.brand {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.language-switcher {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.legal-shell {
  width: min(52rem, calc(100% - 2rem));
  margin: 1rem auto 4rem;
}

.draft-notice {
  display: flex;
  flex-direction: column;
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--notice);
  color: var(--notice-text);
  font-size: 0.86rem;
}

.legal-document {
  padding: clamp(1.5rem, 5vw, 3.75rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-document h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
}

.legal-document h2 {
  margin: 2.3rem 0 0.6rem;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.legal-document p,
.legal-document li {
  overflow-wrap: anywhere;
}

.legal-document ul {
  padding-left: 1.35rem;
}

.meta {
  margin: 0.75rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.language-divider {
  width: 5rem;
  margin: 4rem auto;
  border: 0;
  border-top: 2px solid var(--line);
}

.site-footer {
  padding: 2rem 1rem 3rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 36rem) {
  .document-links {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
