/* SGC footer — light theme aligned with app pages (index, login, etc.) */
:root {
  --sgc-footer-bg-top: #f8fafc;
  --sgc-footer-bg-bottom: #edf2f7;
  --sgc-footer-border: #cbd5e0;
  --sgc-footer-accent: #4a90e2;
  --sgc-footer-accent-dark: #357abd;
  --sgc-footer-text: #2d3748;
  --sgc-footer-muted: #718096;
  --sgc-footer-max: 56rem;
}

.sgc-site-footer {
  box-sizing: border-box;
  width: 100%;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.75rem, 4vw, 2.5rem) 1rem clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(180deg, var(--sgc-footer-bg-top) 0%, var(--sgc-footer-bg-bottom) 100%);
  border-top: 1px solid var(--sgc-footer-border);
  color: var(--sgc-footer-text);
  font-family: "Noto Sans KR", "Roboto", sans-serif;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.sgc-site-footer *,
.sgc-site-footer *::before,
.sgc-site-footer *::after {
  box-sizing: border-box;
}

.sgc-footer-inner {
  max-width: var(--sgc-footer-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(0.75rem, 2vw, 1rem);
  padding-right: clamp(0.75rem, 2vw, 1rem);
}

.sgc-footer-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

@media (min-width: 640px) {
  .sgc-footer-main-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem 2rem;
    align-items: start;
  }
}

.sgc-footer-brand-col {
  max-width: 100%;
}

.sgc-footer-brand-logo {
  display: inline-flex;
  margin-bottom: 0.625rem;
}

.sgc-footer-brand-logo img {
  height: 2rem;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: none;
}

.sgc-footer-brand-text {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--sgc-footer-muted);
  max-width: min(100%, 42rem);
  white-space: pre-line;
}

.sgc-footer-col-title {
  margin: 0 0 0.625rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--sgc-footer-text);
  border-left: 3px solid var(--sgc-footer-accent);
  padding-left: 0.5rem;
  letter-spacing: 0.02em;
}

.sgc-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sgc-footer-links li {
  margin-bottom: 0.4rem;
}

.sgc-footer-links li:last-child {
  margin-bottom: 0;
}

.sgc-footer-links a {
  font-size: 0.8125rem;
  color: var(--sgc-footer-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sgc-footer-links a:hover {
  color: var(--sgc-footer-accent);
}

.sgc-footer-contact-inline {
  margin: 0 0 clamp(1rem, 2.5vw, 1.25rem);
  padding: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--sgc-footer-muted);
  text-align: center;
  border-top: 1px solid rgba(203, 213, 224, 0.85);
  word-break: keep-all;
}

@media (min-width: 640px) {
  .sgc-footer-contact-inline {
    text-align: left;
  }
}

.sgc-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(203, 213, 224, 0.85);
  font-size: 0.75rem;
  color: var(--sgc-footer-muted);
}

@media (min-width: 640px) {
  .sgc-footer-bottom {
    flex-direction: row;
    align-items: center;
  }
}

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

@media (min-width: 640px) {
  .sgc-footer-bottom-links {
    justify-content: flex-end;
  }
}

.sgc-footer-bottom-links a {
  color: var(--sgc-footer-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sgc-footer-bottom-links a:hover {
  color: var(--sgc-footer-accent-dark);
}

.sgc-footer-copy {
  margin: 0;
  text-align: center;
}

@media (min-width: 640px) {
  .sgc-footer-copy {
    text-align: left;
  }
}

@media print {
  .sgc-site-footer.sgc-footer--screen-only {
    display: none !important;
  }
}
