/* i18n.jsx — Korean/English string table + LangContext
   Single source of truth for bilingual copy. Every component reads from
   t(key) so the KO|EN toggle in MarketingNav flips the whole page at once. */

const LangContext = React.createContext({ lang: 'ko', setLang: () => {} });

const STR = {
  /* Nav */
  'nav.programs':   ['프로그램',     'Programs'],
  'nav.curriculum': ['커리큘럼',     'Curriculum'],
  'nav.system':     ['학습 시스템',  'How it works'],
  'nav.schedule':   ['시간표',       'Schedule'],
  'nav.app':        ['앱',           'App'],
  'nav.media':      ['미디어',       'Media'],
  'nav.book':       ['도서',         'Book'],
  'nav.reviews':    ['후기',         'Reviews'],
  'nav.signin':     ['로그인',       'Sign in'],
  'nav.cta':        ['무료 진단',    'Free check-up'],
  'nav.signin.menu':      ['로그인',          'Sign in'],
  'nav.signin.menu.desc': ['계정 종류를 선택해 주세요', 'Pick your account type'],
  'nav.signin.parent':     ['학부모 전용',     'Parents only'],
  'nav.signin.parent.sub': ['결제·자녀 진도·용돈 승인·기기 관리', 'Billing, progress, allowance, devices'],
  'nav.signin.teacher':     ['선생님 전용',    'Teachers only'],
  'nav.signin.teacher.sub': ['가입 승인·코드 발급·학생 적립·수업일지', 'Approvals, codes, earnings, notes'],

  /* Sign-in modal */
  'signin.modal.title':     ['로그인',                'Sign in'],
  'signin.modal.desc':      ['계정 유형을 선택하세요. 대표 승인을 받은 분만 입장할 수 있어요.',
                             'Choose your account type. Owner approval is required to enter.'],
  'signin.modal.desc.single':['대표 승인을 받은 분만 입장할 수 있어요.',
                              'Owner approval is required to enter.'],
  'signin.parent.title':    ['학부모 전용',           'Parents only'],
  'signin.parent.desc':     ['결제·자녀 진도·용돈 승인·기기 관리를 한 화면에서.',
                             'Billing, child progress, allowance, and devices — in one screen.'],
  'signin.teacher.title':   ['선생님 전용',           'Teachers only'],
  'signin.teacher.desc':    ['가입 승인·코드 발급·학생 적립·수업일지 작성.',
                             'Approvals, sign-up codes, student earnings, and class notes.'],
  'signin.cta.kakao':       ['카카오로 시작하기',     'Continue with Kakao'],
  'signin.cta.google':      ['Google로 시작하기',     'Continue with Google'],
  'signin.badge.approval':  ['대표 승인 필요',        'Owner approval required'],
  'signin.note.parent':     ['처음이시라면 첫 로그인 시 가입 신청이 자동으로 접수되며, 대표 승인 후 이용할 수 있어요.',
                             'First time? Your access request is filed automatically on first sign-in and activates once the owner approves.'],
  'signin.note.teacher':    ['선생님 계정은 대표 승인 후 활성화돼요. 미승인 상태에서는 입장이 제한됩니다.',
                             'Teacher accounts activate after owner approval. Access is restricted until then.'],
  'signin.firsttime':       ['처음이신가요? ',       'First time? '],
  'signin.firsttime.link':  ['무료 진단부터 시작 →',  'Start with a free check-up →'],

  /* Hero */
  'hero.eyebrow':   ['SRIKI', 'SRIKI'],
  /* h1.ko = main headline (full slogan in the current language).
     h1.en = brand sub-tagline. Pinned to "Connect the dots" in both
     language modes — no period — so the tagline reads consistently. */
  'hero.h1.ko':     ['수학에서 출발해,\n아이의 인생을 설계합니다.', 'Start with math.\nDesign a child\'s life.'],
  'hero.h1.en':     ['수학을 넘어, 사고력과 금융교육까지 함께.', 'Beyond math — into thinking and finance, together.'],
  'hero.sub':       [
    '매주 6–8명 소수정예 수업 · 매주 학부모 카톡 리포트 · 매경/한경 출연 · KB 재직 출신 대표가 직접 운영합니다.',
    'Six to eight students per class. A Kakao report to parents every week. Featured in Maeil Business and Hankyung. Founded by an ex-KB quant.',
  ],
  'hero.cta.primary':   ['무료 진단 신청',     'Start free check-up'],
  'hero.cta.secondary': ['앱 다운로드',        'Download the app'],

  /* LogoStrip */
  'logos.kicker': ['출연·기고·연결 매체', 'Featured in'],

  /* About */
  'about.eyebrow':  ['스리키 수학 학원의 3가지 강점',  'Three reasons to choose SRIKI'],
  'about.h2':       ['수학·사고력·금융 교육을 한 번에.', 'Math, thinking, and finance education — all in one place.'],
  'about.card.1.label': ['교과수학', 'School math'],
  'about.card.1.title': ['교과서 위주로\n확실히 잡는다.', 'Locked in,\ntextbook by textbook.'],
  'about.card.1.body':  ['초등 1~6학년 교과과정을 학기 단위로 게임화. 수와 연산·도형·측정·자료와 가능성 4영역을 반복 훈련해, 가장 중요한 중간고사·기말고사부터 학교 단원평가·수행평가 점수까지 확실하게 끌어올립니다.', 'Grades 1–6 mapped 1:1 to the Korean curriculum, gamified by semester. Numbers, geometry, measurement, and data — drilled to lift the scores that matter most: mid-terms, finals, unit tests, and performance assessments.'],
  'about.card.2.label': ['사고력 수학', 'Thinking math'],
  'about.card.2.title': ['정답이 아니라\n사고 과정을 훈련한다.', 'Train the thinking process,\nnot just the answer.'],
  'about.card.2.body':  ['추론·관찰·공간·논리·전략 — 정답이 하나뿐인 문제가 아니라 "왜?"를 묻는 힘을 기릅니다. 경시·영재 대비는 물론, 중·고등에서 무너지지 않는 수학 머리를 초등에서 만들어 둡니다.', 'Reasoning, observation, spatial, logic, strategy — children learn to ask "why" instead of chasing a single answer. The thinking spine that holds up through middle and high school.'],
  'about.card.3.label': ['금융교육', 'Finance'],
  'about.card.3.title': ['학교에서 안 가르치는 진짜 금융교육', 'The real finance education school skips'],
  'about.card.3.body':  ['돈 습관은 초등에서 굳어집니다. 유대인 가정의 금융 교육법 "5 Jars(다섯 항아리)" 원리를 바탕으로, 벌기·쓰기·모으기·지키기·나누기 5단원을 구성. 용돈 관리·소비·저축·신용·기부까지, 어른이 되어 후회하지 않을 의사결정 근육을 지금 만듭니다.', 'Money habits set in elementary school. Built on the Jewish "5 Jars" tradition — Earn, Spend, Save, Protect, Give — five units that grow the decision-making muscle adults wish they had learned earlier.'],

  /* Founder */
  'founder.eyebrow': ['대표 원장 프로필', 'Founder · Director'],
  'founder.name':    ['안지선',     'Ji-Sun Ahn'],
  'founder.role':    ['대표 원장 · 퀀트 애널리스트',   'Founder · Quant Analyst'],
  'founder.bio':     [
    '연세대학교 학사·석사. 前 다올투자증권(現 KTB투자증권), 前 KB자산운용을 거쳐 現 유진투자증권 퀀트 애널리스트로 재직 중. 매일경제·한국경제·YTN 등 다수 방송 출연.',
    'Yonsei University, BA & MA. Quant analyst — formerly at Daol Securities (now KTB) and KB Asset Management, currently at Eugene Investment & Securities. Featured on Maekyung, Hankyung, YTN, and other major media.',
  ],
  'founder.quote':   [
    '"누구에게나 과거의 자신에게 들려주고 싶은 이야기가 있습니다. 타임머신을 타고 돌아갈 수 있다면, 저는 어린 저에게 ‘돈을 다루는 법’을 먼저 가르치고 싶었습니다. 그래서 스리키를 시작했습니다 — 우리 아이들이 어른이 되어 같은 후회를 하지 않도록."',
    '"Everyone has something they wish they could tell their younger self. If I could travel back in time, the first thing I\'d teach little me is how to handle money. That\'s why I started SRIKI — so today\'s children don\'t carry the same regrets when they grow up."',
  ],

  /* Programs */
  'prog.eyebrow':   ['프로그램', 'Programs'],
  'prog.h2':        ['하나의 시스템, 여섯 가지 형식.', 'One system. Six formats.'],
  'prog.1.label':   ['오프라인',     'Offline'],
  'prog.1.title':   ['소수정예 수업',  'Class of 6–8'],
  'prog.1.body':    ['수·금 두 반. 학생 6–8명 정원. 매주 90분.', 'Wed and Fri cohorts. 90 minutes each.'],
  'prog.2.label':   ['앱',          'SRIKI App'],
  'prog.2.title':   ['자녀 학습 앱',   'For the child'],
  'prog.2.body':    ['매일 사고력 5문제. 푸시 알림으로 부담 없이.', 'Five thinking problems a day. Gentle push, gentle pace.'],
  'prog.3.label':   ['학습지',       'Weekly'],
  'prog.3.title':   ['스리키 위클리',  'SRIKI Weekly'],
  'prog.3.body':    ['매주 1호 우편 배송. 손으로 쓰는 깊이.', 'A printed issue every week, by mail.'],
  'prog.4.label':   ['교구',         'Tools'],
  'prog.4.title':   ['교구 · 보드게임', 'Manipulatives & games'],
  'prog.4.body':    ['수업에서 다룬 개념을 집에서 다시 만지게.', 'Bring the classroom concepts home, in hand.'],
  'prog.5.label':   ['캠프',         'Camp'],
  'prog.5.title':   ['여름 캠프',     'Summer camp'],
  'prog.5.body':    ['주식 모의투자 · 사업계획서 · 수학 보드게임.', 'Mock investing, biz plans, math boards.'],
  'prog.6.label':   ['국제대회',     'Global'],
  'prog.6.title':   ['국제대회반',     'Olympiad track'],
  'prog.6.body':    ['Year 2 이후 — AMC · KMC · 국제 금융 올림피아드.', 'From Year 2 — AMC, KMC, finance olympiads.'],
  'prog.more':      ['자세히 →',      'Learn more →'],

  /* Curriculum */
  'cur.eyebrow':    ['학년별',         'By grade'],
  'cur.h2':         ['이 시기에 우리 아이가 배우는 것.', 'What your child learns, by stage.'],
  'cur.tab.1':      ['저학년 (1–3)',   'Low elementary (1–3)'],
  'cur.tab.2':      ['고학년 (4–6)',   'High elementary (4–6)'],
  'cur.math':       ['수학',           'Math'],
  'cur.thinking':   ['사고력',         'Thinking'],
  'cur.finance':    ['금융',           'Finance'],
  'cur.pdf':        ['상세 PDF 받기',   'Download PDF'],
  'cur.diag':       ['무료 진단 신청',  'Free check-up'],

  /* Learning system */
  'sys.eyebrow':    ['학습 시스템',     'How learning flows'],
  'sys.h2':         ['수업이 끝난 후 리포트 발송', 'Reports sent right after every class.'],
  'sys.s1.label':   ['수업',           'Class'],
  'sys.s1.body':    ['매주 90분 · 6–8명', '90 min weekly · 6–8 students'],
  'sys.s2.label':   ['앱',             'App'],
  'sys.s2.body':    ['매일 5문제 자녀 푸시', 'Daily 5 problems'],
  'sys.s3.label':   ['학부모 대시보드',     'Parent dashboard'],
  'sys.s3.body':    ['자녀 진도·정답률·결제 한 화면', 'Progress · accuracy · billing'],
  'sys.s4.label':   ['학부모 리포트',   'Parent report'],
  'sys.s4.body':    ['수업 30분 안에 카톡', '30 min via KakaoTalk'],
  'sys.preview':    ['학부모 대시보드 둘러보기', 'Preview the parent dashboard'],
  'sys.preview.eyebrow': ['학부모 대시보드', 'Parent dashboard'],
  'sys.preview.title':   ['로그인하면 자녀 진도·결제·리포트가 한 화면에.', 'Sign in and see your child\'s progress, billing, and reports in one screen.'],
  'sys.preview.body':    ['주간 학습일수·정답률·오늘 받은 카톡 알림까지. 학부모 마이페이지에서 모두 확인할 수 있습니다.', 'Weekly attendance, accuracy, and today\'s Kakao alerts — all on the Parent My page.'],

  /* Media library */
  'media.eyebrow':  ['미디어 라이브러리', 'In the media'],
  'media.h2':       ['방송에서, 칼럼에서, 인터뷰에서.', 'On TV, in columns, in interviews.'],
  'media.f.all':    ['전체',           'All'],
  'media.f.tv':     ['방송',           'TV'],
  'media.f.itw':    ['인터뷰',         'Interviews'],
  'media.f.col':    ['칼럼',           'Columns'],
  'media.f.short':  ['숏폼',           'Shorts'],
  'media.faq':      ['이 영상을 본 학부모가 가장 많이 한 질문', 'What parents ask after watching'],

  /* Book */
  'book.eyebrow':   ['도서', 'The book'],
  'book.title':     ['「퀀트 엄마의 금융 수업」', '“Quant Mom\'s Finance Class”'],
  'book.sub':       ['책의 챕터가 수업의 단원이 됩니다.', 'Each chapter maps to a unit of class.'],
  'book.preview':   ['미리보기 PDF', 'Preview PDF'],
  'book.buy.kyobo': ['교보문고',  'Kyobo'],
  'book.buy.yes24': ['예스24',    'Yes24'],
  'book.buy.aladin':['알라딘',    'Aladin'],
  'book.map.h':     ['책 ↔ 수업 챕터 매핑', 'Chapter ↔ unit mapping'],

  /* Testimonials */
  'rev.eyebrow':    ['후기', 'Testimonials'],
  'rev.h2':         ['아이의 변화는 학부모가 가장 먼저 봅니다.', 'Parents notice the change first.'],
  'rev.tab.p':      ['학부모',     'Parents'],
  'rev.tab.s':      ['학생 작품',  'Student work'],
  'rev.tab.a':      ['수상',       'Awards'],
  'rev.more':       ['후기 더 보기 →', 'Read more →'],

  /* Free assessment */
  'fa.eyebrow':     ['무료 진단', 'Free check-up'],
  'fa.h2':          ['2분이면 자녀의 현재를 확인할 수 있습니다.', 'Two minutes to gauge your child.'],
  'fa.step.1':      ['학년 선택', 'Grade'],
  'fa.step.2':      ['진단 문항', 'Questions'],
  'fa.step.3':      ['상담 시간', 'Time'],
  'fa.step.4':      ['확인',     'Confirm'],
  'fa.next':        ['다음',     'Next'],
  'fa.prev':        ['이전',     'Back'],
  'fa.q1':          ['1/4 + 1/8 의 답은?', 'What is 1/4 + 1/8?'],
  'fa.q2':          ['용돈 1만원의 일부를 저축한다면, 가장 합리적인 비율은?', 'If a child must save part of 10,000 won, what is the most reasonable share?'],
  'fa.q3':          ['도형 4개를 일렬로 놓는 방법의 수는?', 'How many ways to arrange 4 shapes in a row?'],
  'fa.book':        ['카카오로 상담 예약', 'Book with KakaoTalk'],

  /* Schedule */
  'sch.eyebrow':    ['시간표', 'Class schedule'],
  'sch.h2':         ['수·금 운영 / 주 90분 소수정예', 'Wed & Fri only · 90 min · small cohort'],
  'sch.book':       ['자리 잡기', 'Reserve a seat'],
  'sch.wait':       ['대기 등록', 'Join waitlist'],
  'sch.full':       ['대기',     'Waitlist'],
  'sch.closed':     ['—',        '—'],

  /* App content (between LearningSystem and AppDownload) */
  'appc.eyebrow':   ['앱 콘텐츠',                 'What\'s inside the app'],
  'appc.h2':        ['한 앱, 817개 게임.', 'One app. 817 games.'],
  'appc.sub':       ['매일 5문제 미션 외에도, 자체 제작 앱 안에 817개 게임이 자유 학습용으로 준비돼 있습니다. 광고도 외부 영상도 끼어들지 않는, 학습에만 집중한 공간입니다.', 'Beyond the five daily questions, our in-house app holds 817 games for free play. No ads, no third-party videos — a space built for learning only.'],
  'appc.headline':  ['총 817개 게임 · 3 트랙 · 매주 업데이트', '817 games · 3 tracks · updated weekly'],

  /* Three tracks */
  'appc.t1.name':   ['교과수학',                 'School math'],
  'appc.t1.count':  ['601',                      '601'],
  'appc.t1.unit':   ['게임',                     'games'],
  'appc.t1.meta':   ['G1~6 · 4영역',             'Grades 1–6 · 4 strands'],
  'appc.t1.body':   ['학교 교과서 진도와 1:1 매핑. 수와 연산·도형·측정·자료와 가능성, 4개 영역을 학기 단위로 게임화했습니다.', 'Mapped 1:1 to the Korean school curriculum — numbers, geometry, measurement, data — gamified by semester.'],
  'appc.t1.exs':    [['분수 도미노', '도형 회전', '곱셈 격자'], ['Fraction dominoes', 'Shape rotation', 'Multiplication grid']],

  'appc.t2.name':   ['사고력',                   'Thinking'],
  'appc.t2.count':  ['124',                       '124'],
  'appc.t2.unit':   ['게임',                     'games'],
  'appc.t2.meta':   ['Lv1~6 · 5섹터',             'Levels 1–6 · 5 sectors'],
  'appc.t2.body':   ['추론·관찰·공간·논리·전략, 5가지 사고력. 정답 하나를 맞히는 문제가 아니라 사고 과정 자체를 훈련하는 124개 게임으로, 경시·영재 대비에도 강합니다.', 'Reasoning, observation, spatial, logic, strategy — 124 games that train the thinking process itself, not just one right answer. Strong prep for academic olympiads, too.'],
  'appc.t2.exs':    [['점-사각형 카운트', '거울 빛', '시계 손바늘'], ['Dot rectangles', 'Mirror light', 'Clock hands']],

  'appc.t3.name':   ['금융교육',                 'Finance'],
  'appc.t3.count':  ['92',                        '92'],
  'appc.t3.unit':   ['게임',                     'games'],
  'appc.t3.meta':   ['Lv1~6 · 5단원',             'Levels 1–6 · 5 units'],
  'appc.t3.body':   ['유대인 가정의 "5 Jars(다섯 항아리)" 전통을 바탕으로 한 5단원 — 벌기·쓰기·모으기·지키기·나누기. 모의 투자부터 광고 속임수·신용까지, 어른이 되어 후회하지 않을 결정 근육을 초등에서 만듭니다.', 'Built on the Jewish "5 Jars" tradition — Earn, Spend, Save, Protect, Give. From mock investing to spotting ad manipulation and credit — building the decision-making muscle in elementary school.'],
  'appc.t3.exs':    [['모의 투자', '광고 속임수', '빚의 함정'], ['Mock investing', 'Ad tricks', 'Debt traps']],

  'appc.exs.h':     ['대표 게임',                 'Featured games'],

  /* Strengths row — four reasons parents pick SRIKI */
  'appc.c.h':       ['스리키 게임 앱의 강점',         'What makes the SRIKI app different'],

  /* ① AI tutor */
  'appc.c1.t':      ['AI 선생님이 24시간 옆에',       'AI tutor, always at your side'],
  'appc.c1.b':      ['모르는 문제를 만나면 게임앱을 통해 AI 선생님에게 바로 물어볼 수 있어요. 설명·힌트·다른 풀이까지, 학원 강사와 같은 톤으로 24시간 답해 줍니다.', 'When your child gets stuck, they can ask the AI tutor right inside the game app — explanations, hints, alternate solutions, answered 24/7 in the same tone as the studio teacher.'],

  /* ② Review — automatic mistake notebook (the most important feature) */
  'appc.c2.t':      ['틀린 문제는 오답노트로 정리', 'Wrong answers, into a notebook'],
  'appc.c2.b':      ['풀다가 틀린 문제는 깔끔한 그림으로 그대로 저장되어, 자녀가 언제든 다시 풀어볼 수 있어요. 강사도 같은 노트를 보고 어디서 어려워했는지 짚어줍니다.', 'Every missed problem is saved as a clean visual your child can revisit anytime. The teacher sees the same notebook and pinpoints where to help.'],

  /* ③ Coin to allowance */
  'appc.c3.t':      ['코인을 진짜 용돈으로',           'Coins become real allowance'],
  'appc.c3.b':      ['게임에서 모은 코인은 부모에게 신청해서 실제 용돈으로 환전하는 용돈 시스템을 추구합니다. 단순한 학습·재미를 넘어, 아이가 직접 돈을 벌 수 있게 설계했습니다.', 'Coins earned in-game can be cashed out as real allowance through parent approval — a true money-earning system. Beyond learning and fun, it\'s designed so children actually earn their own money.'],

  /* ④ Shop & My Room */
  'appc.c4.t':      ['상점과 내 방에서 캐릭터 꾸미기', 'Shop & My Room — dress up the character'],
  'appc.c4.b':      ['공부로 모은 코인으로 옷·소품·배경을 사서 내 방을 꾸밀 수 있어요. 학습 동기가 자연스럽게 이어집니다.', 'Coins earned through study buy outfits, props, and rooms. Motivation flows naturally from learning to play.'],

  'appc.cta':       ['앱 다운로드 →',             'Download the app →'],

  /* App download */
  'app.eyebrow':    ['앱 다운로드', 'SRIKI app'],
  'app.h2':         ['자녀 학습과 학부모 알림이 한 앱 안에.', 'Child learning and parent notifications in one app.'],
  'app.b1':         ['매일 사고력 5문제',     'Five daily thinking problems'],
  'app.b2':         ['수업일지 실시간 알림',  'Real-time class-note alerts'],
  'app.b3':         ['자녀 진도 위젯',        'Child-progress widget'],
  'app.free':       ['14일 무료 체험',        '14-day free trial'],

  /* Dark section (reliability → trust) */
  'dark.eyebrow':   ['스리키만의 차별점', 'Why SRIKI'],
  'dark.h2':        ['다른 수학학원이 못 하는 세 가지.\n스리키는 이것만으로 시작했습니다.', 'Three things other math academies cannot do.\nThat is what SRIKI was built on.'],
  'dark.m1.n':      ['817',  '817'],
  'dark.m1.l':      ['SRIKI 앱 자체 학습 게임 — 학습지가 아닌 진짜 게임으로 수학·사고력·금융을 공부해요.', 'In-app games we built ourselves — math, thinking, and finance studied by playing, not by worksheet.'],
  'dark.m2.n':      ['3트랙',   '3 tracks'],
  'dark.m2.l':      ['수학·사고력·금융 통합 교육 — 한국 최초의 신개념 학원입니다.', 'Math, thinking, and finance — an integrated curriculum. Korea\'s first of its kind.'],
  'dark.m3.n':      ['퀀트 애널리스트', 'Quant Analyst'],
  'dark.m3.l':      ['연세대 학사·석사·KB·다올 출신, 現 유진증권 퀀트 애널리스트가 직접 만든 커리큘럼.', 'Curriculum designed by a Yonsei BA & MA quant analyst — ex-KB, ex-Daol, current at Eugene Securities.'],

  /* FAQ */
  'faq.eyebrow':    ['자주 묻는 질문', 'FAQ'],
  'faq.h2':         ['수강료·환불·앱 사용 등 자주 묻는 질문', 'Tuition, refunds, app usage — common questions'],
  'faq.f.all':      ['전체', 'All'],
  'faq.f.fee':      ['수강료', 'Tuition'],
  'faq.f.refund':   ['환불',   'Refund'],
  'faq.f.miss':     ['결석',   'Absence'],
  'faq.f.app':      ['앱',     'App'],
  'faq.f.grade':    ['학년 변경', 'Grade change'],

  /* Location */
  'loc.eyebrow':    ['오시는 길', 'Location'],
  'loc.h2':         ['경기 분당센터', 'Bundang center, Gyeonggi'],
  'loc.addr.l':     ['주소',     'Address'],
  'loc.addr.v':     ['경기 성남시 분당구 성남대로 393 B동 2층 215호', '393 Seongnam-daero, Bundang-gu, Seongnam, Gyeonggi · B-bldg 2F #215'],
  'loc.subway.l':   ['지하철',   'Subway'],
  'loc.subway.v':   ['정자역 5번 출구에서 393m', '393 m from Jeongja Station, Exit 5'],
  'loc.park.l':     ['주차',     'Parking'],
  'loc.park.v':     ['건물 주차장 2시간 무료', 'Free for two hours in the building'],
  'loc.map':        ['길찾기 (카카오맵)', 'Open in KakaoMap'],

  /* Company */
  'co.eyebrow':     ['회사 소개', 'Company'],
  'co.h2':          ['법인·법무·운영 정보.', 'Legal & operating details.'],

  /* Footer */
  'foot.programs':  ['프로그램', 'Programs'],
  'foot.grades':    ['학년별',   'By grade'],
  'foot.resources': ['자료',     'Resources'],
  'foot.company':   ['회사',     'Company'],
  'foot.tagline':   ['수학과 금융을 함께 가르치는 학원.', 'A school that teaches math and finance together.'],
  'foot.privacy':   ['개인정보처리방침', 'Privacy'],
  'foot.terms':     ['이용약관',         'Terms'],
  'foot.refund':    ['환불규정',         'Refund policy'],
};

const useT = () => {
  const { lang } = React.useContext(LangContext);
  return (key) => {
    const v = STR[key];
    if (!v) return key;
    return lang === 'ko' ? v[0] : v[1];
  };
};

window.LangContext = LangContext;
window.useT = useT;
