* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --mim-red: #dc2626;
  --ink: #161b22;
  --muted: #58616f;
  --line: rgba(22, 27, 34, 0.12);
  --card: #f3f4f7;
}

body {
  min-height: 100vh;
  font-family:
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: #ffffff;
}

.page-shell {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 42px 0 56px;
}

.top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-link {
  color: var(--mim-red);
  text-decoration: none;
}

.brand-link h1 {
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-link span {
  display: block;
  margin-top: 7px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9rem;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.back-link:hover {
  border-color: rgba(220, 38, 38, 0.35);
  color: var(--mim-red);
}

.document-lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(120, 120, 120, 1);
  font-size: 0.82rem;
  font-weight: 500;
}

.document-lang-switcher span {
  cursor: pointer;
  transition: color 0.2s ease;
}

.document-lang-switcher span:hover,
.document-lang-switcher span.active {
  color: var(--mim-red);
}

.document-lang-switcher span.active {
  font-weight: 700;
}

.document-lang-switcher .divider {
  width: 18px;
  height: 1px;
  background: rgba(120, 120, 120, 0.35);
}

.page-heading {
  padding: 48px 0 22px;
}

.eyebrow {
  color: var(--mim-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.document-card {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px 24px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--card);
  text-decoration: none;
  transition:
    transform 0.22s ease,
    background 0.22s ease;
}

.document-card:hover {
  transform: translateY(-3px);
  background: #eceef3;
}

.document-card--disabled {
  cursor: default;
}

.document-card--disabled:hover {
  transform: none;
  background: var(--card);
}

.doc-status {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 38px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.doc-type {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 4px;
  color: #3f4752;
  background: #ffffff;
  font-size: 0.73rem;
  font-weight: 500;
}

.doc-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  color: #2f3742;
  font-size: 0.78rem;
}

.calendar-icon {
  position: relative;
  width: 16px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.calendar-icon::before {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 3px;
  height: 2px;
  background: currentColor;
}

.calendar-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: -5px;
  height: 5px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.document-card h3 {
  margin-top: 20px;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: 0;
}

.document-card p {
  margin-top: 8px;
  color: #39424f;
  font-size: 0.98rem;
  line-height: 1.48;
}

.doc-arrow {
  margin-top: auto;
  padding-top: 38px;
  font-size: 1.85rem;
  line-height: 1;
}

.site-disclaimer {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: rgba(120, 120, 120, 1);
  font-size: 0.82rem;
  text-align: right;
}

@media (min-width: 1024px) {
  .document-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .page-shell {
    width: min(100% - 32px, 680px);
    padding: 24px 0 36px;
  }

  .top-bar {
    align-items: center;
    padding-bottom: 26px;
  }

  .top-actions {
    gap: 12px;
  }

  .document-lang-switcher {
    font-size: 0.78rem;
  }

  .brand-link h1 {
    font-size: 1.8rem;
  }

  .brand-link span {
    font-size: 0.78rem;
  }

  .back-link {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .page-heading {
    padding: 34px 0 20px;
  }

  .document-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .document-card {
    min-height: 242px;
    padding: 24px 22px 22px;
  }

  .document-card h3 {
    font-size: 1.3rem;
  }

  .document-card p {
    font-size: 0.94rem;
  }

  .doc-arrow,
  .doc-status {
    padding-top: 30px;
  }

  .site-disclaimer {
    text-align: center;
  }
}
