/* VeyPlay Legal — CSS không phụ thuộc framework bên ngoài. */
:root {
  color-scheme: light;
  --ink: #15182b;
  --muted: #5e647b;
  --line: #dfe3ef;
  --surface: #ffffff;
  --surface-soft: #f6f7fc;
  --brand-a: #5d4ce6;
  --brand-b: #159f91;
  --accent: #0f7d96;
  --focus: #0b6cff;
  --max-width: 920px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f4f6ff 0, #fff 360px);
  line-height: 1.65;
}
a { color: #3f36b9; text-underline-offset: 3px; overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
}
.header-inner, main, .site-footer-inner { width: min(100% - 32px, var(--max-width)); margin: 0 auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-logo { display: block; width: 42px; height: 42px; border-radius: 13px; box-shadow: 0 8px 18px rgba(201, 0, 18, .22); }
.header-nav { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; font-size: .9rem; }
.header-nav a { color: var(--muted); }
main { padding: 56px 0 72px; }
.hero { padding: 12px 0 34px; }
.eyebrow { color: var(--accent); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.025em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin: 10px 0 18px; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 42px 0 14px; }
h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.lead { max-width: 720px; color: var(--muted); font-size: 1.12rem; }
.meta { color: var(--muted); font-size: .92rem; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.card {
  display: block; padding: 22px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); box-shadow: 0 12px 28px rgba(27, 38, 90, .06);
  color: inherit; text-decoration: none; min-width: 0; overflow-wrap: anywhere;
}
.card:hover { border-color: #aaa9e8; transform: translateY(-1px); }
.card h2, .card h3 { margin: 0 0 8px; color: var(--ink); }
.card p { margin: 0; color: var(--muted); }
.notice {
  padding: 16px 18px; border-left: 4px solid var(--brand-a); border-radius: 10px;
  background: #f0efff; color: #2c2b59;
}
.warning { border-left-color: #b56a00; background: #fff7e8; color: #5c3b07; }
.policy {
  padding: 28px clamp(18px, 4vw, 44px); border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface); box-shadow: 0 12px 30px rgba(27, 38, 90, .05); overflow-wrap: anywhere;
}
.policy h2:first-child { margin-top: 0; }
.policy ul, .policy ol { padding-left: 1.35rem; }
.policy li + li { margin-top: 7px; }
table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: 11px 12px; text-align: left; vertical-align: top; }
th { background: var(--surface-soft); }
.lang-nav { display: flex; gap: 12px; margin: 0 0 24px; font-size: .92rem; }
.lang-nav a { font-weight: 700; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); }
.site-footer-inner { padding: 28px 0 42px; font-size: .9rem; }
.site-footer p { margin: 5px 0; }
.small { font-size: .88rem; color: var(--muted); }
code { padding: .1em .35em; border-radius: 5px; background: #eef0f7; font-size: .92em; white-space: normal; overflow-wrap: anywhere; word-break: break-all; }
@media (max-width: 680px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .header-nav { justify-content: flex-start; }
  .card-grid { grid-template-columns: 1fr; }
  main { padding-top: 34px; }
  .policy { padding: 22px 17px; }
  th, td { padding: 9px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
