/* ==========================================================================
   누수의달인 - design tokens (clean corporate, blue accent)
   ========================================================================== */
:root {
  --bg: #f7f8fa;
  --bg-alt: #eef2f7;
  --surface: #ffffff;

  --navy: #16324f;
  --navy-dark: #0e2135;
  --teal: #0f8b8f;
  --teal-dark: #0c6d70;
  --blue: #2f6fed;
  --blue-dark: #1d4fbf;
  --blue-hover: #163e96;
  --amber: #d98a00;
  --green: #1f9d63;

  --ink: #1f2937;
  --ink-soft: #4b5563;
  --ink-muted: #6b7280;
  --ink-inverse: #e7ecf3;
  --ink-inverse-muted: #aebbd0;

  --border: rgba(23, 42, 61, 0.12);
  --border-strong: rgba(23, 42, 61, 0.2);

  --radius-lg: 0.75rem;
  --radius-md: 0.55rem;
  --radius-full: 999px;

  --container: 1240px;
  --container-narrow: 860px;

  --shadow-card: 0 2px 10px rgba(23, 42, 61, 0.06);
  --shadow-card-hover: 0 6px 18px rgba(23, 42, 61, 0.1);

  font-size: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  line-height: 1.6;
  word-break: keep-all;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0;
}

p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 2px;
  border-radius: 3px;
}

.site-footer :focus-visible,
.cta-box :focus-visible { outline-color: #fff; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  background: var(--blue-dark);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--container-narrow); }

.text-accent { color: var(--blue-dark); }
.text-accent-warm { color: var(--blue-dark); }
.text-emerald { color: var(--green); }
.block { display: block; }
.text-center { text-align: center; }

.highlight-pill {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.5rem 1.1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue-dark);
  border-radius: 0.3rem;
  color: var(--navy);
  font-weight: 700;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--blue-dark);
  color: #fff;
  border-color: var(--blue-dark);
}
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }

.btn-dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-dark); border-color: var(--navy-dark); }

.btn-outline { background: var(--surface); color: var(--navy); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--bg-alt); border-color: var(--navy); }

.btn-cta { background: #fff; color: var(--navy); }
.btn-cta:hover { background: var(--bg-alt); }

.btn-compact { padding: 0.5rem 1.1rem; font-size: 0.85rem; line-height: 1.2; flex-direction: column; gap: 0.1rem; }
.btn-strong { font-weight: 800; }
.btn-large { padding: 0.95rem 1.9rem; font-size: 1.02rem; }
.btn-xl { padding: 1.15rem 2.5rem; font-size: 1.2rem; }

/* ==========================================================================
   Top utility bar
   ========================================================================== */
.top-bar { background: var(--navy); color: var(--ink-inverse-muted); font-size: 0.82rem; font-weight: 600; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; padding: 0.45rem 1.5rem; }
.top-bar a { color: #fff; }
.top-bar a:hover { color: #cfe0ff; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.4rem;
  background: var(--blue-dark);
}

.brand-mark svg { width: 1.1rem; height: 1.1rem; }
.brand-accent { color: var(--blue-dark); }

.primary-nav ul { display: flex; gap: 1.75rem; }

.nav-item { position: relative; }

.primary-nav > ul > .nav-item > a {
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.95rem; font-weight: 700; color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active { color: var(--blue-dark); border-color: var(--blue-dark); }

.sub-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 11rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  padding: 0.4rem;
  z-index: 10;
  transition: opacity 0.15s ease;
}

.nav-item.has-children:hover .sub-menu,
.nav-item.has-children:focus-within .sub-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.sub-menu li a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  border-bottom: none;
}

.sub-menu li a:hover,
.sub-menu li a.is-active { background: var(--bg-alt); color: var(--navy); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 25%;
  width: 50%;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bar { top: 50%; transform: translateY(-50%); }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .top-bar-inner { flex-direction: column; gap: 0.15rem; text-align: center; padding: 0.55rem 1rem; }

  .nav-toggle { display: block; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-card-hover);
    max-height: 0;
    overflow: hidden;
    overflow-y: auto;
    transition: max-height 0.25s ease;
  }

  .primary-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 1.5rem 1rem; }

  .primary-nav > ul > .nav-item > a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--border); }

  .sub-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    display: block; position: static; transform: none; box-shadow: none;
    border: none; padding: 0 0 0.5rem 1rem; background: transparent;
  }

  .nav-item.has-children .sub-menu { display: none; }
  .nav-item.has-children.is-open .sub-menu { display: block; }

  .primary-nav.is-open { max-height: 32rem; }
  .btn-compact { display: none; }
}

