:root {
  --ink: #2b2550;
  --ink-soft: #5d5880;
  --snow: #fffaf5;
  --berry: #ff8fa3;
  --mint: #bfeedd;
  --gold: #ffd98a;
  --lilac: #dcd2ff;
  --display: 'Fredoka', 'Nunito', system-ui, sans-serif;
}
html[lang="vi"] { --display: 'Baloo 2', 'Nunito', system-ui, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; }
body { margin: 0; background: var(--snow); color: var(--ink); font: 600 16px/1.8 'Nunito', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: #a33656; }
a:focus-visible, button:focus-visible { outline: 3px dashed #a33656; outline-offset: 5px; }
button { color: inherit; font: inherit; cursor: pointer; }
.wrap { width: min(1000px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; top: 10px; left: 16px; z-index: 2; padding: 8px 16px; border-radius: 12px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; padding: 10px 16px; border: 3px solid var(--ink); border-radius: 22px; background: white; box-shadow: 0 5px 0 var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 700 22px var(--display); }
.brand img { width: 42px; height: 50px; object-fit: contain; }
.lang-toggle { display: inline-flex; padding: 3px; border: 2px solid var(--ink); border-radius: 14px; background: var(--snow); }
.lang-toggle button { min-width: 40px; min-height: 38px; padding: 4px 8px; border: 0; border-radius: 9px; background: transparent; font: 600 15px var(--display); }
.lang-toggle button[aria-pressed="true"] { background: var(--gold); }
.back-link { display: inline-block; margin-top: 34px; color: var(--ink-soft); font-size: 14px; text-decoration: none; }
.hero { position: relative; margin-top: 22px; padding: 40px; border: 3px solid var(--ink); border-radius: 28px; background: linear-gradient(120deg, var(--lilac), #eee7ff 60%, #ffe5df); box-shadow: 0 6px 0 var(--ink); }
.hero.terms { background: linear-gradient(120deg, var(--mint), #e2f5eb 60%, #fff0d0); }
.kicker { margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { font-family: var(--display); line-height: 1.2; }
h1 { max-width: 740px; margin: 0; font-size: clamp(36px, 6vw, 60px); }
.lead { max-width: 680px; margin: 18px 0 24px; color: var(--ink-soft); font-size: 18px; line-height: 1.7; }
.updated { display: inline-block; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 99px; background: white; font-size: 13px; }
.document-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 24px; }
.document-tabs a { padding: 10px 18px; border: 2px solid var(--ink); border-radius: 14px; background: white; text-decoration: none; font: 600 17px var(--display); }
.document-tabs a[aria-current="page"] { background: var(--gold); box-shadow: 0 3px 0 var(--ink); }
.document-tabs a:hover { background: var(--lilac); color: var(--ink); }
.document { padding: 12px 40px; border: 3px solid var(--ink); border-radius: 26px; background: white; box-shadow: 0 6px 0 var(--ink); }
.document section { padding: 26px 0; }
.document section + section { border-top: 2px dashed #e2ddec; }
h2 { margin: 0 0 14px; font-size: 26px; }
.document p, .document ul { margin: 12px 0 0; color: var(--ink-soft); }
.document ul { padding-left: 24px; }
.document li + li { margin-top: 8px; }
.document a { overflow-wrap: anywhere; color: var(--ink); }
.document strong { color: var(--ink); }
.contact-card { margin-top: 30px; padding: 26px 32px; border: 3px solid var(--ink); border-radius: 22px; background: var(--mint); }
.contact-card h2 { font-size: 24px; }
.contact-card p { margin: 0; }
.contact-card a { overflow-wrap: anywhere; }
.storage-notice { padding: 14px 18px; border: 2px solid var(--ink); border-radius: 14px; background: var(--gold); }
footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding: 24px 0 36px; border-top: 2px dashed #d4cedf; color: var(--ink-soft); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .topbar { padding: 10px; }
  .brand { gap: 4px; font-size: 18px; }
  .brand img { width: 32px; height: 42px; }
  .lang-toggle button { min-width: 34px; }
  .hero { padding: 28px 22px; }
  .lead { font-size: 16px; }
  .document { padding: 4px 22px; }
  h2 { font-size: 23px; }
  .document-tabs { gap: 10px; }
  .document-tabs a { padding: 10px 12px; font-size: 16px; }
  .contact-card { padding: 24px; }
}
