/* MiniMix Games 2.0 website: the app's "party night" look.
   Deep indigo night, neon glows, Baloo 2 headlines, emoji game art. */

:root {
    --bg: #120d33;
    --bg-2: #1b1446;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-2: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.12);
    --text: #f6f3ff;
    --text-2: #c9c2ee;
    --text-3: #9a92c8;
    --purple: #7c4dff;
    --pink: #ff4f8b;
    --cyan: #34d1bf;
    --yellow: #ffc233;
    --radius: 26px;
    --display: 'Baloo 2', 'Noto Sans Thai', 'Apple SD Gothic Neo', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
    --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Thai', 'Apple SD Gothic Neo', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: radial-gradient(1200px 700px at 80% -10%, #3a1f8f 0%, transparent 60%),
                linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
    background-color: var(--bg);
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }

/* Neon glows drifting behind everything */
.glow { position: fixed; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: 0.35; pointer-events: none; }
.glow-1 { width: 520px; height: 520px; background: var(--purple); top: -120px; left: -160px; animation: drift 18s ease-in-out infinite alternate; }
.glow-2 { width: 420px; height: 420px; background: var(--pink); top: 40%; right: -160px; animation: drift 22s ease-in-out infinite alternate-reverse; }
.glow-3 { width: 380px; height: 380px; background: var(--cyan); bottom: -160px; left: 30%; opacity: 0.22; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.1); } }

