/* 플랫폼 /p?slug=… 약관 단독 페이지 — 로그인(login.css)과 스타일 완전 분리 */

body.page-legal-standalone {
  background-color: #fff;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

.page-legal-standalone--standalone :focus,
.page-legal-standalone--standalone :focus-visible {
  outline: none;
}

.legal-standalone {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  box-sizing: border-box;
}

.legal-standalone__hero-col {
  flex: 0 0 480px;
  width: 480px;
  max-width: 100%;
  align-self: flex-start;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100svh;
  max-height: 100dvh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-sizing: border-box;
  padding: 20px;
}

.legal-standalone__hero {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #fff;
  border-radius: 16px;
  padding: 3px;
  box-sizing: border-box;
}

.legal-standalone__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background-color: #fff;
  border-radius: 12px;
}

.legal-standalone__tagline {
  position: absolute;
  left: clamp(28px, 4.5vw, 56px);
  bottom: clamp(28px, 4.5vw, 56px);
  z-index: 1;
  margin: 0;
  max-width: calc(100% - clamp(28px, 4.5vw, 56px) - 20px);
  width: max-content;
  color: #fff;
  font-size: clamp(1.0625rem, 2.35vw, 1.625rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.45),
    0 2px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.legal-standalone__tagline-line {
  margin: 0;
  white-space: nowrap;
}

.legal-standalone__tagline-line--brand {
  font-size: clamp(0.625rem, 1.05vw, 0.6875rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 0.55em;
}

.legal-standalone__tagline-line--head {
  margin-top: 0;
}

.legal-standalone__tagline-line--sub {
  margin-top: 0.15em;
  font-style: italic;
  font-weight: 300;
}

.legal-standalone__hero--no-video .legal-standalone__tagline {
  color: #1a1a1a;
  text-shadow: none;
}

.legal-standalone__panel {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 40px 80px;
}

.legal-standalone__panel-inner {
  width: 100%;
  max-width: min(840px, 100%);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.legal-standalone__nav {
  width: 100%;
  margin: 0 0 1.5rem;
  flex-shrink: 0;
}

.legal-standalone__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  justify-content: center;
  justify-content: safe center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.legal-standalone__nav-item {
  flex-shrink: 0;
}

.legal-standalone__nav-link {
  display: block;
  padding: 0.4rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  margin-left: -1px;
  position: relative;
  z-index: 0;
  background: #fff;
  letter-spacing: -0.02em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.legal-standalone__nav-item:first-child .legal-standalone__nav-link {
  margin-left: 0;
  border-radius: 8px 0 0 8px;
}

.legal-standalone__nav-item:last-child .legal-standalone__nav-link {
  border-radius: 0 8px 8px 0;
}

.legal-standalone__nav-item:first-child:last-child .legal-standalone__nav-link {
  border-radius: 8px;
}

.legal-standalone__nav-link:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  z-index: 1;
}

.legal-standalone__nav-link--active {
  background: #111827;
  color: #fff;
  border-color: #111827;
  z-index: 2;
}

.legal-standalone__nav-link--active:hover {
  background: #1f2937;
  border-color: #1f2937;
  color: #fff;
}

.legal-standalone__article {
  margin-top: 1.25rem;
}

.legal-standalone__title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.2vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  text-align: center;
}

.legal-standalone__subtitle {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  color: #6b7280;
  letter-spacing: -0.02em;
  text-align: center;
}

.legal-standalone__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  width: 100%;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #6b7280;
  justify-content: center;
  justify-content: safe center;
  text-align: center;
}

.legal-standalone__date-item {
  white-space: nowrap;
  text-align: center;
}

.legal-standalone__date-label {
  font-weight: 600;
  color: #374151;
  margin-right: 0.35rem;
}

.legal-standalone__body {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #111827;
}

/* 본문 상단 안내 문단(첫 <p>) — 제목·부제·날짜와 같이 가운데 */
.legal-standalone__body > p:first-of-type {
  text-align: center;
  color: #4b5563;
}

.legal-standalone__body :first-child {
  margin-top: 0;
}

.legal-standalone__body h1,
.legal-standalone__body h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 1.25rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.legal-standalone__body p {
  margin: 0 0 0.75rem;
}

@media (max-width: 900px) {
  .legal-standalone {
    flex-direction: column;
    align-items: stretch;
    min-height: 100svh;
    min-height: 100dvh;
  }

  .legal-standalone__hero-col {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    position: static;
    padding: 0;
    align-self: stretch;
  }

  .legal-standalone__hero {
    margin: 20px 0 20px 20px;
    width: calc(100% - 20px);
    max-width: 100%;
    border-radius: 16px;
    padding: 3px;
    flex: 0 0 auto;
    min-height: min(36vh, 280px);
  }

  .legal-standalone__panel {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
    padding: 24px clamp(20px, 5vw, 40px) 40px;
    min-height: 0;
  }

  .legal-standalone__panel-inner {
    overflow-y: visible;
  }
}
