/* ============================================================
   YEJINC — legal.css
   Shared stylesheet for privacy.html and terms-of-service.html.
   Legal pages load ONLY this file (never style.css).
   ============================================================ */

.legal-page {
  background-color: #F8F7F2;
  color: #22281A;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #22281A;
}

a {
  color: #5C6E1F;
  text-decoration: none;
}

a:hover {
  color: #6F8914;
}

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

.legal-header {
  background-color: #5C6E1F;
  border-bottom: 4px solid #8FAE1B;
}

.legal-header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 44px;
}

.legal-home-link {
  display: inline-block;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.legal-home-link:hover {
  color: #E7EECB;
}

.legal-header-kicker {
  font-family: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E7EECB;
  margin-bottom: 10px;
}

.legal-header h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

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

.legal-content {
  padding: 56px 0 64px;
  background-color: #F8F7F2;
}

.legal-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Scope isolation: never paint section backgrounds over legal text */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-updated {
  font-size: 14px;
  color: #4A5238;
  margin-bottom: 28px;
  font-family: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
}

/* ============ TABLE OF CONTENTS ============ */

.legal-content .toc {
  background-color: #E7EECB;
  border: 1px solid #D5E0B0;
  border-left: 5px solid #8FAE1B;
  border-radius: 10px;
  padding: 26px 28px;
  margin-bottom: 48px;
}

.legal-content .toc h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5C6E1F;
  margin-bottom: 16px;
  font-family: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
}

.legal-content .toc ol {
  list-style: none;
  columns: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
}

.legal-content .toc li {
  font-size: 15px;
}

.legal-content .toc a {
  color: #22281A;
}

.legal-content .toc a:hover {
  color: #5C6E1F;
}

/* ============ SECTIONS ============ */

.legal-content section {
  margin-bottom: 46px;
}

.legal-content section h2 {
  font-size: 24px;
  font-weight: 800;
  color: #5C6E1F;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.legal-content section p {
  color: #3A412C;
  margin-bottom: 16px;
}

.legal-content section p:last-child {
  margin-bottom: 0;
}

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

.legal-footer {
  background-color: #5C6E1F;
  border-top: 4px solid #8FAE1B;
}

.legal-footer-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 24px;
  text-align: center;
}

.legal-footer p {
  color: #E7EECB;
  font-size: 14px;
  margin-bottom: 8px;
}

.legal-footer a {
  color: #FFFFFF;
  font-weight: 600;
}

.legal-footer a:hover {
  color: #E7EECB;
}

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

@media (max-width: 640px) {
  .legal-content .toc ol {
    grid-template-columns: 1fr;
  }
}
