/* Trang Chính sách quyền riêng tư / Điều khoản (tĩnh, không cần đăng nhập) - theo giao diện Loomiie */
:root {
  color-scheme: light;
  --bg: #faf8f7;
  --card: #ffffff;
  --text: #18181b;
  --muted: #6b6875;
  --faint: #9a97a3;
  --line: #efebe8;
  --primary: #ff5a4e;
  --primary-soft: #ffe8e3;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15.5px/1.7 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
.ms {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal; font-size: 20px; line-height: 1;
  letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr;
  -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga';
  display: inline-block; flex-shrink: 0;
}

/* Thanh trên cùng: quay lại · logo · VI/EN */
.bar {
  position: sticky; top: 0; z-index: 10;
  padding-top: env(safe-area-inset-top);
  background: rgba(250, 248, 247, 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.bar-in { max-width: 760px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.back {
  width: 42px; height: 42px; border-radius: 999px; background: var(--card); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  box-shadow: 0 2px 10px rgba(30, 30, 60, 0.1); transition: transform .15s;
}
.back:active { transform: scale(0.92); }
.back .ms { font-size: 22px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; color: var(--text); text-decoration: none; }
.brand img { border-radius: 7px; }
.seg { margin-left: auto; display: inline-flex; background: #f0edea; border-radius: 12px; padding: 3px; }
.seg a { padding: 5px 11px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.seg a.on { background: var(--card); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }

main { max-width: 760px; margin: 0 auto; padding: 16px 16px calc(40px + env(safe-area-inset-bottom)); }
/* Có JS: chỉ hiện 1 ngôn ngữ; không JS: hiện cả 2 */
html.js article:not(.on) { display: none; }
html:not(.js) article + article { margin-top: 48px; }

/* Khung đầu trang */
.hero { position: relative; overflow: hidden; border-radius: 26px; padding: 26px 22px 22px; color: #fff; box-shadow: 0 14px 34px rgba(255, 61, 129, 0.18); }
.hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.hero-icon { width: 48px; height: 48px; border-radius: 15px; background: rgba(255, 255, 255, 0.22); display: inline-flex; align-items: center; justify-content: center; font-size: 26px; }
.hero h1 { margin: 14px 0 6px; font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.hero-meta { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; opacity: 0.92; }
.hero-meta .ms { font-size: 17px; }

/* Thẻ nội dung */
.card { background: var(--card); border-radius: 20px; padding: 18px 18px; margin-top: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 4px 18px rgba(30, 30, 60, 0.05); }
.card p { margin: 0 0 10px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { margin: 0 0 10px; padding-left: 20px; }
.card li { margin: 7px 0; }
.card li::marker { color: var(--primary); }
.intro { color: #3b3942; }
.card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 17px; line-height: 1.35; font-weight: 800; }
.num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-size: 13.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

/* Tóm tắt nhanh */
.summary h3 { margin: 0 0 10px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); }
.summary ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.summary li { margin: 0; display: flex; align-items: flex-start; gap: 9px; padding: 11px 12px; border-radius: 14px; background: #faf7f5; font-size: 14px; font-weight: 600; line-height: 1.45; }
.summary li .ms { color: var(--primary); font-size: 20px; }
@media (max-width: 480px) { .summary ul { grid-template-columns: 1fr; } }

/* Mục lục cuộn ngang */
.toc { display: flex; gap: 8px; overflow-x: auto; margin: 16px -16px 4px; padding: 2px 16px 6px; scrollbar-width: none; }
.toc::-webkit-scrollbar { display: none; }
.toc a { flex-shrink: 0; padding: 7px 13px; border-radius: 999px; background: var(--card); color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06); white-space: nowrap; }
.toc a:active { background: var(--primary-soft); color: var(--primary); }

/* Liên hệ + chân trang */
.contact { display: flex; align-items: center; gap: 14px; }
.contact > .ms { width: 44px; height: 44px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; }
.contact div { display: flex; flex-direction: column; font-size: 14px; }
.contact b { font-weight: 700; }
.contact a { font-weight: 700; text-decoration: none; }
footer { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
footer .other { display: flex; align-items: center; gap: 10px; padding: 15px 16px; border-radius: 18px; background: var(--card); color: var(--text); font-weight: 700; text-decoration: none; box-shadow: 0 4px 18px rgba(30, 30, 60, 0.05); }
footer .other .ms:last-child { margin-left: auto; color: var(--faint); }
footer .other .ms:first-child { color: var(--primary); }
footer .totop { align-self: center; display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; color: var(--faint); font-size: 13px; font-weight: 700; text-decoration: none; }
footer .totop .ms { font-size: 17px; }
