/* Shared styles for legal/static pages (privacy, terms, about, contact) */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Inter',system-ui,sans-serif;color:#1e293b;background:#f8fafc;line-height:1.6}
.khmer-text{font-family:'Battambang',cursive}

/* Header */
.site-header{background:#fff;border-bottom:1px solid #e2e8f0;position:sticky;top:0;z-index:50}
.header-inner{max-width:1200px;margin:0 auto;padding:14px 20px;display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.site-logo{font-size:22px;font-weight:800;color:#0f172a;text-decoration:none;display:flex;align-items:center;gap:8px}
.site-logo-research{color:#2563eb}
.site-logo-img{width:32px;height:32px;border-radius:6px}
.nav-links{display:flex;gap:18px;row-gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap;min-width:0}
.nav-links a{font-size:14px;font-weight:500;color:#64748b;text-decoration:none;transition:color .2s;line-height:1.2;white-space:nowrap}
.nav-links a:hover{color:#2563eb}

/* Legal content container */
.lc{max-width:800px;margin:0 auto;padding:48px 20px}
.lc-header{text-align:center;margin-bottom:36px}
.lc-header h1{font-size:2rem;font-weight:800;color:#0f172a;margin-bottom:8px}
.lc-header .updated{font-size:13px;color:#94a3b8}
.lc-body{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:36px}
.lc-body h2{font-size:1.2rem;font-weight:700;color:#0f172a;margin:28px 0 12px;padding-top:20px;border-top:1px solid #f1f5f9}
.lc-body h2:first-of-type{margin-top:0;padding-top:0;border-top:none}
.lc-body p{font-size:15px;color:#475569;margin-bottom:12px}
.lc-body ul,.lc-body ol{padding-left:24px;margin-bottom:12px}
.lc-body li{font-size:15px;color:#475569;margin-bottom:6px}
.lc-body strong{color:#1e293b}
.lc-body a{color:#2563eb;text-decoration:none}
.lc-body a:hover{text-decoration:underline}

/* Table of contents */
.lc-toc{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:16px 20px;margin-bottom:24px}
.lc-toc h3{font-size:14px;font-weight:700;color:#475569;margin-bottom:8px}
.lc-toc ol{padding-left:20px;margin:0}
.lc-toc li{font-size:14px;margin-bottom:4px}
.lc-toc a{color:#2563eb;text-decoration:none}
.lc-toc a:hover{text-decoration:underline}

/* Footer */
.site-footer{background:#0f172a;color:#94a3b8;padding:40px 20px;margin-top:40px}
.footer-inner{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:30px}
.footer-col h4{color:#e2e8f0;font-size:14px;font-weight:700;margin-bottom:12px;text-transform:uppercase;letter-spacing:.05em}
.footer-col a{display:block;color:#94a3b8;text-decoration:none;font-size:14px;margin-bottom:8px}
.footer-col a:hover{color:#fff}
.footer-col p{font-size:13px;line-height:1.6}
.footer-bottom{max-width:1200px;margin:0 auto;padding-top:20px;margin-top:20px;border-top:1px solid #1e293b;text-align:center;font-size:13px}

@media(max-width:900px){
    .nav-links{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch}
    .nav-links a{flex:0 0 auto}
}
@media(max-width:640px){
    .header-inner{padding:10px 16px;gap:10px}
    .site-logo{font-size:18px}
    .nav-links{gap:14px}
    .lc{padding:32px 16px}
    .lc-header h1{font-size:1.5rem}
    .lc-body{padding:20px 16px}
    .site-footer{padding:28px 16px;margin-top:20px}
    .footer-inner{grid-template-columns:1fr 1fr;gap:20px}
    .footer-col:first-child{grid-column:1/-1}
    .footer-col h4{font-size:12px;margin-bottom:8px}
    .footer-col a{font-size:13px;margin-bottom:6px}
    .footer-bottom{font-size:11px}
}