/* ==========================================================================
   Sections / layout
   ========================================================================== */
.section { padding: 4.5rem 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-tight { padding: 3rem 0; }
.section-tight .section-head { margin-bottom: 1.75rem; text-align: left; max-width: none; }
.section-tight .section-head h2 { font-size: 1.3rem; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin-bottom: 0.75rem; line-height: 1.4; }
.section-head p { color: var(--ink-muted); font-size: 1rem; font-weight: 500; }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Main slide banner (home)
   ========================================================================== */
.slide { position: relative; width: 100%; height: min(46vh, 420px); min-height: 260px; overflow: hidden; background: var(--navy-dark); }

.slide-track { position: relative; width: 100%; height: 100%; }

.slide-item { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.7s ease; }
.slide-item.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide-item img { width: 100%; height: 100%; object-fit: cover; }

.slide-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(14,33,53,0.82) 0%, rgba(14,33,53,0.1) 55%, rgba(14,33,53,0.3) 100%);
}

.slide-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.75rem 1.5rem 2.25rem; color: #fff; text-align: center; }
.slide-caption .container { max-width: var(--container-narrow); }
.slide-caption .eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 700;
  color: #dbe7ff; background: rgba(47, 111, 237, 0.25); border: 1px solid rgba(47, 111, 237, 0.5);
  padding: 0.35rem 0.9rem; border-radius: var(--radius-full); margin-bottom: 0.85rem;
}
.slide-caption h1 { color: #fff; font-size: clamp(1.35rem, 3vw, 2rem); margin-bottom: 0.5rem; line-height: 1.4; }
.slide-caption p { color: rgba(255,255,255,0.82); font-weight: 500; font-size: 0.94rem; margin-bottom: 1.1rem; }
.slide-caption .hero-actions { display: flex; justify-content: center; gap: 0.7rem; flex-wrap: wrap; }

.slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: rgba(255,255,255,0.15); color: #fff; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.slide-nav:hover { background: rgba(255,255,255,0.28); }
.slide-prev { left: 1rem; }
.slide-next { right: 1rem; }

.slide-dots { position: absolute; left: 0; right: 0; bottom: 0.85rem; z-index: 3; display: flex; justify-content: center; gap: 0.4rem; }
.slide-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: rgba(255,255,255,0.4); }
.slide-dot.is-active { background: #fff; }

@media (max-width: 640px) {
  .slide { height: 56vh; min-height: 340px; }
  .slide-nav { display: none; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.badge-dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--blue); }

/* ==========================================================================
   Quick menu (홈 - 주요 메뉴 바로가기)
   ========================================================================== */
.quick-menu { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 860px) { .quick-menu { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .quick-menu { grid-template-columns: repeat(2, 1fr); } }

.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem 0.75rem; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.quick-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-card-hover); }
.quick-item .icon-circle { margin-bottom: 0; }
.quick-item span { font-weight: 700; color: var(--navy); font-size: 0.9rem; }

/* ==========================================================================
   Home widget row (공지사항 / 오시는길 요약)
   ========================================================================== */
.widget-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .widget-grid { grid-template-columns: 1fr; } }

.widget-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }
.widget-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.widget-head h2 { font-size: 1.05rem; }
.widget-head a { font-size: 0.82rem; font-weight: 700; color: var(--ink-muted); }
.widget-head a:hover { color: var(--blue-dark); }

.widget-box .notice-item { padding: 0.85rem 0; }
.widget-box .notice-item:first-child { border-top: none; }
.widget-info-list { margin-top: 0; }

