/* ===========================
   SV Membership - sv-membership.com Clone
   =========================== */

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

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  color: #1a1a1a;
  background: #fff;
}

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

/* ===========================
   SKIP LINK
   =========================== */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 0;
}

/* ===========================
   HEADER
   =========================== */

#header {
  background-color: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 4vw;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Nav (left side) */
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-nav-item {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.header-nav-item:hover,
.header-nav-item--active {
  border-bottom-color: #1a1a1a;
}

/* Title (center) */
.header-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

#site-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  text-decoration: none;
}

/* ===========================
   MAIN CONTENT
   =========================== */

#page {
  background: #ffffff;
  min-height: 60vh;
}

.page-section {
  padding: 60px 4vw;
}

.page-section.white-bg {
  background: #ffffff;
}

.content-wrapper {
  max-width: 1500px;
  margin: 0 auto;
}

.content-block {
  max-width: 800px;
  margin: 0 auto;
}

/* ===========================
   TYPOGRAPHY - Korean Terms
   =========================== */

.sqs-html-content h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 2.5rem;
  line-height: 1.2;
  color: #1a1a1a;
}

.sqs-html-content h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  line-height: 1.4;
  color: #1a1a1a;
}

.sqs-html-content p {
  margin: 0 0 0.85rem;
  line-height: 1.8;
  font-size: 0.95rem;
  color: #3a3a3a;
}

.sqs-html-content p.doc-meta {
  font-size: 0.875rem;
  color: #888;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e8e8;
}

/* ===========================
   FOOTER
   =========================== */

#footer {
  background: #1a1a1a;
  color: #ffffff;
}

.footer-section {
  padding: 32px 4vw;
}

.footer-inner {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-text p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.footer-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-btn {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.footer-btn:hover {
  border-color: rgba(255, 255, 255, 0.75);
  color: #ffffff;
}

/* ===========================
   MOBILE RESPONSIVE
   =========================== */

@media (max-width: 767px) {
  .header-inner {
    padding: 0 6vw;
    height: 56px;
  }

  .header-nav {
    display: none;
  }

  .page-section {
    padding: 40px 6vw;
  }

  .content-block {
    max-width: 100%;
  }

  .sqs-html-content h1 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .sqs-html-content h2 {
    font-size: 1rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .footer-buttons {
    flex-direction: row;
  }
}
