/* ChatLesh — legal & policy site
 * Shared stylesheet for all policy pages
 * © 2026 Okutan Digital
 */

:root {
  --brand: #6D28D9;
  --brand-strong: #5B21B6;
  --brand-soft: #F5F3FF;
  --brand-line: #DDD6FE;
  --ink: #0F172A;
  --ink-strong: #020617;
  --muted: #64748B;
  --muted-2: #94A3B8;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --bg: #FFFFFF;
  --surface: #F8FAFC;
  --surface-2: #F1F5F9;
  --danger: #B91C1C;
  --danger-bg: #FEE2E2;
  --warn: #B45309;
  --warn-bg: #FEF3C7;
  --success: #15803D;
  --success-bg: #DCFCE7;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
  --shadow: 0 4px 12px rgba(15,23,42,0.06);
  --shadow-lg: 0 12px 32px rgba(15,23,42,0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
button { font: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─────────────────────────────────── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-strong);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.2px;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-switch a {
  padding: 6px 14px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  transition: all 0.15s;
}
.lang-switch a.active {
  background: var(--ink-strong);
  color: white;
}
.lang-switch a:not(.active):hover {
  color: var(--ink);
}

/* ─────────────────────────────────── Page hero ─── */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 40px;
}
.page-hero .container { max-width: 900px; }
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  letter-spacing: 0.2px;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { margin: 0 8px; color: var(--muted-2); }
.page-hero h1 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -1px;
  font-weight: 800;
  color: var(--ink-strong);
  margin-bottom: 14px;
}
@media (max-width: 600px) {
  .page-hero h1 { font-size: 32px; }
  .page-hero { padding: 40px 0 32px; }
}
.page-hero .subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.55;
}
.stamp {
  margin-top: 22px;
  display: inline-flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--muted);
}
.stamp strong { color: var(--ink); font-weight: 600; }

/* ─────────────────────────────────── Body & layout ─── */
.page-body {
  padding: 48px 0 80px;
}
.page-body .container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
}
@media (max-width: 900px) {
  .page-body .container { grid-template-columns: 1fr; gap: 32px; }
  .page-body { padding: 32px 0 48px; }
}

/* ─────────────────────────────────── Sidebar TOC ─── */
.toc {
  position: sticky;
  top: 88px;
  align-self: start;
  font-size: 14px;
}
@media (max-width: 900px) {
  .toc { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
}
.toc-title {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1.2px;
  margin-bottom: 14px;
  padding-left: 12px;
}
.toc ul { list-style: none; }
.toc li a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s;
  border-left: 2px solid transparent;
  margin-bottom: 2px;
}
.toc li a:hover {
  color: var(--ink);
  background: var(--surface);
}
.toc li a.active {
  color: var(--brand);
  background: var(--brand-soft);
  border-left-color: var(--brand);
  font-weight: 600;
}

/* ─────────────────────────────────── Content ─── */
.content {
  max-width: 720px;
  min-width: 0;
}
.content > .lede {
  font-size: 17px;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.content section {
  margin-bottom: 44px;
}
.content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink-strong);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
  scroll-margin-top: 88px;
}
.content h2 .num {
  color: var(--brand);
  margin-right: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-strong);
  margin: 24px 0 10px;
}
.content h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-strong);
  margin: 18px 0 8px;
}
.content p, .content ul, .content ol {
  color: var(--ink);
  margin-bottom: 14px;
  font-size: 15.5px;
  line-height: 1.7;
}
.content ul, .content ol { padding-left: 22px; }
.content li { margin-bottom: 8px; }
.content li::marker { color: var(--muted-2); }
.content strong { color: var(--ink-strong); font-weight: 600; }
.content em { font-style: italic; color: var(--ink); }
.content a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid var(--brand-line);
  transition: all 0.15s;
}
.content a:hover { border-bottom-color: var(--brand); }
.content hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
.content code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  background: var(--surface-2);
  border-radius: 4px;
  color: var(--brand-strong);
}

/* ─────────────────────────────────── Callouts ─── */
.callout {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border-left: 3px solid;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.6;
}
.callout > strong:first-child {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
}
.callout p:last-child { margin-bottom: 0; }
.callout.danger { background: var(--danger-bg); border-color: var(--danger); color: #7F1D1D; }
.callout.danger > strong:first-child { color: var(--danger); }
.callout.warn { background: var(--warn-bg); border-color: var(--warn); color: #78350F; }
.callout.warn > strong:first-child { color: var(--warn); }
.callout.info { background: var(--brand-soft); border-color: var(--brand); color: var(--ink); }
.callout.info > strong:first-child { color: var(--brand); }
.callout.success { background: var(--success-bg); border-color: var(--success); color: #14532D; }
.callout.success > strong:first-child { color: var(--success); }

/* ─────────────────────────────────── Contact card ─── */
.contact-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 14px 0;
}
.contact-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 10px;
}
.contact-card p { margin: 4px 0; font-size: 14px; color: var(--ink); }
.contact-card p strong { color: var(--ink-strong); }

/* ─────────────────────────────────── Definition list ─── */
.deflist {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 20px 0;
}
.deflist > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--line);
}
.deflist > div:last-child { border-bottom: none; }
.deflist dt {
  padding: 14px 18px;
  background: var(--surface);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-strong);
  border-right: 1px solid var(--line);
}
.deflist dd {
  padding: 14px 18px;
  font-size: 14.5px;
  color: var(--ink);
}
@media (max-width: 640px) {
  .deflist > div { grid-template-columns: 1fr; }
  .deflist dt { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ─────────────────────────────────── Footer ─── */
.site-footer {
  background: var(--ink-strong);
  color: var(--muted-2);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-col .footer-brand {
  color: white;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-col .footer-tag {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted-2);
  margin-bottom: 8px;
  max-width: 300px;
}
.footer-title {
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--muted-2);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #1E293B;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #64748B;
  font-size: 13px;
  flex-wrap: wrap;
}
.footer-lang { display: inline-flex; gap: 10px; align-items: center; }
.footer-lang a { color: #64748B; text-decoration: none; font-size: 13px; }
.footer-lang a:hover { color: white; }
.footer-lang .sep { color: #334155; }

/* ─────────────────────────────────── Home page ─── */
.home-hero {
  padding: 96px 0 72px;
  text-align: center;
  background:
    radial-gradient(circle at 25% 20%, rgba(124,58,237,0.10), transparent 45%),
    radial-gradient(circle at 75% 60%, rgba(236,72,153,0.08), transparent 45%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.home-hero h1 {
  font-size: 56px;
  letter-spacing: -1.8px;
  line-height: 1.05;
  font-weight: 800;
  color: var(--ink-strong);
  margin-bottom: 18px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 700px) {
  .home-hero h1 { font-size: 40px; letter-spacing: -1.2px; }
  .home-hero { padding: 72px 0 56px; }
}
.home-hero .lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.home-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--ink-strong);
  color: white;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.store-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.store-btn.secondary { background: white; color: var(--ink-strong); border: 1px solid var(--line-strong); }

.home-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.home-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink-strong);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.home-section .section-lede {
  font-size: 16px;
  color: var(--muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.policy-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.policy-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--brand-line);
}
.policy-card .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}
.policy-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-strong);
  margin-bottom: 6px;
}
.policy-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.policy-card .arrow {
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 500;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
