/* =====================================================
   MirPDF — Legal & Corporate Pages CSS
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* ─── TOKENS ─── */
:root {
  --bg:        #ffffff;
  --bg2:       #f9fafb;
  --bg3:       #f1f3f7;
  --border:    #e4e7ed;
  --text:      #111827;
  --text2:     #374151;
  --muted:     #6b7280;
  --light:     #9ca3af;
  --accent:    #111827;
  --accent-h:  #1f2937;
  --blue:      #2563eb;
  --green:     #059669;
  --red:       #dc2626;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 1px 3px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.05);
  --shadow-lg: 0 4px 6px rgba(0,0,0,.05), 0 12px 36px rgba(0,0,0,.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
.l-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.l-nav-logo {
  display: flex; align-items: center; gap: .5rem;
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 1.1rem;
}
.l-nav-badge {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800;
}
.l-nav-links { display: flex; align-items: center; gap: .2rem; }
.l-nav-links a {
  text-decoration: none; color: var(--muted); font-size: .88rem;
  font-weight: 500; padding: .4rem .85rem; border-radius: 8px;
  transition: background .15s, color .15s;
}
.l-nav-links a:hover { background: var(--bg2); color: var(--text); }
.l-nav-cta {
  background: var(--accent); color: #fff;
  padding: .45rem 1.2rem; border-radius: 8px;
  font-weight: 700; font-size: .88rem;
  text-decoration: none; transition: background .15s;
}
.l-nav-cta:hover { background: var(--accent-h); }

/* ─── HERO BAND ─── */
.l-hero {
  background: var(--text);
  color: #fff;
  padding: 4rem 2rem 3.5rem;
  text-align: center;
}
.l-hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  padding: .3rem 1rem; border-radius: 100px;
  margin-bottom: 1.25rem;
}
.l-hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600; line-height: 1.2;
  margin-bottom: .75rem;
}
.l-hero-meta {
  color: rgba(255,255,255,.55);
  font-size: .88rem;
}
.l-hero-meta strong { color: rgba(255,255,255,.8); font-weight: 500; }

/* ─── LAYOUT ─── */
.l-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  align-items: start;
}

/* ─── SIDEBAR TOC ─── */
.l-toc {
  position: sticky; top: 82px;
}
.l-toc-title {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin-bottom: 1rem;
}
.l-toc ul { list-style: none; }
.l-toc li { margin-bottom: .15rem; }
.l-toc a {
  text-decoration: none; color: var(--muted);
  font-size: .85rem; font-weight: 500;
  display: block; padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all .15s;
}
.l-toc a:hover { color: var(--text); background: var(--bg2); }
.l-toc a.active { color: var(--text); border-left-color: var(--text); background: var(--bg2); }

/* ─── CONTENT ─── */
.l-content {}

/* Section */
.l-section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 80px;
}
.l-section-title {
  font-family: 'Lora', serif;
  font-size: 1.45rem; font-weight: 600;
  color: var(--text); margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1.5px solid var(--border);
  display: flex; align-items: center; gap: .6rem;
}
.l-section-title .s-num {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--bg3); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem; font-weight: 700; flex-shrink: 0;
}

/* Typography */
.l-content p { color: var(--text2); margin-bottom: 1rem; }
.l-content p:last-child { margin-bottom: 0; }
.l-content strong { color: var(--text); font-weight: 600; }
.l-content a { color: var(--blue); text-decoration: none; }
.l-content a:hover { text-decoration: underline; }

/* Cards */
.l-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem; margin: 1.25rem 0;
}
.l-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.l-card-icon { font-size: 1.5rem; margin-bottom: .6rem; }
.l-card h4 { font-size: .9rem; font-weight: 700; margin-bottom: .35rem; color: var(--text); }
.l-card p { font-size: .84rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* Lists */
.l-list { list-style: none; margin: 1rem 0; }
.l-list li {
  padding: .55rem 0 .55rem 1.4rem;
  position: relative;
  color: var(--text2); font-size: .95rem;
  border-bottom: 1px solid var(--border);
}
.l-list li:last-child { border-bottom: none; }
.l-list li::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted); transform: translateY(-50%);
}
.l-list li strong { color: var(--text); }

