/*
 * Shared styles for the public pages (landing, /privacy, /terms).
 * Plain CSS, no build step: these pages must render without JavaScript
 * so Google's verification crawler sees the full content.
 */
:root {
    --navy: #1b2a4e;
    --navy-2: #24365f;
    --orange: #f5a623;
    --orange-ink: #8a5600;
    --ink: #1b2433;
    --muted: #5b6577;
    --line: #e3e7ee;
    --bg: #ffffff;
    --bg-soft: #f5f7fb;
    --radius: 14px;
    --max: 1120px;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Be Vietnam Pro", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}
a { color: var(--navy-2); }
a:hover { color: var(--orange-ink); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.25; color: var(--navy); margin: 0 0 12px; }
p { margin: 0 0 14px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Language switch: content for both languages ships in the HTML. */
html:not(.en) .l-en,
html.en .l-vi { display: none !important; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header .container {
    display: flex; align-items: center; gap: 16px; min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 36px; height: 36px; flex-shrink: 0; }
.brand-name { font-weight: 700; font-size: 17px; white-space: nowrap; }
.brand-name b { color: var(--orange-ink); font-weight: 700; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--orange-ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
    border: 1px solid var(--line); background: #fff; color: var(--navy);
    border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px;
    font-weight: 600; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--navy); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 15px;
    text-decoration: none; border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: #e8971a; color: var(--navy); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* ---------- Landing sections ---------- */
.hero { background: var(--navy); color: #e6ebf5; padding: 72px 0 0; overflow: hidden; }
.hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 48px); max-width: 820px; }
.hero .lead { font-size: 18px; max-width: 760px; color: #c9d3e6; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.hero-shot {
    background: #fff; border-radius: var(--radius) var(--radius) 0 0;
    padding: 10px 10px 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
}
.hero-shot img { display: block; border-radius: 8px 8px 0 0; border: 1px solid var(--line); border-bottom: 0; }
.hero-shot figcaption { font-size: 13px; color: var(--muted); padding: 8px 4px 10px; }

.section { padding: 72px 0; scroll-margin-top: 64px; }
.section-soft { background: var(--bg-soft); }
.section h2 { font-size: clamp(24px, 3vw, 32px); }
.section .intro { color: var(--muted); max-width: 760px; margin-bottom: 32px; }

.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px;
}
.card h3 { font-size: 18px; }
.card p { color: var(--muted); margin: 0; }
.card .icon {
    width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
    background: #fff4e0; color: var(--orange-ink); margin-bottom: 14px;
}
.card .icon svg { width: 22px; height: 22px; }

.platforms { display: flex; flex-wrap: wrap; gap: 14px; }
.platform {
    display: flex; align-items: center; gap: 12px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 22px; font-weight: 600; flex: 1 1 200px;
}
.platform svg { width: 30px; height: 30px; flex-shrink: 0; }
.trademark { font-size: 13px; color: var(--muted); margin-top: 16px; }

.youtube-data { border: 2px solid var(--navy); border-radius: var(--radius); padding: 28px; background: #fff; }
.scope-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.scope-list li { padding: 14px 16px; background: var(--bg-soft); border-radius: 10px; }
.scope-list strong { color: var(--navy); }
.scope-list code { font-size: 13px; color: var(--muted); }
.promise { padding: 14px 16px; border-left: 4px solid var(--orange); background: #fff8eb; border-radius: 0 10px 10px 0; margin-bottom: 18px; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list span { color: var(--muted); display: inline-block; min-width: 130px; }

/* ---------- Legal pages ---------- */
.legal { padding: 48px 0 72px; }
.legal .container { max-width: 860px; scroll-margin-top: 80px; }
.legal h1 { font-size: clamp(26px, 3.4vw, 36px); }
.legal h2 { font-size: 20px; margin-top: 34px; scroll-margin-top: 80px; }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 14px; }
.toc {
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 22px; margin: 22px 0 8px;
}
.toc strong { display: block; margin-bottom: 6px; color: var(--navy); }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9d3e6; padding: 44px 0 28px; font-size: 14px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; }
.footer-company { color: #fff; font-weight: 700; margin-bottom: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 26px; padding-top: 18px; color: #9fb0cc; }
.site-footer p { margin: 0 0 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr; }
    .site-nav { display: none; }
    .header-actions { margin-left: auto; }
}
@media (max-width: 640px) {
    .grid-4, .footer-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 48px; }
    .section { padding: 52px 0; }
    .container { padding: 0 16px; }
    .brand-name { font-size: 15px; }
    .header-actions .btn { display: none; }
    .toc ol { columns: 1; }
    .youtube-data { padding: 20px; }
}
