/* ══════════════════════════════════════════════
   L1Lingo Design System · Synced from Pilot
   Last sync: 2026-05-20 (audit-report-20260520-020300)
   ══════════════════════════════════════════════ */

:root {
  --c-ink: #1a1a2e;
  --c-body: #3a3a5c;
  --c-muted: #7c7c9a;
  --c-cream: #faf8f5;
  --c-warm: #fff8f2;
  --c-coral: #e8634a;
  --c-coral-light: #fce8e4;
  --c-teal: #2a9d8f;
  --c-teal-light: #e0f5f1;
  --c-gold: #e9a948;
  --c-gold-light: #fdf4e3;
  --c-blue: #264653;
  --c-white: #ffffff;
  --font-cn: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,.08);
  --radius: 16px;
  --radius-sm: 10px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family: var(--font-cn);
  color: var(--c-body);
  background: var(--c-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width:100%; display:block; }
a { color: var(--c-coral); text-decoration:none; transition: color .2s; }
a:hover { color: var(--c-teal); }

/* [P1-01 FIX] Focus-visible indicators for accessibility */
a:focus-visible, button:focus-visible, .nav-cta:focus-visible {
  outline: 2px solid var(--c-teal);
  outline-offset: 4px;
}

/* ── NAV ── */
.nav {
  position:fixed; top:0; left:0; right:0; z-index:100;
  background: rgba(250,248,245,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width:1200px; margin:0 auto; padding:0 24px;
  display:flex; align-items:center; justify-content:space-between; height:68px;
}
.nav-logo {
  display: flex; align-items: center; text-decoration: none;
}
.nav-logo img { height: 36px; width: auto; display: block; }
.nav-logo span { display: none; }
.nav-logo .nav-slogan {
  display: inline;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1.5px solid rgba(232,99,74,.25);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--c-muted);
  white-space: nowrap;
  position: relative;
  transition: color .3s ease;
}
.nav-logo:hover .nav-slogan { color: var(--c-coral); }
.nav-links { display:flex; gap:32px; list-style:none; }
.nav-links a {
  color: var(--c-body); font-size:15px; font-weight:500;
  position:relative; padding:4px 0;
}
.nav-links a::after {
  content:''; position:absolute; bottom:0; left:0; width:0; height:2px;
  background: var(--c-coral); transition: width .3s;
}
.nav-links a:hover { color: var(--c-ink); }
.nav-links a:hover::after { width:100%; }
.nav-cta {
  background: var(--c-coral); color:#fff; padding:10px 24px;
  border-radius:50px; font-size:14px; font-weight:600;
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { color:#fff; transform:translateY(-1px); box-shadow:0 6px 20px rgba(232,99,74,.3); }

/* [P1-02 FIX] Menu Toggle for Mobile */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: var(--c-ink);
  cursor: pointer;
  padding: 4px;
}

/* CLS Prevention Skeleton */
.img-skeleton {
  background: rgba(0,0,0,0.03);
  border-radius: var(--radius-sm);
  display: block;
}

/* ── FOOTER ── */
.footer {
  background: var(--c-ink); color:rgba(255,255,255,.55); padding:48px 24px 32px;
}
.footer-inner {
  max-width:1200px; margin:0 auto;
  display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:32px;
}
.footer-brand .footer-logo {
  margin-bottom:10px;
}
.footer-brand .footer-logo img { height: 32px; width: auto; display: block; }
.footer-brand .footer-logo span { display: none; }
.footer-brand p { font-size:13px; max-width:320px; }
.footer-links h4 { color:#fff; font-size:14px; font-weight:600; margin-bottom:14px; }
.footer-links ul { list-style:none; }
.footer-links li { margin-bottom:8px; }
.footer-links a { color:rgba(255,255,255,.55); font-size:13px; }
.footer-links a:hover { color: var(--c-coral); }
.footer-bottom {
  max-width:1200px; margin:32px auto 0;
  padding-top:24px; border-top:1px solid rgba(255,255,255,.1);
  text-align:center; font-size:13px;
}
.footer-bottom a { color:rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--c-coral); }
.icp-badge { margin-top:8px; }
.icp-badge a { color:rgba(255,255,255,.45); font-size:12px; }

/* ── LEGAL PAGE ── */
.legal-hero {
  padding:120px 24px 48px;
  background: linear-gradient(135deg, var(--c-warm), var(--c-cream));
  text-align:center;
}
.legal-hero h1 {
  font-size:36px; font-weight:800; color: var(--c-ink); margin-bottom:12px;
}
.legal-hero p { font-size:15px; color: var(--c-muted); }
.legal-content {
  max-width:800px; margin:0 auto; padding:48px 24px 80px;
}
.legal-content h2 {
  font-size:22px; font-weight:700; color: var(--c-ink);
  margin:40px 0 16px; padding-bottom:10px;
  border-bottom:2px solid var(--c-coral-light);
}
.legal-content h2:first-child { margin-top:0; }
.legal-content h3 {
  font-size:17px; font-weight:600; color: var(--c-ink); margin:24px 0 10px;
}
.legal-content p { margin-bottom:14px; font-size:15px; }
.legal-content ul, .legal-content ol {
  margin:0 0 16px 24px; font-size:15px;
}
.legal-content li { margin-bottom:6px; }
.legal-content .update-date {
  display:inline-block; background: var(--c-coral-light); color: var(--c-coral);
  padding:6px 16px; border-radius:50px; font-size:13px; font-weight:600;
  margin-bottom:32px;
}

/* ══════════════════════════════════════════════
   [P2-08 FIX] CONSULTATION MODAL — Unified
   ══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(26,26,46,.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-card {
  position: relative; width: 90%; max-width: 440px;
  background: #fff; border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0,0,0,.18), 0 0 0 1px rgba(255,255,255,.1);
  overflow: hidden;
  transform: translateY(30px) scale(.95);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.modal-overlay.active .modal-card { transform: translateY(0) scale(1); }
.modal-accent {
  height: 5px;
  background: linear-gradient(90deg, #e8634a, #e9a948, #2a9d8f);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.04);
  font-size: 20px; color: #7c7c9a; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, transform .2s;
}
.modal-close:hover { background: rgba(232,99,74,.1); color: #e8634a; transform: rotate(90deg); }
.modal-body { padding: 40px 36px 36px; text-align: center; }
.modal-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #fce8e4, #fdf4e3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.modal-body h3 {
  font-size: 24px; font-weight: 800; color: #1a1a2e;
  margin-bottom: 12px; letter-spacing: -.3px;
}
.modal-desc {
  font-size: 15px; color: #7c7c9a; line-height: 1.6;
  margin-bottom: 28px;
}
.modal-desc strong { color: #e8634a; font-weight: 600; }
.modal-email-box {
  background: #faf8f5; border-radius: 14px;
  padding: 18px 24px; margin-bottom: 24px;
  border: 1px solid rgba(0,0,0,.06);
}
.modal-email-label {
  display: block; font-size: 12px; font-weight: 600;
  color: #7c7c9a; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 6px;
}
.modal-email-addr {
  font-size: 20px; font-weight: 700; color: #1a1a2e;
  text-decoration: none; letter-spacing: -.3px;
}
.modal-email-addr:hover { color: #e8634a; }
.modal-btn {
  display: inline-block; width: 100%;
  background: linear-gradient(135deg, #e8634a, #d44f38);
  color: #fff; padding: 16px 32px;
  border-radius: 14px; font-size: 16px; font-weight: 700;
  text-decoration: none; letter-spacing: .3px;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 4px 16px rgba(232,99,74,.3);
}
.modal-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,99,74,.4);
}
.modal-hint {
  font-size: 12px; color: #b0b0c0; margin-top: 16px;
}

/* [P3-01 FIX] Body scroll lock when modal is open */
body.modal-open {
  overflow: hidden;
}

/* ── RESPONSIVE ── */
@media(max-width:900px){
  /* [P1-02 FIX] Mobile hamburger menu */
  .menu-toggle { display: block; }
  .nav-logo .nav-slogan { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--c-white);
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-md);
    gap: 16px;
  }
  .nav-links.active { display: flex; }
  .footer-inner { flex-direction:column; align-items:center; text-align:center; }
  .legal-hero h1 { font-size:28px; }
}

@media(max-width:480px){
  .modal-body { padding: 32px 24px 28px; }
  .modal-body h3 { font-size: 20px; }
  .modal-email-addr { font-size: 17px; }
}

/* -- Anchor offset fix -- */
section[id] { scroll-margin-top: 80px; }
