/* hoihay.vn front page (novodanproducts/hoihay.vn#134); a file, as the CSP allows no inline styles.
   Spacing: a block keeps only the space above it, the first block in its container none, and no block a space below
   it, so gaps never add up; sections pad their own background evenly. */
:root {
  --ink: #14202e; --muted: #556270; --line: #e4e8ee; --paper: #ffffff; --soft: #f5f7fa;
  --brand: #0062cc; --deep: #0a2a52; --night: #071a33; --gold: #c8a45c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink);
       font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
       -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.top { position: absolute; inset: 0 0 auto 0; z-index: 2; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.top img { height: 30px; width: auto; display: block; }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; }
.top nav a { color: rgba(255,255,255,.82); text-decoration: none; }
.top nav a:hover { color: #fff; }
.top .lang { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 3px 11px; font-size: 13px; }
.hero { position: relative; overflow: hidden; color: #fff; padding: 116px 0 64px;
        background: radial-gradient(1100px 520px at 85% -10%, rgba(0,98,204,.55), transparent 60%),
                    linear-gradient(160deg, var(--deep) 0%, var(--night) 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
               background: linear-gradient(90deg, transparent, rgba(200,164,92,.7), transparent); }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
           margin: 0; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.12; font-weight: 600; letter-spacing: -.015em;
           margin: 14px 0 0; max-width: 820px; }
.hero p { font-size: clamp(17px, 2vw, 20px); color: rgba(255,255,255,.8); max-width: 640px; margin: 18px 0 0; }
.hero .btns { margin-top: 28px; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-block; padding: 14px 26px; border-radius: 10px; font-weight: 600; text-decoration: none;
       font-size: 15.5px; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-main { background: #fff; color: var(--deep); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
section { padding: 64px 0; }
.kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; margin: 8px 0 0; }
.lead { color: var(--muted); font-size: 17.5px; max-width: 680px; margin: 12px 0 0; }
.grid, .who, .checks, .steps { margin-top: 32px; }
.split > .checks, .split > .steps { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--paper);
        transition: box-shadow .2s ease, border-color .2s ease; }
.card:hover { border-color: #cfd8e3; box-shadow: 0 10px 30px rgba(10,42,82,.07); }
.ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin: 0;
      background: rgba(0,98,204,.08); color: var(--brand); }
.ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
          stroke-linejoin: round; }
.card h3 { font-size: 18px; margin: 14px 0 0; font-weight: 600; }
.card p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }
.soft { background: var(--soft); }
.who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.who div { padding: 16px 0 0; border-top: 2px solid var(--deep); }
.who b { display: block; font-size: 17px; }
.who span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 0 0 0 34px; color: var(--ink); }
.checks li + li { margin-top: 14px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
                     background: rgba(0,98,204,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%230062cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.steps { counter-reset: s; display: grid; gap: 18px; }
.step { counter-increment: s; display: flex; gap: 18px; align-items: flex-start; }
.step::before { content: counter(s); flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
                background: var(--deep); color: #fff; font-weight: 600; }
.step b { display: block; margin-top: 6px; }
.step span { color: var(--muted); font-size: 15.5px; }
.band { color: #fff; text-align: center; padding: 64px 0;
        background: radial-gradient(800px 360px at 50% 0%, rgba(0,98,204,.45), transparent 70%),
                    linear-gradient(160deg, var(--deep), var(--night)); }
.band h2 { margin: 0; }
.band p { color: rgba(255,255,255,.8); max-width: 600px; margin: 12px auto 0; font-size: 17.5px; }
.band .btns { justify-content: center; margin-top: 24px; }
footer { padding: 20px 0; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .who { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .top nav .nl { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .grid, .who { grid-template-columns: 1fr; }
  .hero { padding: 100px 0 48px; }
  section, .band { padding: 48px 0; }
  .grid, .who { gap: 14px; }
  .card { padding: 20px; }
  .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .card { transition: none; } }

/* Legal pages: /privacy/ and /terms/. Long-form reading, so the measure is narrower than the
   marketing grid and the vertical rhythm is looser.

   The header needs its own band here. On the front page .top is absolutely positioned with white
   text over the dark hero; a legal page has no hero and a white body, so the wordmark, the nav and
   the language switch would be white on white. */
.top-solid { position: static; background: var(--night); }
.legal { padding: 44px 0 64px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 34px; line-height: 1.2; margin: 0; }
.legal h2 { font-size: 21px; line-height: 1.3; margin: 40px 0 10px; color: var(--deep); }
.legal p, .legal li { font-size: 16.5px; line-height: 1.65; }
.legal p { margin: 10px 0; }
.legal ul { margin: 10px 0; padding-left: 22px; }
.legal li { margin: 7px 0; }
.legal .docmeta { color: var(--muted); font-size: 14.5px; margin: 10px 0 0; }
.legal .muted { color: var(--muted); font-size: 15px; }
.legal .notice { border: 1px solid var(--line); border-left: 3px solid var(--gold);
      background: var(--soft); border-radius: 10px; padding: 16px 18px; margin: 22px 0 8px; }
.legal .notice p { margin: 0; }
.legal ul.plain { list-style: none; padding-left: 0; }
.legal ul.plain li { margin: 2px 0; }
.legal h3 { font-size: 17.5px; margin: 26px 0 6px; color: var(--deep); }
.legal .summary { border: 1px solid var(--line); border-radius: 10px; padding: 6px 18px; margin: 18px 0; }
/* a table scrolls inside its own box on a phone rather than widening the page */
.legal .tablewrap { overflow-x: auto; margin: 12px 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15.5px; line-height: 1.5; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--deep); background: var(--soft); }
.legal tbody tr:nth-child(even) td { background: #fafbfc; }
@media (max-width: 560px) {
  .legal { padding: 32px 0 44px; }
  .legal h1 { font-size: 27px; }
  .legal h2 { font-size: 19px; margin-top: 32px; }
  .legal table { font-size: 14.5px; }
  .legal th, .legal td { padding: 7px 8px; }
}
