/* 스트라이크랩 정책 페이지 공통 레이아웃과 테마 스타일 */
@import url("https://fonts.googleapis.com/css2?family=Tektur:wght@600;700;800&display=swap");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

:root {
  --bg: #f7f3ea;
  --bg-deep: #f1ebdf;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --surface-muted: #f4f0e7;
  --border: #dce3de;
  --border-strong: #c9d5d0;
  --navy: #1b4d6b;
  --navy-deep: #123c57;
  --green: #27ae78;
  --green-deep: #188b60;
  --green-soft: #e5f3ec;
  --text: #17384a;
  --muted: #5f747c;
  --faint: #8b9a9d;
  --header-bg: rgba(247, 243, 234, 0.88);
  --shadow-sm: 0 1px 2px rgba(18, 60, 87, 0.04), 0 8px 24px rgba(18, 60, 87, 0.06);
  --shadow-md: 0 18px 50px rgba(18, 60, 87, 0.11);
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 34px;
  --maxw: 1180px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #102b38;
  --bg-deep: #0d2531;
  --surface: #173947;
  --surface-strong: #1b4050;
  --surface-muted: #1c4250;
  --border: #315461;
  --border-strong: #456875;
  --navy: #dcebe7;
  --navy-deep: #f5f1e8;
  --green: #46c792;
  --green-deep: #64d6a8;
  --green-soft: #204f43;
  --text: #f4f0e7;
  --muted: #b5c4c2;
  --faint: #849da0;
  --header-bg: rgba(16, 43, 56, 0.88);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.14), 0 10px 28px rgba(0, 0, 0, 0.16);
  --shadow-md: 0 20px 54px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --bg: #102b38;
    --bg-deep: #0d2531;
    --surface: #173947;
    --surface-strong: #1b4050;
    --surface-muted: #1c4250;
    --border: #315461;
    --border-strong: #456875;
    --navy: #dcebe7;
    --navy-deep: #f5f1e8;
    --green: #46c792;
    --green-deep: #64d6a8;
    --green-soft: #204f43;
    --text: #f4f0e7;
    --muted: #b5c4c2;
    --faint: #849da0;
    --header-bg: rgba(16, 43, 56, 0.88);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.14), 0 10px 28px rgba(0, 0, 0, 0.16);
    --shadow-md: 0 20px 54px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  padding-bottom: 48px;
  background:
    radial-gradient(circle at 8% 5%, rgba(39, 174, 120, 0.07), transparent 26rem),
    radial-gradient(circle at 92% 18%, rgba(27, 77, 107, 0.08), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.015em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.wrap {
  width: min(100%, calc(var(--maxw) + 48px));
  margin: 0 auto;
  padding-right: 24px;
  padding-left: 24px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--navy-deep);
  box-shadow: var(--shadow-sm);
  color: var(--surface);
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

body > header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  min-height: 48px;
  padding: 2px 12px;
  border: 1px solid rgba(18, 60, 87, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 14px rgba(18, 60, 87, 0.12);
}

.brand-wordmark {
  color: #123c57;
  font-family: "Tektur", "Pretendard", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.brand-wordmark b {
  color: #188b60;
  font-weight: inherit;
}

.header-tag {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.header-tag::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 18px;
  background: var(--border-strong);
  content: "";
  transform: translateY(-50%);
}

.eng-tag,
.section-kicker {
  font-family: "Tektur", "Pretendard", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.menu {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 10px;
}

.menu a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 160ms ease;
}

.menu a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.menu a:hover,
.menu a:focus-visible,
.menu a[aria-current="page"] {
  color: var(--navy-deep);
}

.menu a:hover::after,
.menu a:focus-visible::after,
.menu a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-right {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  margin-left: auto;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 7px 12px 7px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.theme-indicator {
  position: relative;
  width: 20px;
  height: 20px;
  display: block;
  border: 2px solid var(--navy);
  border-radius: 50%;
}

.theme-indicator::after {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--green);
  content: "";
  clip-path: inset(0 50% 0 0);
}

.theme-toggle:hover {
  border-color: var(--green);
  color: var(--navy-deep);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--green) 38%, transparent);
  outline-offset: 3px;
}