/* ---------- Navigation ---------- */
.navbar { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 14px 0; transition: background 0.3s, padding 0.3s, box-shadow 0.3s; }
.navbar.scrolled { background: rgba(18, 13, 51, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 8px 0; box-shadow: 0 1px 0 var(--border); }
.nav-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { width: 36px; height: 36px; border-radius: 10px; }
.logo-text { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.3px; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-link { display: inline-block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--text-2); font-weight: 600; font-size: 15px; transition: color 0.2s, background 0.2s; }
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-cta { color: #fff; background: linear-gradient(135deg, var(--purple), var(--pink)); box-shadow: 0 6px 20px rgba(124, 77, 255, 0.4); }
.nav-cta:hover { color: #fff; background: linear-gradient(135deg, #8d63ff, #ff6a9d); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; margin: 5px 0; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.language-switcher { position: relative; }
.language-toggle { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 600 14px var(--body); cursor: pointer; }
.language-toggle:hover { color: var(--text); }
.language-dropdown { position: absolute; top: calc(100% + 8px); right: 0; min-width: 170px; padding: 6px; border-radius: 18px; background: #221a55; border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all 0.2s; }
.language-dropdown.active { opacity: 1; visibility: visible; transform: none; }
.language-option { display: block; padding: 9px 14px; border-radius: 12px; text-decoration: none; color: var(--text-2); font-weight: 600; font-size: 15px; }
.language-option:hover { background: var(--surface-2); color: var(--text); }
.language-option.active { color: #fff; background: rgba(124, 77, 255, 0.35); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px; font: 700 18px var(--display); text-decoration: none; transition: transform 0.15s, box-shadow 0.2s, background 0.2s; }
.btn:active { transform: scale(0.97); }
.btn-icon { width: 22px; height: 22px; }
.btn-primary { color: #fff; background: linear-gradient(180deg, #9a73ff 0%, var(--purple) 100%); box-shadow: 0 10px 30px rgba(124, 77, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(124, 77, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost { color: var(--text); border: 1.5px solid var(--border); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 130px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-badge { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 22px; padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: #ffe9a8; background: rgba(255, 194, 51, 0.14); border: 1px solid rgba(255, 194, 51, 0.35); }
.hero-title { font-size: clamp(44px, 7vw, 80px); font-weight: 800; letter-spacing: -1.5px; }
.shine { background: linear-gradient(90deg, var(--yellow), var(--pink) 45%, var(--purple) 70%, var(--cyan)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.hero-subtitle { margin: 22px 0 32px; max-width: 540px; font-size: 19px; color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin: 18px 0 0; font-size: 14px; color: var(--text-3); font-weight: 600; letter-spacing: 0.2px; }

.hero-visual { position: relative; display: flex; justify-content: center; min-height: 560px; }
.phone { position: relative; width: 290px; height: 590px; padding: 12px; border-radius: 46px; background: linear-gradient(160deg, #2b2366, #120d33); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1.5px rgba(255, 255, 255, 0.12), 0 0 80px rgba(124, 77, 255, 0.35); transform: rotate(-4deg); animation: float 7s ease-in-out infinite; }
.phone-screen { height: 100%; border-radius: 36px; overflow: hidden; padding: 22px 14px; background: radial-gradient(400px 300px at 50% 0%, #3d2797, transparent 70%), #17113f; }
.ph-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ph-logo { font-family: var(--display); font-weight: 800; font-size: 17px; white-space: nowrap; }
.ph-pill { padding: 3px 10px; border-radius: 999px; background: rgba(255, 79, 139, 0.25); font-size: 14px; }
.ph-players { display: flex; gap: 6px; margin-bottom: 16px; }
.ph-players i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-style: normal; font-size: 18px; background: color-mix(in srgb, var(--c) 35%, transparent); border: 2px solid var(--c); }
.ph-players i.add { border-style: dashed; border-color: var(--text-3); background: none; color: var(--text-3); font-weight: 800; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { position: relative; height: 106px; padding: 10px; border-radius: 20px; overflow: hidden; background: linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 50%, #000)); box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 35%, transparent); }
.tile::after { content: ''; position: absolute; width: 70px; height: 70px; right: -20px; top: -20px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.tile span { font-size: 34px; line-height: 1; }
.tile b { position: absolute; left: 10px; right: 8px; bottom: 9px; font: 700 12.5px/1.2 var(--display); color: #fff; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.penalty-card { position: absolute; right: 2%; bottom: 60px; width: 170px; padding: 18px 16px; border-radius: 22px; text-align: center; background: linear-gradient(160deg, #ff6a9d, #c2185b); box-shadow: 0 24px 50px rgba(194, 24, 91, 0.5); transform: rotate(8deg); animation: float 6s ease-in-out infinite reverse; }
.pc-emoji { display: block; font-size: 44px; line-height: 1.1; }
.penalty-card b { display: block; margin-top: 6px; font-family: var(--display); font-size: 19px; }

.mascot { position: absolute; font-size: 44px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4)); animation: bob 5s ease-in-out infinite; }
.m1 { left: 2%; top: 8%; animation-delay: -1s; }
.m2 { right: 6%; top: 2%; font-size: 38px; animation-delay: -2.5s; }
.m3 { left: 0; bottom: 18%; font-size: 40px; animation-delay: -3.2s; }
.m4 { right: 0; top: 40%; font-size: 36px; animation-delay: -0.6s; }
.m5 { left: 20%; bottom: -10px; font-size: 34px; animation-delay: -4s; }
@keyframes float { 50% { translate: 0 -14px; } }
@keyframes bob { 50% { transform: translateY(-16px) rotate(8deg); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.stats li { padding: 20px; border-radius: 22px; text-align: center; background: var(--surface); border: 1px solid var(--border); }
.stats b { display: block; font: 800 40px/1 var(--display); background: linear-gradient(180deg, #fff, #c7b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--text-2); font-weight: 600; font-size: 15px; }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-tag { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--cyan); background: rgba(52, 209, 191, 0.12); }
.section-title { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.6px; }
.section-subtitle { margin: 16px 0 0; color: var(--text-2); font-size: 18px; }

/* How a night works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px 26px 28px; border-radius: var(--radius); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, transparent), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.step-num { position: absolute; top: 18px; right: 22px; font: 800 56px/1 var(--display); color: color-mix(in srgb, var(--accent) 45%, transparent); }
.step-emoji { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 18px; border-radius: 20px; font-size: 32px; background: color-mix(in srgb, var(--accent) 28%, transparent); }
.step h3 { font-size: 24px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--text-2); }

/* Games by mood */
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mood-tag { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 4px 10px; border-radius: 999px; font: 700 12.5px var(--body); color: #fff; background: rgba(0, 0, 0, 0.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.game-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.game-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 24px 50px color-mix(in srgb, var(--accent) 30%, transparent); }
.game-art { position: relative; display: grid; place-items: center; height: 150px; background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #000)); overflow: hidden; }
.game-art::before { content: ''; position: absolute; width: 140px; height: 140px; right: -40px; top: -50px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.game-emoji { position: relative; font-size: 66px; line-height: 1; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.35)); transition: transform 0.3s; }
.game-card:hover .game-emoji { transform: scale(1.12) rotate(-6deg); }
.game-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.game-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 22px; margin-bottom: 6px; }
.new-badge { padding: 2px 10px; border-radius: 999px; font: 800 12px/1.6 var(--body); letter-spacing: 0.5px; text-transform: uppercase; color: #3a2600; background: var(--yellow); }
.game-desc { flex: 1; margin: 0 0 14px; color: var(--text-2); font-size: 15.5px; }
.chip { align-self: flex-start; padding: 5px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--text); background: color-mix(in srgb, var(--accent) 26%, transparent); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { padding: 28px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feature-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 18px; font-size: 28px; background: linear-gradient(140deg, rgba(124, 77, 255, 0.4), rgba(255, 79, 139, 0.25)); }
.feature-title { font-size: 22px; margin-bottom: 6px; }
.feature-desc { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* Changelog */
.changelog-timeline { position: relative; display: flex; flex-direction: column; gap: 16px; }
.changelog-item { display: grid; grid-template-columns: 96px 1fr; gap: 18px; }
.changelog-date { padding-top: 22px; text-align: right; }
.date-month { display: block; font-family: var(--display); font-weight: 700; font-size: 18px; }
.date-year { color: var(--text-3); font-size: 14px; }
.changelog-content { padding: 22px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.changelog-major .changelog-content { background: linear-gradient(150deg, rgba(124, 77, 255, 0.35), rgba(255, 79, 139, 0.18)); border-color: rgba(167, 139, 255, 0.5); box-shadow: 0 20px 50px rgba(124, 77, 255, 0.25); }
.changelog-version { display: inline-block; margin-bottom: 8px; padding: 3px 12px; border-radius: 999px; font: 800 13px var(--body); color: var(--cyan); background: rgba(52, 209, 191, 0.14); }
.changelog-major .changelog-version { color: #3a2600; background: var(--yellow); }
.changelog-title { font-size: 21px; margin-bottom: 10px; }
.changelog-list li { position: relative; padding-left: 22px; margin: 6px 0; color: var(--text-2); font-size: 15.5px; }
.changelog-list li::before { content: ''; position: absolute; left: 4px; top: 0.65em; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.changelog-hidden { display: none; }
.changelog-timeline.expanded .changelog-hidden { display: grid; }
.changelog-show-more { text-align: center; margin-top: 26px; }
.btn-show-more { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: 700 16px var(--display); cursor: pointer; }
.btn-show-more:hover { background: var(--surface-2); }
.changelog-timeline.expanded + .changelog-show-more .chevron { display: inline-block; transform: rotate(180deg); }

/* Download */
.download-card { position: relative; padding: 64px 32px; border-radius: 36px; text-align: center; overflow: hidden; background: radial-gradient(500px 300px at 15% 0%, rgba(255, 194, 51, 0.35), transparent 70%), radial-gradient(500px 300px at 90% 100%, rgba(52, 209, 191, 0.3), transparent 70%), linear-gradient(135deg, #6a3df0, #c2185b); box-shadow: 0 40px 90px rgba(124, 77, 255, 0.35); }
.download-mascots { font-size: 44px; letter-spacing: 14px; margin-bottom: 18px; }
.download-title { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.download-subtitle { max-width: 560px; margin: 14px auto 28px; font-size: 18px; color: rgba(255, 255, 255, 0.88); }
.btn-big { padding: 18px 34px; font-size: 21px; background: #fff; color: #3b1f9e; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); }
.btn-big:hover { box-shadow: 0 20px 46px rgba(0, 0, 0, 0.36); }

/* Footer */
.footer { padding: 56px 0 28px; border-top: 1px solid var(--border); background: rgba(10, 7, 30, 0.5); }
.footer-main { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-tagline { margin: 12px 0 0; color: var(--text-3); }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-heading { font-size: 17px; margin-bottom: 12px; }
.footer-column li { margin: 6px 0; }
.footer-column a { color: var(--text-2); text-decoration: none; }
.footer-column a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); }
.copyright { margin: 0; color: var(--text-3); font-size: 14px; }

.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border: 0; border-radius: 50%; font: 800 20px var(--body); color: #fff; background: linear-gradient(135deg, var(--purple), var(--pink)); box-shadow: 0 10px 26px rgba(124, 77, 255, 0.45); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: all 0.3s; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }

/* Scroll-in animations (main.js adds .visible) */
.js .fade-in, .js .game-card, .js .feature-card { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .fade-in.visible, .js .game-card.visible, .js .feature-card.visible { opacity: 1; transform: none; }
.js .game-card.visible:hover { transform: translateY(-6px); }

/* Thai and CJK read better a touch looser, without negative tracking */
.lang-th .hero-title, .lang-th .section-title, .lang-ko .hero-title, .lang-zh-CN .hero-title, .lang-zh-TW .hero-title { letter-spacing: 0; line-height: 1.25; }
.lang-th body, .lang-th .game-desc { line-height: 1.75; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { min-height: 600px; }
    .steps, .features-grid { grid-template-columns: 1fr 1fr; }
    .games-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .games-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav-menu { position: fixed; inset: 64px 12px auto 12px; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; border-radius: 24px; background: #1f1750; border: 1px solid var(--border); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.25s; }
    .nav-menu.active { opacity: 1; visibility: visible; transform: none; }
    .nav-link { display: block; padding: 12px 16px; font-size: 17px; }
    .nav-cta { text-align: center; }
    .language-toggle { width: 100%; justify-content: center; padding: 12px 16px; }
    .language-dropdown { position: static; display: none; margin-top: 6px; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
    .language-dropdown.active { display: block; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .container, .nav-container { padding: 0 16px; }
    .hero { padding-top: 104px; }
    .hero-subtitle { font-size: 17px; }
    .btn { width: 100%; justify-content: center; }
    .hero-visual { min-height: 520px; }
    .phone { width: 250px; height: 510px; border-radius: 40px; }
    .tile { height: 88px; }
    .penalty-card { width: 140px; right: 0; bottom: 30px; padding: 14px 12px; }
    .mascot { font-size: 34px; }
    .stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 36px; }
    .stats b { font-size: 34px; }
    section { padding: 72px 0; }
    .steps, .features-grid { grid-template-columns: 1fr; }
    .games-grid { grid-template-columns: 1fr; }
    .changelog-item { grid-template-columns: 1fr; gap: 6px; }
    .changelog-date { padding-top: 0; text-align: left; }
    .date-month, .date-year { display: inline; margin-right: 6px; }
    .download-card { padding: 48px 20px; border-radius: 28px; }
    .download-mascots { font-size: 34px; letter-spacing: 6px; }
    .footer-links { gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .fade-in, .js .game-card, .js .feature-card { opacity: 1; transform: none; }
}

/* ---------- Legal pages (privacy, terms, disclaimer) ---------- */
.legal-page { padding: 120px 0 80px; }
.legal-container { max-width: 820px; }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--text-2); text-decoration: none; font-weight: 700; }
.back-link:hover { color: var(--text); }
.legal-header { margin-bottom: 32px; }
.legal-title { font-size: clamp(34px, 5vw, 52px); font-weight: 800; }
.legal-updated { margin: 8px 0 0; color: var(--text-3); }
.legal-content { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.legal-content h2 { margin: 32px 0 12px; font-size: 26px; color: var(--text); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin: 22px 0 8px; font-size: 20px; color: var(--text); }
.legal-content p { margin: 0 0 14px; }
.legal-content ul { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.legal-content li { margin: 6px 0; }
.legal-content a { color: #b9a6ff; }
.legal-content strong { color: var(--text); }
.legal-content table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.legal-content th, .legal-content td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.legal-content th { color: var(--text); background: var(--surface-2); }
@media (max-width: 640px) {
    .legal-page { padding-top: 96px; }
    .legal-content { padding: 22px 18px; }
    .legal-content table { display: block; overflow-x: auto; }
}
.language-note { margin-bottom: 24px; padding: 14px 18px; border-radius: 18px; background: rgba(52, 209, 191, 0.1); border: 1px solid rgba(52, 209, 191, 0.3); color: var(--text-2); }
.language-note p { margin: 0; font-size: 15px; }
.language-note a { color: var(--cyan); }
/* Legal pages have a short nav with no menu button: keep it inline on phones. */
@media (max-width: 860px) {
    .legal-body .nav-menu { position: static; flex-direction: row; padding: 0; border: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
    .legal-body .nav-menu li:not(:last-child) { display: none; }
    .legal-body .nav-link { padding: 8px 14px; font-size: 15px; }
}

/* Korean breaks lines between words, never inside one. */
:lang(ko) { word-break: keep-all; }
