/* 달코미 홈페이지 공통 스타일. 앱 디자인 토큰(app_theme.dart)과 같은 색을 쓴다.
   홈 전용은 home.css, 정책 원문은 policy.css. */
:root {
  --brand: #6d55e6;
  --brand-outline: #9477ff;
  --brand-light: #b7a9ff;
  --brand-soft: #f4f1ff;
  --brand-deep: #211a52;
  --ink: #171b31;
  --ink-muted: #505a72;
  --paper: #ffffff;
  --paper-base: #faf9fd;
  --paper-line: #e8e4f8;
  --night: #0b1027;
  --night-surface: #12172f;
  --night-elevated: #171d3a;
  --night-raised: #242b4b;
  --night-line: #343b5b;
  --night-text: #ffffff;
  --night-muted: #bfc5d6;
  --night-tertiary: #aeb6cf;
  --radius: 20px;
  --max: 1080px;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--night-text);
  background: var(--night);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--night-raised);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

:focus-visible {
  outline: 3px solid var(--brand-light);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  z-index: 100;
}

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

.wrap {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

/* 상단 메뉴 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 16, 39, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--night-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.brand .wordmark {
  height: 18px;
  width: auto;
  color: #fff;
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--night-muted);
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover {
  color: #fff;
  background: var(--night-elevated);
}

.site-nav a[aria-current="page"] {
  color: #fff;
  background: var(--night-raised);
}

/* 버튼 */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 30px rgba(109, 85, 230, 0.35);
}

.button-primary:hover {
  background: #7b65ee;
}

.button-ghost {
  border: 1px solid var(--night-line);
  background: rgba(23, 29, 58, 0.7);
  color: #fff;
}

.button-ghost:hover {
  border-color: var(--brand-outline);
}

/* 본문 섹션 */
.section {
  padding: 72px 0;
}

.section + .section {
  border-top: 1px solid var(--night-line);
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-lead {
  margin: 0 0 36px;
  max-width: 40em;
  color: var(--night-muted);
}

/* 정책 목록 */
.page-head {
  padding: 64px 0 40px;
  background: linear-gradient(180deg, #12172f 0%, var(--night) 100%);
  border-bottom: 1px solid var(--night-line);
}

.page-head h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.5vw, 42px);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.page-head p {
  margin: 0;
  max-width: 40em;
  color: var(--night-muted);
}

.policy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.policy-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--night-line);
  border-radius: 16px;
  background: var(--night-surface);
}

.policy-item .policy-name {
  font-size: 18px;
  font-weight: 700;
}

.policy-item a.policy-name {
  color: var(--brand-light);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.policy-item a.policy-name:hover {
  color: #fff;
}

.policy-item .policy-date {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--night-tertiary);
}

.policy-status {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--night-raised);
  color: var(--night-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.policy-status.is-preview {
  background: rgba(148, 119, 255, 0.2);
  color: var(--brand-light);
}

.note {
  margin: 28px 0 0;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--night-line);
  background: var(--night-elevated);
  color: var(--night-muted);
  font-size: 15px;
}

/* 푸터 */
.site-footer {
  margin-top: 48px;
  padding: 40px 0 48px;
  border-top: 1px solid var(--night-line);
  background: var(--night-surface);
  color: var(--night-tertiary);
  font-size: 14px;
}

.site-footer .wrap {
  display: grid;
  gap: 18px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-weight: 600;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-company {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}

.footer-company span {
  display: inline-block;
}

.footer-company span + span::before {
  content: "·";
  margin: 0 8px;
  color: var(--night-line);
}

.site-footer small {
  display: block;
  font-size: 13px;
}

@media (max-width: 860px) {
  .section {
    padding: 56px 0;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .site-header .wrap {
    min-height: 60px;
  }

  .brand .wordmark {
    height: 15px;
  }

  .site-nav a {
    padding: 8px 10px;
  }

  .policy-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .footer-company span + span::before {
    margin: 0 6px;
  }
}
