/* Shared stylesheet for where-you-at legal pages.
   Optimized for long-form Korean reading on phone and desktop. */

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
               "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: #1f2937;
  background: #f8fafc;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

header.page {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

header.page .crumb {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 8px;
}

header.page .crumb a {
  color: #2563eb;
  text-decoration: none;
}

header.page h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

header.page .meta {
  margin-top: 8px;
  font-size: 0.875rem;
  color: #6b7280;
}

main h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

main h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

main p, main li {
  font-size: 1rem;
}

main ul, main ol {
  padding-left: 24px;
}

main li {
  margin-bottom: 6px;
}

main table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95rem;
}

main table th, main table td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

main table th {
  background: #f3f4f6;
  font-weight: 600;
}

.placeholder {
  background: #fef3c7;
  border: 1px dashed #f59e0b;
  border-radius: 4px;
  padding: 0 6px;
  color: #92400e;
  font-weight: 500;
}

.callout {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 4px;
  font-size: 0.95rem;
}

footer.page {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Landing page */
.cards {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.card {
  display: block;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.05s;
}

.card:hover {
  border-color: #2563eb;
}

.card:active {
  transform: scale(0.995);
}

.card h2 {
  margin: 0 0 4px 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
}