.legal-main {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 72px 24px 0;
}

.legal-heading {
  position: relative;
  overflow: hidden;
  padding: 50px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 18%, rgba(47, 191, 136, 0.26), transparent 18rem),
    linear-gradient(140deg, #215d74, #16445e);
  box-shadow: var(--shadow-md);
  color: #ffffff;
}

.legal-heading::after {
  position: absolute;
  top: -64px;
  right: -42px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.legal-heading .section-kicker {
  color: #68d9ac;
}

.legal-heading h1 {
  margin-top: 10px;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.legal-date {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.legal-intro {
  margin-top: 22px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.legal-content {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.legal-section {
  padding: 32px 36px;
}

.legal-section + .legal-section {
  border-top: 1px solid var(--border);
}

.legal-section h2 {
  margin-bottom: 15px;
  color: var(--navy-deep);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.legal-section h3 {
  margin: 21px 0 10px;
  color: var(--navy-deep);
  font-size: 15px;
  font-weight: 800;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.82;
}

.legal-section p + p {
  margin-top: 12px;
}

.legal-section ul,
.legal-section ol {
  padding-left: 21px;
}

.legal-section li + li {
  margin-top: 9px;
}

.legal-section strong {
  color: var(--navy-deep);
  font-weight: 800;
}

.legal-section a {
  color: var(--green-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--green) 45%, transparent);
  text-underline-offset: 3px;
}

.legal-callout {
  margin-top: 18px;
  padding: 17px 19px;
  border-left: 4px solid var(--green);
  border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
  background: var(--green-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.legal-table {
  width: 100%;
  margin: 20px 0;
  border-collapse: separate;
  border: 1px solid var(--border);
  border-spacing: 0;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12px;
}

.legal-table th,
.legal-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--surface-muted);
  color: var(--navy-deep);
  font-weight: 800;
}

.legal-table th + th,
.legal-table td + td {
  border-left: 1px solid var(--border);
}

.legal-table tbody tr:last-child td {
  border-bottom: 0;
}

.back-home {
  display: inline-flex;
  align-items: center;
  margin-top: 26px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.back-home:hover {
  color: var(--green-deep);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 40px;
  margin-top: 88px;
  padding: 32px 0 8px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.disclaimer b {
  display: block;
  margin-bottom: 12px;
  color: var(--navy-deep);
  font-size: 14px;
  font-weight: 800;
}

.company-info {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  max-width: 780px;
  font-style: normal;
}

.company-info a,
.foot-links a {
  transition: color 160ms ease;
}

.company-info a:hover,
.foot-links a:hover {
  color: var(--green-deep);
}

.foot-links {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  font-weight: 700;
}

.foot-links a[aria-current="page"] {
  color: var(--navy-deep);
}

.copy {
  color: var(--faint);
}

.powered {
  color: var(--faint);
  font-family: "Tektur", "Pretendard", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: right;
}

@media (max-width: 980px) {
  .header-tag {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 30px;
  }

  .wrap {
    padding-right: 18px;
    padding-left: 18px;
  }

  .nav {
    height: 68px;
    gap: 14px;
  }

  .menu {
    display: none;
  }

  .theme-label {
    display: none;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
  }

  .legal-main {
    padding: 48px 18px 0;
  }

  .legal-heading {
    padding: 36px 28px;
    border-radius: 26px;
  }

  .legal-intro {
    padding: 21px 22px;
  }

  .legal-section {
    padding: 27px 24px;
  }

  .legal-table {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }

  footer {
    grid-template-columns: 1fr;
    margin-top: 64px;
  }

  .foot-links {
    flex-wrap: wrap;
  }

  .powered {
    text-align: left;
  }

  .company-info {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .brand {
    padding-right: 9px;
    padding-left: 9px;
  }

  .brand-wordmark {
    font-size: 14px;
  }

  .legal-heading h1 {
    font-size: 32px;
  }

  .legal-section {
    padding: 25px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