/* Highlight box */
.l-box {
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: .93rem;
}
.l-box-blue  { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.l-box-green { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.l-box-yellow{ background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.l-box-gray  { background: var(--bg2); border: 1px solid var(--border); color: var(--text2); }
.l-box strong { font-weight: 700; }

/* Table */
.l-table-wrap { overflow-x: auto; margin: 1.25rem 0; }
.l-table {
  width: 100%; border-collapse: collapse;
  font-size: .9rem;
}
.l-table th {
  background: var(--bg3); text-align: left;
  padding: .75rem 1rem; font-weight: 600; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  border-bottom: 2px solid var(--border);
}
.l-table td {
  padding: .75rem 1rem; color: var(--text2);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.l-table tr:hover td { background: var(--bg2); }
.l-table td:first-child { font-weight: 600; color: var(--text); }

/* Badge */
.l-badge {
  display: inline-block;
  padding: .2rem .65rem; border-radius: 100px;
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.l-badge-green { background: #dcfce7; color: #166534; }
.l-badge-blue  { background: #dbeafe; color: #1e40af; }
.l-badge-gray  { background: var(--bg3); color: var(--muted); }

/* Contact Card */
.l-contact {
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  margin-top: 2rem;
}
.l-contact h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .25rem; }
.l-contact p { font-size: .88rem; color: rgba(255,255,255,.65); margin: 0; }
.l-contact a {
  background: #fff; color: var(--text);
  padding: .65rem 1.5rem; border-radius: 8px;
  font-weight: 700; font-size: .9rem; text-decoration: none;
  white-space: nowrap; transition: opacity .15s;
}
.l-contact a:hover { opacity: .88; }

/* ─── FOOTER ─── */
.l-footer {
  background: var(--text); color: rgba(255,255,255,.55);
  padding: 3rem 2rem 1.5rem;
}
.l-footer-inner { max-width: 1100px; margin: 0 auto; }
.l-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem; margin-bottom: 2.5rem;
}
.l-footer-brand {
  display: flex; align-items: center; gap: .5rem;
  color: #fff; font-weight: 700; font-size: 1rem;
  text-decoration: none; margin-bottom: .85rem;
}
.l-footer-brand-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800; color: #fff;
}
.l-footer-desc { font-size: .84rem; line-height: 1.7; }
.l-footer-col h4 {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.35); margin-bottom: .9rem;
}
.l-footer-col a {
  display: block; color: rgba(255,255,255,.55);
  text-decoration: none; font-size: .84rem; margin-bottom: .45rem;
  transition: color .15s;
}
.l-footer-col a:hover { color: #fff; }
.l-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; flex-wrap: wrap; gap: .5rem;
}
.l-footer-bottom a { color: rgba(255,255,255,.45); text-decoration: none; }
.l-footer-bottom a:hover { color: rgba(255,255,255,.8); }
.l-footer-sep { margin: 0 .5rem; opacity: .3; }

/* ─── ABOUT SPECIFIC ─── */
.about-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: #fff; padding: 5rem 2rem 4rem; text-align: center;
}
.about-hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600; line-height: 1.15;
  margin-bottom: 1rem;
}
.about-hero p {
  font-size: 1.1rem; color: rgba(255,255,255,.7);
  max-width: 560px; margin: 0 auto;
}
.about-stats {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 2.5rem 2rem;
}
.about-stats-inner {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  text-align: center;
}
.about-stat-num {
  font-family: 'Lora', serif;
  font-size: 2.2rem; font-weight: 600; color: var(--text);
  line-height: 1; margin-bottom: .25rem;
}
.about-stat-label { font-size: .84rem; color: var(--muted); }
.about-section { max-width: 900px; margin: 0 auto; padding: 4rem 2rem; }
.about-section h2 {
  font-family: 'Lora', serif;
  font-size: 1.7rem; font-weight: 600; margin-bottom: 1.25rem;
}
.about-section p { color: var(--text2); font-size: 1rem; margin-bottom: 1rem; }
.about-values {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem; margin-top: 2rem;
}
.about-value {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.about-value-icon { font-size: 2rem; margin-bottom: .85rem; }
.about-value h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.about-value p { font-size: .88rem; color: var(--muted); line-height: 1.6; margin: 0; }
.about-team {
  background: var(--text); color: #fff;
  padding: 4rem 2rem; text-align: center;
}
.about-team h2 {
  font-family: 'Lora', serif;
  font-size: 1.7rem; margin-bottom: .75rem;
}
.about-team p { color: rgba(255,255,255,.65); max-width: 520px; margin: 0 auto 2rem; }
.about-team-card {
  display: inline-flex; align-items: center; gap: 1rem;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 1.5rem 2rem;
}
.about-team-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.about-team-info { text-align: left; }
.about-team-name { font-weight: 700; font-size: 1.05rem; }
.about-team-role { font-size: .84rem; color: rgba(255,255,255,.55); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .l-layout { grid-template-columns: 1fr; gap: 0; }
  .l-toc { display: none; }
  .l-footer-grid { grid-template-columns: 1fr 1fr; }
  .about-stats-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .l-nav-links a:not(.l-nav-cta) { display: none; }
  .l-layout { padding: 2.5rem 1.25rem 4rem; }
  .l-hero { padding: 2.5rem 1.25rem 2rem; }
  .l-cards { grid-template-columns: 1fr; }
  .l-footer-grid { grid-template-columns: 1fr; }
  .l-contact { flex-direction: column; }
  .about-stats-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .about-section { padding: 3rem 1.25rem; }
}
