/* ============================================================================
 * zeroeats — legal pages shell (privacy / terms / marketing)
 * Self-contained: does NOT load zeroeats-brand.css (home-specific WebGL/canvas
 * overrides would fight long-form text). Pure typography + minimal chrome.
 * ============================================================================ */

:root {
  --zr-lime: #C6FF2E;
  --zr-ink:  #0A0A0A;
  --zr-paper:#FFFFFF;
  --zr-muted:#5b5b5b;
  --zr-line: rgba(0,0,0,0.1);
}

html, body { margin: 0; padding: 0; background: #fff; }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
               system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--zr-ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.zr-legal-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Top bar (lime band, logo + mail button) ────────────────────────────── */
.zr-legal-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--zr-lime);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.zr-legal-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 1.4rem 2.4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.zr-legal-top a.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--zr-ink);
}
.zr-legal-top a.logo img {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: block;
}
.zr-legal-top a.logo span {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.025em;
}
.zr-legal-top .zr-mail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem; height: 4rem;
  border-radius: 9999px;
  background: var(--zr-ink);
  color: var(--zr-lime);
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
}
.zr-legal-top .zr-mail-btn:hover { background: var(--zr-lime); transform: scale(1.04); }
.zr-legal-top .zr-mail-btn svg { width: 20px; height: 20px; }
.zr-legal-top .zr-mail-btn svg path { stroke: var(--zr-lime); fill: none; }
.zr-legal-top .zr-mail-btn:hover svg path { stroke: var(--zr-ink); }

/* ─── Container ──────────────────────────────────────────────────────────── */
.zr-legal-main { flex: 1; }
.zr-legal-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 6rem 2.4rem 8rem;
}

/* ─── Typography ─────────────────────────────────────────────────────────── */
.zr-legal-container h1 {
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.8rem;
  color: var(--zr-ink);
}
.zr-legal-container .zr-legal-meta {
  font-size: 1.4rem;
  color: var(--zr-muted);
  margin-bottom: 3.2rem;
}
.zr-legal-container .zr-legal-meta span + span::before {
  content: " · ";
  margin: 0 0.5em;
  color: var(--zr-muted);
  opacity: 0.6;
}
.zr-legal-container p.zr-legal-intro {
  font-size: 1.6rem;
  line-height: 1.7;
  color: #333;
  margin: 0 0 3.6rem;
  padding: 1.6rem 1.8rem;
  background: #f7f8f3;
  border-left: 3px solid var(--zr-lime);
  border-radius: 0 0.6rem 0.6rem 0;
}
.zr-legal-container h2 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 4rem 0 1.2rem;
  color: var(--zr-ink);
}
.zr-legal-container h3 {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.4rem 0 0.8rem;
  color: var(--zr-ink);
}
.zr-legal-container p {
  font-size: 1.5rem;
  line-height: 1.75;
  margin: 0 0 1.2rem;
  color: #2c2c2c;
}
.zr-legal-container ul, .zr-legal-container ol {
  margin: 0 0 1.6rem;
  padding-left: 1.8rem;
}
.zr-legal-container ul li, .zr-legal-container ol li {
  font-size: 1.5rem;
  line-height: 1.7;
  margin-bottom: 0.6rem;
  color: #2c2c2c;
}
.zr-legal-container ul li::marker { color: var(--zr-muted); }
.zr-legal-container p.zr-legal-note {
  font-size: 1.35rem;
  color: var(--zr-muted);
  background: #fafafa;
  padding: 1rem 1.2rem;
  border-radius: 0.5rem;
  margin: 0.8rem 0 1.6rem;
}
.zr-legal-container a {
  color: var(--zr-ink);
  text-decoration: underline;
  text-decoration-color: var(--zr-lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.zr-legal-container a:hover {
  text-decoration-color: var(--zr-ink);
}

/* ─── Tables (for 위탁사 / 보관기간 표) ──────────────────────────────────── */
.zr-legal-container table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 2rem;
  font-size: 1.4rem;
}
.zr-legal-container thead th {
  background: #f1f2ee;
  text-align: left;
  padding: 1rem 1.2rem;
  font-weight: 700;
  border-bottom: 2px solid var(--zr-line);
}
.zr-legal-container tbody td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--zr-line);
  vertical-align: top;
}
.zr-legal-container tbody tr:last-child td { border-bottom: none; }

/* ─── Footer (cross-links + copyright) ───────────────────────────────────── */
.zr-legal-footer {
  border-top: 1px solid var(--zr-line);
  padding: 3.6rem 2.4rem 4rem;
  background: #fafafa;
}
.zr-legal-footer-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}
.zr-legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-size: 1.4rem;
}
.zr-legal-footer nav a {
  color: var(--zr-ink);
  text-decoration: none;
  font-weight: 600;
}
.zr-legal-footer nav a:hover { text-decoration: underline; }
.zr-legal-footer nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--zr-lime);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.zr-legal-footer small {
  font-size: 1.3rem;
  color: var(--zr-muted);
}

/* ─── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 699.98px) {
  .zr-legal-top-inner { padding: 1.1rem 1.4rem; }
  .zr-legal-top a.logo img { width: 32px; height: 32px; }
  .zr-legal-top a.logo span { font-size: 17px; }
  .zr-legal-top .zr-mail-btn { width: 3.6rem; height: 3.6rem; }
  .zr-legal-top .zr-mail-btn svg { width: 18px; height: 18px; }
  .zr-legal-container { padding: 4rem 1.6rem 6rem; }
  .zr-legal-container h2 { font-size: 1.7rem; }
  .zr-legal-container h3 { font-size: 1.45rem; }
  .zr-legal-container p, .zr-legal-container li { font-size: 1.4rem; }
  .zr-legal-footer { padding: 2.8rem 1.6rem 3.2rem; }
}
