/* ============================================================================
 * legal.css — shared styling for the marketing sub-pages (terms, privacy,
 * refund, subscription, pricing, contact). Loaded as a plain stylesheet; the
 * global footer brings its own styles (see site-footer.js).
 *
 * Bilingual: each page carries a .loc-ko and a .loc-en block; the visitor's
 * language is selected by the `i18n-en` <html> class set before paint (same
 * convention as landing.html / hall.html).
 * ========================================================================== */

@font-face {
  font-family: "Galmuri11";
  src: url("/fonts/Galmuri11.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: "Galmuri11";
  src: url("/fonts/Galmuri11-Bold.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
}
@font-face {
  font-family: "Galmuri14";
  src: url("/fonts/Galmuri14.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

:root {
  --bg: #0a0805;
  --bg-soft: #14100a;
  --bg-card: #1c1611;
  --ink: #f4ecd8;
  --muted: #8e8475;
  --y: #e8b400;
  --line: #2a201a;
  --name: #c9b78a;
  --max-w: 82rem;
}

* { box-sizing: border-box; }

html { font-size: 10px; }
@media (pointer: coarse) { html { font-size: 9px; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  /* Long-form legal text prioritises readability over the pixel display font. */
  font-family: "Noto Sans KR", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.5rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--y); }
a:hover, a:focus-visible { text-decoration: underline; }
a:focus-visible { outline: 0.2rem solid var(--y); outline-offset: 0.2rem; }

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 8, 5, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 0.1rem solid var(--line);
}
.legal-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  justify-content: space-between;
}
.legal-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--y);
  text-decoration: none;
  font-family: "Galmuri14", "Galmuri11", monospace;
  font-size: 1.6rem;
}
.legal-logo img { width: 2.4rem; height: 2.4rem; }
.legal-nav a.legal-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 1.4rem;
}
.legal-nav a.legal-back:hover { color: var(--y); }

/* ── Article ─────────────────────────────────────────────────────────────── */
main.legal {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4.8rem 2rem 6.4rem;
}
.legal h1 {
  font-family: "Galmuri14", "Galmuri11", monospace;
  color: var(--y);
  font-size: 3.2rem;
  line-height: 1.25;
  margin: 0 0 0.8rem;
}
.legal .updated {
  color: var(--muted);
  font-size: 1.3rem;
  margin: 0 0 3.2rem;
}
.legal h2 {
  font-size: 2rem;
  color: var(--ink);
  margin: 3.6rem 0 1.2rem;
  padding-top: 1.6rem;
  border-top: 0.1rem solid var(--line);
}
.legal h3 { font-size: 1.7rem; color: var(--name); margin: 2.4rem 0 0.8rem; }
.legal p, .legal li { font-size: 1.5rem; }
.legal ul, .legal ol { padding-left: 2.2rem; margin: 0.8rem 0 1.6rem; }
.legal li { margin-bottom: 0.6rem; }
.legal strong { color: var(--ink); }
.legal .lead {
  font-size: 1.6rem;
  color: var(--muted);
  border-left: 0.3rem solid var(--y);
  padding: 0.4rem 0 0.4rem 1.6rem;
  margin: 0 0 2.4rem;
}

/* Business-info / data-table layout used across the policy pages. */
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 2.4rem;
  font-size: 1.35rem;
}
.legal th, .legal td {
  border: 0.1rem solid var(--line);
  padding: 1rem 1.2rem;
  text-align: left;
  vertical-align: top;
}
.legal th { background: var(--bg-soft); color: var(--name); font-weight: 700; }
.legal .biz-list { list-style: none; padding: 0; margin: 0 0 2.4rem; }
.legal .biz-list li {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 1.2rem;
  padding: 0.6rem 0;
  border-bottom: 0.1rem solid var(--line);
}
.legal .biz-list .k { color: var(--name); }
@media (max-width: 560px) {
  .legal .biz-list li { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* Callout box for the Paddle Merchant-of-Record notice. */
.legal .callout {
  background: var(--bg-card);
  border: 0.1rem solid var(--line);
  border-left: 0.3rem solid var(--y);
  border-radius: 0.6rem;
  padding: 1.6rem 2rem;
  margin: 2rem 0;
  font-size: 1.45rem;
}

/* Effective-date footer line on policy pages. */
.legal .effective {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 0.1rem solid var(--line);
  color: var(--muted);
  font-size: 1.35rem;
}

/* ── Locale gate ─────────────────────────────────────────────────────────── */
.loc-en { display: none; }
html.i18n-en .loc-ko { display: none; }
html.i18n-en .loc-en { display: block; }
