:root {
  --color-primary: #2f6f4f;
  --color-primary-dark: #1f4d36;
  --color-text: #202225;
  --color-text-muted: #55585c;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8f7;
  --color-border: #e4e7e5;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(32, 34, 37, 0.06);
  --max-width: 960px;
  --font-body: -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR",
    "Malgun Gothic", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

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

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
}

.site-logo:hover {
  text-decoration: none;
}

.site-logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.site-nav a:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
}

/* Main */
.content-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--color-text-muted);
  margin-bottom: 1.1rem;
  max-width: 68ch;
}

.lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-bottom: 2rem;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(32, 34, 37, 0.1);
}

.card h3 {
  margin-top: 0;
}

.card h3 a {
  color: var(--color-text);
}

.card p {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.65rem 1.25rem;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--color-primary-dark);
}

/* Service detail */
.service-hero {
  margin-bottom: 2rem;
}

.service-hero .summary {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}

/* Service legal links */
.service-legal-links {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.service-legal-links h2 {
  font-size: 1.0625rem;
  margin-bottom: 0.75rem;
}

.service-legal-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  padding: 2.5rem 1.5rem;
  margin-top: 3rem;
  text-align: center;
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.copyright {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  max-width: none;
}

/* 404 */
.not-found {
  text-align: center;
  padding: 4rem 0;
}

/* Responsive */
@media (max-width: 640px) {
  .content-wrapper {
    padding: 2rem 1rem 3rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  .site-header-inner {
    flex-direction: row;
    padding: 0.875rem 1rem;
  }
}
