/* ═══════════════════════════════════════════════════════════════════════════
   HIGH RUN TRACKER — Policy Page
   Light Content + Dark Nav/Footer (keep tone)
   Changes:
   - EN uses globe icon (no US flag)
   - Desktop + Mobile language buttons same layout
   - Flags are SVG (no emoji)
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  --page-bg: #ffffff;
  --page-surface: #ffffff;
  --page-surface-2: #f6f7f9;
  --page-border: rgba(0, 0, 0, 0.08);

  --page-text: #0f172a;
  --page-text-secondary: #334155;
  --page-text-muted: #64748b;
  --page-heading: #0b1220;

  --accent: #d61f69;
  --radius: 10px;
  --radius-sm: 8px;

  --nav-bg: rgba(12, 12, 15, 0.90);
  --nav-border: rgba(255, 255, 255, 0.10);
  --nav-text: #f4f4f6;
  --nav-text-secondary: rgba(232, 232, 236, 0.72);

  --footer-bg: #0c0c0f;
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-text: #f4f4f6;
  --footer-text-muted: rgba(232, 232, 236, 0.70);
}

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body{
  font-family: 'Noto Sans KR','Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  background: var(--page-bg);
  color: var(--page-text);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Nav (Dark) ─────────────────────────────────────────────────────────── */
.nav{
  position: fixed; top:0; left:0; right:0;
  z-index:100;
  padding: 0 24px;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--nav-border);
}

.nav__inner{
  max-width: 980px;
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 72px;
}

.nav__logo{
  display:flex; align-items:center; gap: 12px;
  text-decoration:none;
  color: var(--nav-text);
}

.nav__logo-img{
  width: 38px; height: 38px;
  border-radius: 10px;
  display:block;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
  object-fit: cover;
}

.nav__logo-text{ display:inline-flex; flex-direction:column; line-height:1.05; }
.nav__logo-text strong{ font-size:16px; font-weight:900; letter-spacing:-0.02em; }
.nav__logo-text span{ font-size:12px; font-weight:600; color: var(--nav-text-secondary); margin-top:3px; letter-spacing:0.02em; }

.nav__links{ display:flex; align-items:center; gap:10px; }

.nav__link{
  text-decoration:none;
  color: var(--nav-text-secondary);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav__link:hover{ color: var(--nav-text); background: rgba(255,255,255,0.08); }
.nav__link--contact{
  color: #ffd1e6;
  border: 1px solid rgba(255, 209, 230, 0.25);
}
.nav__link--contact:hover{
  background: rgba(255, 209, 230, 0.12);
  border-color: rgba(255, 209, 230, 0.40);
}

/* Language Switch (Bigger / clearer) */
.nav__langs, .mobile-menu__langs{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-left: 4px;
  flex-wrap: wrap;
}

.lang-btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: var(--nav-text);
  cursor:pointer;
  user-select:none;
  font-weight: 900;
  letter-spacing: 0.10em;
  font-size: 12px;
  transition: background .2s, border-color .2s, transform .05s;
}

.lang-btn:hover{ background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.22); }
.lang-btn:active{ transform: translateY(1px); }
.lang-btn[aria-current="true"]{
  background: rgba(255,209,230,0.14);
  border-color: rgba(255,209,230,0.45);
}

.lang-btn__icon{ display:inline-flex; align-items:center; justify-content:center; }
.lang-btn__code{ font-family:'Inter',system-ui,-apple-system,sans-serif; }

/* SVG Flag Icons */
.flag-icon{
  display:block;
  width: 22px;
  height: 16px;
}

.flag-icon--rect{
  filter: drop-shadow(0 0 0 rgba(0,0,0,0));
}
.flag-icon--rect rect:first-child{
  fill: #ffffff;
  stroke: rgba(0,0,0,0.18);
  stroke-width: .6;
}

