:root {
  color-scheme: light;
  --navy: #0f2d68;
  --navy-deep: #081a3a;
  --green: #36a852;
  --orange: #ff6b21;
  --cyan: #06b6d4;
  --surface: #f7f9fc;
  --muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  font-family: "Pretendard", "Noto Sans KR", "Noto Sans JP", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--navy-deep);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  color: var(--navy-deep);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

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

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 90% 10%, rgba(6, 182, 212, 0.16), transparent 34%),
    radial-gradient(circle at 5% 95%, rgba(54, 168, 82, 0.13), transparent 34%), var(--white);
}

.hero-inner,
.page,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  min-height: 470px;
  padding: 84px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: 64px;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.lead {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

.identity-card {
  border: 1px solid rgba(15, 45, 104, 0.12);
  border-radius: 26px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 30px 80px -48px rgba(8, 26, 58, 0.7);
}

.identity-label {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: #e8f8fb;
  color: #08758a;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.identity-card strong {
  display: block;
  margin-top: 18px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.identity-card dl {
  margin: 22px 0 0;
}

.identity-card dl div {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 14px;
  border-top: 1px solid var(--border);
}

.identity-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.identity-card dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.page {
  padding: 72px 0 96px;
}

.section {
  margin-bottom: 64px;
}

.section:last-child {
  margin-bottom: 0;
}

.section h2 {
  margin-bottom: 18px;
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.section > p {
  max-width: 800px;
  color: #475569;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.notice,
.legal-section {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
}

.card {
  padding: 26px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.card p,
.card li {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.card ul,
.legal-section ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.notice {
  padding: 22px;
  border-color: #fed7aa;
  background: #fff7ed;
  color: #7c2d12;
  font-size: 14px;
}

.button-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 48px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy);
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.button.secondary {
  background: var(--white);
  color: var(--navy);
}

.legal-page {
  max-width: 860px;
  word-break: keep-all;
  overflow-wrap: normal;
}

.legal-page a[href="mailto:contact@dgilink.com"] {
  white-space: nowrap;
}

.legal-title {
  margin-bottom: 10px;
  font-size: clamp(34px, 7vw, 56px);
}

.effective-date {
  margin-bottom: 48px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.legal-section {
  margin-bottom: 16px;
  padding: 28px;
}

.legal-section h2 {
  margin-bottom: 14px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.legal-section p,
.legal-section li {
  color: #475569;
  font-size: 14px;
}

.legal-section p:last-child,
.legal-section li:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  width: 180px;
  color: var(--navy);
}

.site-footer {
  background: var(--navy-deep);
  color: #cbd5e1;
}

.footer-inner {
  padding: 42px 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong {
  display: block;
  color: var(--white);
  font-size: 18px;
}

.footer-inner p {
  margin: 7px 0 0;
  color: #94a3b8;
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
}

.footer-links a {
  text-decoration: none;
}

@media (max-width: 780px) {
  .nav-links a:not(.keep) {
    display: none;
  }

  .hero-inner {
    min-height: auto;
    padding: 64px 0;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .page {
    padding: 56px 0 72px;
  }

  .grid,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .nav,
  .hero-inner,
  .page,
  .footer-inner {
    width: min(100% - 24px, 1120px);
  }

  .hero-inner {
    padding: 52px 0;
  }

  .identity-card,
  .card,
  .legal-section {
    padding: 20px;
  }

  .identity-card dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .button-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  th,
  td {
    min-width: 130px;
  }
}

@media (width < 768px) {
  .legal-page .legal-section {
    padding: 20px 16px;
  }

  .legal-page .table-wrap {
    margin-bottom: 16px;
  }

  .legal-page .table-wrap:last-child {
    margin-bottom: 0;
  }

  .legal-page table,
  .legal-page tbody,
  .legal-page tr,
  .legal-page th,
  .legal-page td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .legal-page tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .legal-page tr:first-child {
    padding-top: 0;
  }

  .legal-page th,
  .legal-page td {
    padding: 0;
    border-bottom: 0;
  }

  .legal-page th {
    padding-bottom: 4px;
  }
}
