:root {
  --navy: #0f1226;
  --navy-2: #181c3a;
  --accent: #ffb627;
  --accent-2: #ff5c8a;
  --ink: #1b1e33;
  --muted: #5d6280;
  --line: #e4e6f0;
  --bg: #f6f7fb;
  --card: #ffffff;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.65;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
a { color: #3b3fd9; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid #23274a; }
.nav { max-width: 1100px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: .3px; }
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; }
.nav ul { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
.nav ul a { color: #c9cce6; font-size: .95rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; display: block; }
.nav ul a:hover { background: #20244a; color: #fff; text-decoration: none; }
.nav ul a.active { color: #fff; background: #23274f; }

/* Hero (home) */
.hero { background: radial-gradient(circle at 15% 0%, #2b2660 0%, var(--navy) 60%); color: #fff; text-align: center; padding: 96px 24px 88px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.08; font-weight: 900; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 20px auto 0; max-width: 36rem; color: #b9bdde; font-size: 1.15rem; }
.btn { display: inline-block; margin-top: 30px; background: var(--accent); color: #1b1300; font-weight: 700; padding: 13px 26px; border-radius: 10px; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }

/* Page header (inner pages) */
.page-head { background: var(--navy-2); color: #fff; padding: 56px 24px 48px; text-align: center; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.page-head p { margin-top: 10px; color: #aeb2d6; }

/* Content */
main { flex: 1; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: 0 1px 2px rgba(20, 24, 60, .04); }
.card .icon { font-size: 1.8rem; margin-bottom: 12px; }
.card h2, .card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .97rem; }
.badge { display: inline-block; margin-top: 14px; font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: #fff3d6; color: #8a5a00; padding: 4px 10px; border-radius: 99px; }
.section-title { text-align: center; font-size: 1.7rem; font-weight: 800; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 36px; }

/* Document pages (privacy, terms) */
.doc { max-width: 820px; margin: 0 auto; padding: 48px 24px 72px; }
.doc .updated { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.doc h2 { font-size: 1.3rem; margin: 36px 0 10px; padding-top: 6px; }
.doc p, .doc li { color: #2d3050; }
.doc p { margin-bottom: 14px; }
.doc ul { margin: 0 0 16px 22px; }
.doc li { margin-bottom: 6px; }
.doc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 44px; box-shadow: 0 1px 2px rgba(20, 24, 60, .04); }
.toc { background: #f1f2fa; border-radius: 10px; padding: 16px 22px; margin-bottom: 8px; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 4px; font-size: .95rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--muted); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* Contact */
.contact-box { max-width: 640px; margin: 0 auto; text-align: center; }
.contact-box .mail { display: inline-block; margin: 8px 0 4px; font-size: 1.4rem; font-weight: 700; }
.contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 32px; text-align: left; }

/* 404 */
.center { text-align: center; padding: 110px 24px; }
.center h1 { font-size: 4.5rem; font-weight: 900; color: var(--navy-2); }
.center p { color: var(--muted); margin: 8px 0 0; }

/* Footer */
.site-footer { background: var(--navy); color: #a2a6cc; margin-top: auto; }
.foot { max-width: 1100px; margin: 0 auto; padding: 32px 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; font-size: .92rem; }
.foot ul { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: #c9cce6; }

@media (max-width: 640px) {
  .doc-card { padding: 26px 20px; }
  .toc ol { columns: 1; }
  .nav { justify-content: center; }
}
