:root {
  --ink: #11140f;
  --ink-soft: #30352c;
  --paper: #f4f5e9;
  --paper-strong: #fbfcf4;
  --line: #d8ddc9;
  --lime: #a8f02a;
  --lime-soft: #e7fac2;
  --olive: #51623c;
  --danger: #963d31;
  --shadow: 0 18px 60px rgba(24, 32, 17, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  transition: top .2s ease;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(17, 20, 15, .1);
  background: rgba(244, 245, 233, .92);
  backdrop-filter: blur(16px);
}

.header-inner,
.site-footer-inner,
.home-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -.06em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #5d6258;
  font-size: 14px;
  font-weight: 700;
}

.header-nav a {
  text-decoration: none;
}

.header-nav a:hover,
.header-nav a:focus-visible { color: var(--ink); }

.home-main { padding: 34px 0 72px; }

.home-hero {
  position: relative;
  isolation: isolate;
  min-height: 510px;
  overflow: hidden;
  border-radius: 36px;
  background: #0b0e0b;
  color: #f8f8f1;
  box-shadow: var(--shadow);
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  width: min(660px, 70%);
  padding: clamp(54px, 8vw, 96px);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--olive);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.home-hero .eyebrow { color: var(--lime); }

.home-hero h1,
.legal-hero h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 88px);
  line-height: .98;
  letter-spacing: -.075em;
}

.home-hero p {
  max-width: 540px;
  margin: 28px 0 0;
  color: rgba(248, 248, 241, .7);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
}

.court-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.court-art::before {
  content: "";
  position: absolute;
  width: 510px;
  height: 510px;
  right: -180px;
  top: -150px;
  border: 34px solid var(--lime);
  border-radius: 50%;
}

.court-art::after {
  content: "";
  position: absolute;
  left: 42%;
  right: -8%;
  bottom: -1px;
  height: 42%;
  border-top: 5px solid #f8f8f1;
  border-left: 5px solid #f8f8f1;
  transform: skewX(-28deg);
  background: #53643a;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.document-card {
  min-height: 244px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-strong);
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(38, 46, 28, .04);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.document-card:hover,
.document-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--olive);
  box-shadow: var(--shadow);
}

.document-card .number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime-soft);
  color: var(--olive);
  font-size: 13px;
  font-weight: 900;
}

.document-card h2 {
  margin: 42px 0 10px;
  font-size: 24px;
  letter-spacing: -.04em;
}

.document-card p {
  margin: 0;
  color: #666c60;
  line-height: 1.55;
}

.document-card .arrow {
  margin-top: auto;
  padding-top: 24px;
  font-weight: 900;
}

.principles {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 36px;
  margin-top: 64px;
  padding: 40px;
  border-radius: 28px;
  background: var(--lime-soft);
}

.principles h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -.055em;
}

.principles ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  list-style: none;
}

.principles li {
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(81, 98, 60, .22);
  color: var(--ink-soft);
  line-height: 1.65;
}

.principles li:last-child { padding-bottom: 0; border-bottom: 0; }

.legal-main {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0 90px;
}

.legal-hero {
  padding: 0 0 42px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  max-width: 780px;
  font-size: clamp(43px, 7vw, 72px);
}

.legal-intro {
  max-width: 700px;
  margin: 24px 0 0;
  color: #5f655a;
  font-size: 18px;
  line-height: 1.7;
}

.date-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  color: #787d74;
  font-size: 13px;
}

.legal-document {
  margin-top: 22px;
  padding: clamp(26px, 6vw, 58px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.legal-document section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.legal-document section:first-child { padding-top: 0; }
.legal-document section:last-child { padding-bottom: 0; border-bottom: 0; }

.legal-document h2 {
  margin: 0 0 18px;
  font-size: clamp(22px, 3vw, 29px);
  line-height: 1.3;
  letter-spacing: -.045em;
}

.legal-document h3 {
  margin: 28px 0 10px;
  font-size: 18px;
}

.legal-document p,
.legal-document li {
  color: #4f554b;
  font-size: 16px;
  line-height: 1.85;
  word-break: keep-all;
}

.legal-document p { margin: 0 0 14px; }
.legal-document p:last-child { margin-bottom: 0; }
.legal-document ol,
.legal-document ul { margin: 0; padding-left: 22px; }
.legal-document li + li { margin-top: 8px; }

.company-box,
.contact-box,
.notice-box {
  padding: 22px;
  border-radius: 18px;
  background: var(--paper);
}

.company-box {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px 20px;
}

.company-box dt {
  color: #7b8076;
  font-size: 14px;
  font-weight: 700;
}

.company-box dd { margin: 0; line-height: 1.5; }

.contact-box {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.contact-box strong { font-size: 20px; }
.contact-box a { color: var(--olive); font-weight: 800; }

.notice-box {
  margin: 20px 0;
  border-left: 4px solid var(--lime);
  line-height: 1.75;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.65;
}

th { background: #eef1e4; color: #3e4735; }
tr:last-child td { border-bottom: 0; }

.quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.quick-link {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  text-decoration: none;
  font-weight: 800;
}

.quick-link:hover,
.quick-link:focus-visible { border-color: var(--olive); }

.site-footer {
  padding: 36px 0 46px;
  border-top: 1px solid var(--line);
}

.site-footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  color: #73786f;
  font-size: 13px;
  line-height: 1.75;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--ink-soft); font-weight: 700; }

@media (max-width: 760px) {
  .header-inner,
  .site-footer-inner,
  .home-main,
  .legal-main { width: min(100% - 28px, 1120px); }

  .header-inner { min-height: 64px; }
  .header-nav { gap: 14px; font-size: 13px; }
  .header-nav a:first-child { display: none; }
  .home-main { padding-top: 14px; }
  .home-hero { min-height: 500px; border-radius: 24px; }
  .home-hero-copy { width: 100%; padding: 48px 28px; }
  .home-hero h1 { font-size: clamp(52px, 17vw, 74px); }
  .court-art::before { width: 330px; height: 330px; right: -170px; top: -120px; border-width: 24px; }
  .court-art::after { left: 32%; height: 34%; }
  .document-grid { grid-template-columns: 1fr; }
  .document-card { min-height: 205px; }
  .principles { grid-template-columns: 1fr; padding: 28px; }
  .legal-main { padding: 48px 0 64px; }
  .legal-document { border-radius: 22px; }
  .company-box { grid-template-columns: 1fr; gap: 3px; }
  .company-box dd { margin-bottom: 10px; }
  .quick-links { grid-template-columns: 1fr; }
  .site-footer-inner { flex-direction: column; }
}

@media print {
  .site-header,
  .site-footer { display: none; }
  body { background: #fff; }
  .legal-main { width: 100%; padding: 0; }
  .legal-document { border: 0; box-shadow: none; padding: 0; }
}