/* ==========================================================================
   Sub-page hero
   ========================================================================== */
.page-hero { padding: 3rem 0; text-align: center; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.page-hero .badge { margin-bottom: 1rem; }
.page-hero h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem; }
.page-hero p { color: var(--ink-muted); font-weight: 500; font-size: 1rem; max-width: 620px; margin: 0 auto; }

.crumb { display: inline-flex; gap: 0.4rem; font-size: 0.85rem; color: var(--ink-muted); font-weight: 600; margin-bottom: 1rem; }
.crumb a:hover { color: var(--navy); }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.85rem;
  position: relative;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.principle-card:hover, .service-card:hover, .region-card:hover, .insurance-card:hover, .info-card:hover, .testimonial-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: var(--radius-md);
  font-size: 1.45rem;
  margin-bottom: 1.1rem;
}

.icon-circle--coral { background: rgba(47, 111, 237, 0.1); }
.icon-circle--teal { background: rgba(15, 139, 143, 0.1); }
.icon-circle--navy { background: rgba(22, 50, 79, 0.07); }
.icon-circle--teal-solid { background: var(--teal); }

.principle-card h3, .service-card h3, .insurance-card h3, .info-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.principle-card p, .service-card p, .insurance-card p, .info-card p { color: var(--ink-muted); font-weight: 500; line-height: 1.7; font-size: 0.94rem; }

/* ==========================================================================
   Services
   ========================================================================== */
.service-media { height: 9rem; border-radius: var(--radius-md); margin-bottom: 1.25rem; overflow: hidden; border: 1px solid var(--border); }
.service-media img { width: 100%; height: 100%; object-fit: cover; }

.check-list { margin-top: 0.9rem; display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.86rem; font-weight: 700; color: var(--ink-soft); }
.check-list li { display: flex; align-items: center; gap: 0.5rem; }
.check-list li::before { content: "✔"; color: var(--blue); }
.check-list--amber li::before { color: var(--amber); }
.check-list--teal li::before { color: var(--teal); }

/* ==========================================================================
   Regions
   ========================================================================== */
.region-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.region-sub { font-size: 0.82rem; font-weight: 700; color: var(--ink-muted); margin-bottom: 1.1rem; }

.dot-list { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.88rem; color: var(--ink-soft); font-weight: 500; margin-bottom: 1.25rem; }
.dot-list li::before { content: "✔ "; color: var(--teal); }

.region-tag { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 0.4rem; padding: 0.6rem 0.85rem; font-size: 0.86rem; font-weight: 700; color: var(--navy); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-card { padding: 1.5rem; }
.stars { color: var(--amber); letter-spacing: 0.08em; margin-bottom: 0.65rem; font-size: 0.85rem; }
.stars span { color: var(--navy); font-weight: 700; margin-left: 0.4rem; letter-spacing: normal; }
.quote { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 0.9rem; font-weight: 500; }

.quote-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 0.9rem; border-top: 1px solid var(--border); font-size: 0.82rem; }
.quote-name { font-weight: 700; color: var(--navy); }
.quote-tag {
  font-size: 0.68rem; color: var(--blue-dark); background: rgba(47, 111, 237, 0.08);
  border: 1px solid rgba(47, 111, 237, 0.2); padding: 0.22rem 0.55rem; border-radius: var(--radius-full);
}

/* ==========================================================================
   Insurance
   ========================================================================== */
.insurance-card--featured { border-color: var(--teal); }

/* ==========================================================================
   FAQ / table / accordion
   ========================================================================== */
.faq-summary { margin-bottom: 2rem; }
.faq-summary h3 { font-size: 1.05rem; margin-bottom: 1.1rem; display: flex; align-items: center; gap: 0.5rem; }

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

table { width: 100%; min-width: 460px; border-collapse: collapse; text-align: left; font-size: 0.88rem; }
thead th { color: var(--ink-muted); font-weight: 700; padding-bottom: 0.7rem; border-bottom: 1px solid var(--border-strong); }
tbody th, tbody td { padding: 1rem 0.7rem 1rem 0; vertical-align: top; border-bottom: 1px solid var(--border); color: var(--ink-soft); font-weight: 500; }
tbody th { color: var(--navy); font-weight: 700; }