.jp-red{ fill: #bc002d; }

.es-red{ fill: #aa151b; }
.es-yellow{ fill: #f1bf00; }

.pt-red{ fill: #c8102e; }
.pt-green{ fill: #006847; }
.pt-gold{ fill: #ffcc00; opacity: .95; }

.ko-red{ fill: #cd2e3a; }
.ko-blue{ fill: #0047a0; }
.ko-black rect{ fill: #111827; }

.flag-icon--globe{
  width: 18px;
  height: 18px;
  fill: none;
  stroke: rgba(255,255,255,0.85);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flag-icon--globe circle{ stroke: rgba(255,255,255,0.75); }

/* Mobile toggle */
.nav__mobile-toggle{
  display:none;
  flex-direction:column;
  gap: 5px;
  background:none;
  border:none;
  cursor:pointer;
  padding: 10px;
}
.nav__mobile-toggle span{
  display:block;
  width: 22px;
  height: 2px;
  background: var(--nav-text-secondary);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav__mobile-toggle.active span:first-child{ transform: translateY(3.5px) rotate(45deg); }
.nav__mobile-toggle.active span:last-child{ transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu{
  display:none;
  position: fixed;
  top: 72px;
  left:0; right:0;
  z-index: 99;
  background: rgba(12,12,15,0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 14px 18px 18px;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid var(--nav-border);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s, opacity .25s;
}
.mobile-menu.open{ transform: translateY(0); opacity: 1; pointer-events:auto; }

.mobile-menu__link{
  display:block;
  text-decoration:none;
  color: var(--nav-text-secondary);
  font-size: 14px;
  font-weight: 800;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
}
.mobile-menu__link:hover{ color: var(--nav-text); background: rgba(255,255,255,0.07); }

.mobile-menu__langs{
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

/* ── Hero (Light) ───────────────────────────────────────────────────────── */
.hero{
  padding: 132px 24px 44px;
  text-align:center;
  background: linear-gradient(180deg,#ffffff 0%, #ffffff 70%, #f7f8fa 100%);
}
.hero__inner{ max-width: 760px; margin: 0 auto; }

.hero__label{
  display:inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--page-text);
  background: var(--page-surface-2);
  border: 1px solid var(--page-border);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero__title{
  font-size: clamp(26px,5vw,36px);
  font-weight: 950;
  color: var(--page-heading);
  letter-spacing: -0.03em;
  line-height: 1.22;
  margin-bottom: 10px;
}

.hero__desc{
  font-size: 15px;
  color: var(--page-text-secondary);
  line-height: 1.65;
  margin-bottom: 8px;
}

.hero__date{ font-size: 13px; color: var(--page-text-muted); }

/* Content */
.content{ max-width: 760px; margin: 0 auto; padding: 18px 24px 80px; }

/* Section */
.section{ margin-bottom: 42px; }
.section__header{
  display:flex; align-items:center; gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--page-border);
}
.section__number{
  font-family: 'Inter', monospace;
  font-size: 12px;
  font-weight: 950;
  color: var(--page-heading);
  background: var(--page-surface-2);
  border: 1px solid var(--page-border);
  width: 38px; height: 38px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 10px;
  flex-shrink: 0;
}
.section__title{ font-size: 22px; font-weight: 950; color: var(--page-heading); letter-spacing: -0.02em; }
.section__meta{ font-size: 13px; color: var(--page-text-muted); margin-bottom: 18px; padding-left: 4px; }

/* ── Legal Group (big outer box) ───────────────────────────────────────── */
.legal-group{
  border: 1px solid var(--page-border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── Article Row (one 조 / one privacy section) ─────────────────────── */
.article-row{
  padding: 22px 24px;
  border-bottom: 1px solid var(--page-border);
}
.article-row:last-child{ border-bottom: none; }

.article-row__heading{
  font-size: 15px;
  font-weight: 950;
  color: var(--page-heading);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

/* Privacy title line */
.article-row--title{
  text-align: center;
}
.article-row--title p{
  font-size: 13px;
  font-weight: 700;
  color: var(--page-text-muted);
  margin: 0;
}

/* Sub-section inside a row (Article 2 / Article 6 style) */
.article__section{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--page-border);
}
.article__section-heading{
  font-size: 13px;
  font-weight: 700;
  color: var(--page-heading);
  margin-bottom: 10px;
}

/* Text & lists — uniform style everywhere */
.article-row p{ color: var(--page-text-secondary); font-size: 14px; line-height: 1.85; }
.article-row p + p{ margin-top: 8px; }

.article-row ol,
.article-row ul{
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 6px;
}
.article-row ol li,
.article-row ul li{
  position: relative;
  padding-left: 16px;
  color: var(--page-text-secondary);
  font-size: 14px;
  line-height: 1.75;
}
.article-row ol li::before,
.article-row ul li::before{
  content: "–";
  position: absolute;
  left: 0;
  color: var(--page-text-muted);
}

.article-row strong{ color: var(--page-text); font-weight: 700; }
.article-row__contact{ margin-top: 8px; }
.article-row__contact a{
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

/* ── Contact Block ────────────────────────────────────────────────────── */
.contact-block{
  padding: 22px 24px;
  margin-top: 20px;
  border: 1px solid var(--page-border);
  border-radius: var(--radius);
}
.contact-block__heading{
  font-size: 15px;
  font-weight: 950;
  color: var(--page-heading);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.contact-block p{
  color: var(--page-text-secondary);
  font-size: 14px;
  line-height: 1.85;
}
.contact-block__email{
  margin-top: 8px;
}
.contact-block__email a{
  color: var(--accent);
  text-decoration: none;
  font-weight: 900;
  border-bottom: 1px solid rgba(214,31,105,0.28);
}
.contact-block__email a:hover{
  border-bottom-color: var(--accent);
}
.contact-block__note{
  margin-top: 14px;
  font-size: 13px;
  color: var(--page-text-muted);
  font-style: italic;
}

.legal-block p{ margin: 0; }
.legal-block p + p{ margin-top: 10px; }

/* Divider */
.divider{
  display:flex; align-items:center; justify-content:center;
  gap: 12px; padding: 44px 0;
}
.divider__dot{
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); opacity: .28;
}
.divider__line{
  width: 76px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.18), transparent);
}

/* Footer (Dark) */
.footer{
  border-top: 1px solid var(--footer-border);
  background: var(--footer-bg);
  padding: 44px 24px;
  text-align:center;
}
.footer__inner{ max-width: 760px; margin: 0 auto; }
.footer__brand{
  display:inline-flex; align-items:center; justify-content:center;
  gap: 12px; margin-bottom: 14px;
}
.footer__logo-img{
  width: 38px; height: 38px;
  border-radius: 10px;
  display:block;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
  object-fit: cover;
}
.footer__name{ font-size: 14px; font-weight: 950; color: var(--footer-text); letter-spacing: -0.02em; }
.footer__copy{ font-size: 12px; color: var(--footer-text-muted); margin-bottom: 8px; }
.footer__email a{ font-size: 12px; color: var(--footer-text-muted); text-decoration:none; }
.footer__email a:hover{ color: #ffd1e6; }

/* Responsive */
@media (max-width: 820px){
  .nav__inner, .content, .footer__inner{ max-width: 100%; }
}

@media (max-width: 640px){
  .nav{ padding: 0 14px; }
  .nav__inner{ height: 68px; }
  .nav__links{ display:none; }
  .nav__mobile-toggle{ display:flex; }
  .mobile-menu{ display:flex; top: 68px; }

  .nav__logo-img{ width: 36px; height: 36px; }

  .hero{ padding: 118px 16px 36px; }
  .hero__title{ font-size: 24px; }
  .content{ padding: 14px 16px 56px; }
  .legal-group{ border-radius: 8px; }
  .article-row{ padding: 18px 16px; }
  .article-row__heading{ font-size: 14px; }
  .article__section-heading{ font-size: 12px; }
  .contact-block{ padding: 18px 16px; margin-top: 16px; }
  .section__title{ font-size: 19px; }

  /* Keep SAME look as desktop (no full-width buttons) */
  .mobile-menu__langs{ gap: 10px; }
  .lang-btn{ padding: 10px 12px; }
}
