/* lextech.my's database pages (/terms, /privacy, /faq; src/index.ts): the landing page's tokens, header and footer
   (index.html), with the app's reading layout for long text (apps/web: one 680px column, numbered sections). */
@font-face { font-family: "Geist"; src: url(/fonts/geist-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/geist-mono-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(/fonts/newsreader-latin-standard-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(/fonts/newsreader-latin-standard-italic.woff2) format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

/* The app's tokens (apps/web/src/styles.css): ink on white, hairlines, no accent colour. Red, amber and slate only
   where the app uses them: court, deadlines, Busy. */
:root {
  --ink: #0a0a0a; --ink-2: #171717; --paper: #fff; --on-ink: #fff;
  --m50: #fafafa; --m100: #f5f5f5; --m200: #e9e9e9; --m300: #d4d4d4; --m400: #a3a3a3; --m500: #737373; --m600: #525252; --m700: #404040;
  --red: #c62828; --red-soft: #fdecec; --amber: #8f5400; --amber-5: #e09a1f; --amber-soft: #fdf1d8;
  --slate: #3d4654; --slate-5: #7d8796; --slate-soft: #eef0f3; --green: #1b6b45; --green-5: #2e9e6a; --green-soft: #e3f4ea;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 40px 90px -40px rgba(0,0,0,.28);
  --display: "Newsreader", Georgia, serif; --sans: "Geist", ui-sans-serif, system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: light;
}
/* Dark: set on <html> before first paint by /theme.js, and by the navbar switch. */
:root[data-theme="dark"] {
  --ink: #f2f2f2; --ink-2: #d9d9dc; --paper: #0b0b0c; --on-ink: #0b0b0c;
  --m50: #131315; --m100: #1a1a1d; --m200: #28282c; --m300: #3c3c42; --m400: #6b6b72; --m500: #8b8b91; --m600: #a9a9ae; --m700: #c9c9ce;
  --red: #ef5350; --red-soft: #2c1515; --amber: #f0b44c; --amber-5: #e0a23a; --amber-soft: #2e2210;
  --slate: #c3c9d2; --slate-5: #8590a0; --slate-soft: #1d2128; --green: #6fd3a0; --green-5: #3fb47c; --green-soft: #11281d;
  --shadow: 0 0 0 1px rgba(255,255,255,.02), 0 40px 90px -40px rgba(0,0,0,.9);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--sans); font-size: 17px; line-height: 1.6; font-feature-settings: "cv11"; overflow-x: hidden; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--m200); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } body { font-size: 16px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; font: 500 15px/1 var(--sans); white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, transform .1s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: var(--ink-2); }
.btn-ghost { border-color: var(--m200); background: var(--paper); }
.btn-ghost:hover { border-color: var(--m300); background: var(--m50); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn svg { width: 16px; height: 16px; }

.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: inset 0 -1px 0 transparent; transition: box-shadow .2s; }
.nav.scrolled { box-shadow: inset 0 -1px 0 var(--m200); }
.nav .wrap { height: 68px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .word { font-family: var(--display); font-weight: 500; font-size: 21px; letter-spacing: -.01em; line-height: 1; transform: translateY(1px); }
.brand .word span { letter-spacing: .02em; }
.nav .links { display: flex; gap: 28px; font-size: 14px; color: var(--m600); }
.nav .links a:hover { color: var(--ink); }
.nav .right { margin-left: auto; display: flex; gap: 10px; }
.nav .btn { height: 38px; padding: 0 16px; font-size: 14px; }
.theme { width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--m600); display: grid; place-items: center; cursor: pointer; transition: background-color .15s, color .15s; }
.theme:hover { background: var(--m100); color: var(--ink); }
.theme svg { width: 18px; height: 18px; grid-area: 1 / 1; transition: transform .35s var(--ease), opacity .25s; }
.theme .sun, [data-theme="dark"] .theme .moon { opacity: 0; transform: rotate(-90deg) scale(.6); }
[data-theme="dark"] .theme .sun { opacity: 1; transform: none; }
@media (max-width: 860px) { .nav .links { display: none; } }
@media (max-width: 420px) { .nav .signin { display: none; } .nav .wrap { gap: 12px; } .nav .right { gap: 6px; } .nav .btn { padding: 0 12px; } .brand { gap: 8px; } .brand .word { font-size: 19px; } }

footer { border-top: 1px solid var(--m200); padding: 36px 0 48px; font-size: 14px; color: var(--m500); }
footer .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
footer .brand .word { font-size: 18px; color: var(--ink); }
footer nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
footer nav a:hover { color: var(--ink); }

.doc { max-width: 680px; margin: 0 auto; padding: 56px 20px 96px; }
.doc h1 { font-family: var(--display); font-weight: 400; letter-spacing: -.025em; font-size: 44px; line-height: 1.1; }
.doc .date { margin-top: 10px; font-size: 14px; color: var(--m500); }
.doc .intro { margin-top: 28px; color: var(--m700); }
.doc .intro p + p, .doc .body > * + * { margin-top: 14px; }
.doc .sections { margin-top: 48px; display: grid; gap: 44px; }
.doc section { scroll-margin-top: 88px; }
.doc h2 { display: flex; gap: 12px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.doc h2 .n { width: 24px; flex-shrink: 0; color: var(--m500); font-feature-settings: "tnum"; }
.doc .body { margin-top: 12px; padding-left: 36px; color: var(--m700); }
.doc.faq .sections { gap: 30px; }
.doc.faq .group { margin-top: 26px; font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: -.02em; line-height: 1.2; }
.doc.faq .group:first-child { margin-top: 0; }
.doc.faq .q { font-size: 17px; font-weight: 600; letter-spacing: -.005em; color: var(--ink); padding-top: 0; }
.doc.faq .body { margin-top: 8px; padding-left: 0; }
.doc h3 { padding-top: 6px; font-size: 17px; font-weight: 500; color: var(--ink); }
.doc ul, .doc ol { padding-left: 20px; display: grid; gap: 6px; }
.doc ol { padding-left: 24px; }
.doc li::marker { color: var(--m500); }
.doc strong { font-weight: 500; color: var(--ink); }
.doc .intro a, .doc .body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--m300); text-underline-offset: 4px; }
.doc .intro a:hover, .doc .body a:hover { text-decoration-color: var(--ink); }
.doc .seg { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 28px; border-radius: 10px; background: var(--m100); font-size: 14px; }
.doc .seg a { padding: 6px 14px; border-radius: 8px; color: var(--m600); }
.doc .seg a[aria-current] { background: var(--paper); color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.doc .docs { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--m200); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--m500); }
.doc .docs a:hover, .doc .docs a[aria-current] { color: var(--ink); }
@media (max-width: 640px) { .doc { padding-top: 36px; } .doc h1 { font-size: 34px; } .doc .body { padding-left: 0; } .doc h2 .n { width: auto; } }