.accordion { display: flex; flex-direction: column; gap: 0.85rem; }
.accordion-item { padding: 0; overflow: hidden; }
.accordion-item h3 { margin: 0; font-size: 1rem; }

.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 1.5rem; text-align: left; font-weight: 700; font-size: 1rem; color: var(--navy);
}

.chevron { color: var(--ink-muted); font-size: 1.2rem; transition: transform 0.2s ease; flex-shrink: 0; }
.accordion-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.accordion-panel { padding: 0 1.5rem 1.3rem; border-top: 1px solid var(--border); padding-top: 0.9rem; color: var(--ink-soft); font-weight: 500; line-height: 1.7; }

/* ==========================================================================
   Gallery (공사실적)
   ========================================================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 960px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.gallery-item .photo { aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption { padding: 0.9rem 1.1rem; }
.gallery-caption h3 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.gallery-caption p { font-size: 0.82rem; color: var(--ink-muted); font-weight: 600; }

/* ==========================================================================
   Notice list (공지사항)
   ========================================================================== */
.notice-list { display: flex; flex-direction: column; }
.notice-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 0; border-bottom: 1px solid var(--border);
}
.notice-item:first-child { border-top: 1px solid var(--border-strong); }
.notice-title { font-weight: 700; color: var(--navy); }
.notice-tag {
  display: inline-block; margin-right: 0.55rem; font-size: 0.7rem; font-weight: 800;
  color: var(--blue-dark); background: rgba(47, 111, 237, 0.08); padding: 0.18rem 0.5rem; border-radius: var(--radius-full);
}
.notice-date { font-size: 0.82rem; color: var(--ink-muted); font-weight: 600; white-space: nowrap; }

/* ==========================================================================
   Map / location
   ========================================================================== */
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--border); }
.map-frame iframe { width: 100%; height: 360px; border: 0; display: block; }

.info-list { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1.35rem; }
.info-list li { display: flex; gap: 0.7rem; font-size: 0.92rem; color: var(--ink-soft); font-weight: 600; }
.info-list li strong { color: var(--navy); min-width: 5rem; flex-shrink: 0; }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.cta-box {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 3.25rem) clamp(1.5rem, 5vw, 3rem);
}

.cta-box h2 { color: #fff; font-size: clamp(1.5rem, 3.6vw, 2.1rem); line-height: 1.4; margin-bottom: 1rem; }
.cta-box p { font-size: 1.02rem; color: var(--ink-inverse); font-weight: 500; margin-bottom: 1.75rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-dark); padding: 2.75rem 0; font-size: 0.88rem; color: var(--ink-inverse-muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.footer-brand { color: var(--ink-inverse); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a:hover { color: #fff; }

@media (max-width: 640px) { .footer-inner { flex-direction: column; text-align: center; } }

/* ==========================================================================
   Legal pages (이용약관 / 개인정보처리방침)
   ========================================================================== */
.legal-hero { padding: 3.5rem 0 2.5rem; text-align: center; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.legal-hero p { color: var(--ink-muted); font-weight: 600; margin-top: 0.5rem; }

.back-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--ink-muted); margin-bottom: 1.4rem; }
.back-link:hover { color: var(--navy); }

.legal-content { padding: 3rem 0 5rem; }
.legal-content section { margin-bottom: 2.25rem; }
.legal-content h2 { font-size: 1.25rem; margin-bottom: 0.85rem; padding-top: 0.5rem; }
.legal-content h3 { font-size: 1rem; margin: 1.2rem 0 0.5rem; }
.legal-content p { color: var(--ink-soft); line-height: 1.8; margin-bottom: 0.7rem; }
.legal-content ol,
.legal-content ul { list-style: revert; padding-left: 1.4rem; margin: 0 0 1rem; color: var(--ink-soft); line-height: 1.8; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content strong { color: var(--navy); }
.legal-content .table-scroll { margin: 1rem 0 1.5rem; }

/* ==========================================================================
   Motion
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge-dot { animation: none; }
}
