/* ============================================================
   LEGAL PAGES  —  Shared across: nda, privacy, refund, sla, terms
   Namespace: frag-legal  /  lgl-*
   File: mani-legal-ltr.css
   ============================================================ */

/* ---------- Keyframes ---------- */
@keyframes lgl-rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes lgl-line-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes lgl-badge-pop {
    0%   { transform: scale(0.8); opacity: 0; }
    70%  { transform: scale(1.06); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes lgl-glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.15); }
    50%       { box-shadow: 0 0 0 10px rgba(37,99,235,0); }
}

/* ---------- Reveal helpers ---------- */
.frag-legal .lgl-ri  { animation: lgl-rise .65s cubic-bezier(.22,1,.36,1) both; }
.frag-legal .lgl-d1  { animation-delay: .05s; }
.frag-legal .lgl-d2  { animation-delay: .10s; }
.frag-legal .lgl-d3  { animation-delay: .15s; }
.frag-legal .lgl-d4  { animation-delay: .20s; }
.frag-legal .lgl-d5  { animation-delay: .25s; }
.frag-legal .lgl-d6  { animation-delay: .30s; }

/* ---------- Root tokens ---------- */
.frag-legal {
    --ink:      #0b1120;
    --ink2:     #1a2340;
    --slate:    #5b6b8a;
    --silver:   #94a3b8;
    --mist:     #e2e8f0;
    --snow:     #f8fafc;
    --white:    #ffffff;
    --blue:     #2563eb;
    --blue-h:   #1d4ed8;
    --blue-d:   #1e40af;
    --blue-l:   #eff6ff;
    --blue-xl:  #dbeafe;
    --green:    #059669;
    --green-l:  #ecfdf5;
    --amber:    #f59e0b;
    --amber-l:  #fffbeb;
    --red:      #ef4444;
    --red-l:    #fef2f2;
    --purple:   #7c3aed;
    --purple-l: #f5f3ff;
    --sans: 'Plus Jakarta Sans', system-ui, sans-serif;

    font-family: var(--sans);
    color: var(--ink2);
    line-height: 1.6;
    background: var(--white);
}

.frag-legal a { text-decoration: none; color: inherit; }
.frag-legal img { max-width: 100%; display: block; }

/* ---------- Layout Wrapper ---------- */
.lgl-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.lgl-wrap--wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.lgl-hero {
    position: relative;
    padding: 64px 24px 56px;
    text-align: center;
    background: var(--ink);
    overflow: hidden;
}

/* Dot grid texture */
.lgl-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* Blue glow from top */
.lgl-hero::after {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 220px;
    background: radial-gradient(ellipse, rgba(37,99,235,.35) 0%, transparent 70%);
    pointer-events: none;
}

.lgl-hero-inner {
    position: relative;
    z-index: 2;
}

/* Icon badge */
.lgl-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(37,99,235,.15);
    border: 1px solid rgba(37,99,235,.3);
    border-radius: 18px;
    font-size: 26px;
    color: #93c5fd;
    margin-bottom: 20px;
    animation: lgl-badge-pop .5s cubic-bezier(.22,1,.36,1) .1s both;
}

/* Eye label */
.lgl-hero-eye {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #60a5fa;
    margin-bottom: 12px;
    opacity: .85;
}

.lgl-hero h1 {
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1.2px;
    line-height: 1.15;
    margin: 0 0 14px;
}

.lgl-hero h1 em {
    color: #60a5fa;
    font-style: normal;
}

.lgl-hero-meta {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,.45);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.lgl-hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lgl-hero-meta i {
    color: #60a5fa;
    font-size: 13px;
    font-weight: 700;
}

/* ---------- Quick nav pills ---------- */
.lgl-nav-strip {
    background: var(--snow);
    border-bottom: 1px solid var(--mist);
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.lgl-nav-strip-in {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.lgl-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: var(--slate);
    background: var(--white);
    border: 1px solid var(--mist);
    cursor: pointer;
    transition: .2s;
    text-decoration: none;
}

.lgl-nav-pill:hover,
.lgl-nav-pill.active {
    background: var(--blue-l);
    color: var(--blue);
    border-color: #bfdbfe;
}

.lgl-nav-pill i { font-size: 13px; font-weight: 700; }

/* ============================================================
   BODY LAYOUT — sidebar TOC + main content
   ============================================================ */
.lgl-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    padding: 56px 24px 80px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

/* ---- Table of Contents Sidebar ---- */
.lgl-toc {
    position: sticky;
    top: 60px;
}

.lgl-toc-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--silver);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--mist);
}

.lgl-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lgl-toc-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--slate);
    transition: .2s;
    border-left: 2px solid transparent;
}

.lgl-toc-list a:hover,
.lgl-toc-list a.lgl-toc-active {
    color: var(--blue);
    background: var(--blue-l);
    border-left-color: var(--blue);
}

.lgl-toc-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--mist);
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--slate);
    flex-shrink: 0;
    transition: .2s;
}

.lgl-toc-list a:hover .lgl-toc-num,
.lgl-toc-list a.lgl-toc-active .lgl-toc-num {
    background: var(--blue);
    color: #fff;
}

/* ---- Main content area ---- */
.lgl-content {
    min-width: 0;
}

/* ============================================================
   SECTION BLOCKS
   ============================================================ */
.lgl-section {
    margin-bottom: 48px;
    scroll-margin-top: 72px;
}

/* Section header */
.lgl-sec-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--mist);
    position: relative;
}

/* Animated underline */
.lgl-sec-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
    transform-origin: left;
    animation: lgl-line-grow .5s cubic-bezier(.22,1,.36,1) .3s both;
}

.lgl-sec-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--blue);
    color: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 4px 12px rgba(37,99,235,.25);
}

.lgl-sec-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    letter-spacing: -.3px;
    line-height: 1.3;
}

/* Body text */
.lgl-body {
    font-size: 16px;
    font-weight: 500;
    color: var(--slate);
    line-height: 1.8;
    font-weight: 500;
    margin: 0 0 16px;
}

.lgl-body:last-child { margin-bottom: 0; }

.lgl-body a {
    color: var(--blue);
    font-weight: 700;
    border-bottom: 1px solid var(--blue-xl);
    transition: .15s;
}

.lgl-body a:hover {
    border-bottom-color: var(--blue);
    color: var(--blue-h);
}

/* Strong inside body */
.lgl-body strong {
    color: var(--ink2);
    font-weight: 800;
}

/* ============================================================
   LIST STYLES
   ============================================================ */

/* Checked list */
.lgl-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lgl-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink2);
    line-height: 1.65;
    padding: 10px 14px;
    background: var(--snow);
    border: 1px solid var(--mist);
    border-radius: 10px;
    transition: .2s;
}

.lgl-list li:hover {
    background: var(--blue-l);
    border-color: #bfdbfe;
}

.lgl-list li::before {
    content: '';
    display: inline-flex;
    width: 18px;
    height: 18px;
    background: var(--blue);
    border-radius: 5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Numbered list */
.lgl-olist {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    counter-reset: lgl-counter;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lgl-olist li {
    counter-increment: lgl-counter;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink2);
    line-height: 1.65;
    padding: 10px 14px;
    background: var(--snow);
    border: 1px solid var(--mist);
    border-radius: 10px;
    transition: .2s;
}

.lgl-olist li:hover {
    background: var(--blue-l);
    border-color: #bfdbfe;
}

.lgl-olist li::before {
    content: counter(lgl-counter);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--blue-xl);
    color: var(--blue);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ============================================================
   CALLOUT CARDS  (highlight / warning / info)
   ============================================================ */
.lgl-callout {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 14px;
    margin-bottom: 16px;
    border: 1px solid;
}

.lgl-callout--blue {
    background: var(--blue-l);
    border-color: #bfdbfe;
}

.lgl-callout--green {
    background: var(--green-l);
    border-color: #a7f3d0;
}

.lgl-callout--amber {
    background: var(--amber-l);
    border-color: #fde68a;
}

.lgl-callout--red {
    background: var(--red-l);
    border-color: #fecaca;
}

.lgl-callout-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.lgl-callout--blue  .lgl-callout-icon { background: #dbeafe; color: var(--blue); }
.lgl-callout--green .lgl-callout-icon { background: #d1fae5; color: var(--green); }
.lgl-callout--amber .lgl-callout-icon { background: #fef3c7; color: #92400e; }
.lgl-callout--red   .lgl-callout-icon { background: #fee2e2; color: var(--red); }

.lgl-callout-body {}

.lgl-callout-title {
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 4px;
}

.lgl-callout--blue  .lgl-callout-title { color: var(--blue-d); }
.lgl-callout--green .lgl-callout-title { color: #065f46; }
.lgl-callout--amber .lgl-callout-title { color: #78350f; }
.lgl-callout--red   .lgl-callout-title { color: #991b1b; }

.lgl-callout-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    margin: 0;
    color: var(--slate);
}

/* ============================================================
   DATA TABLE  (SLA response times, etc.)
   ============================================================ */
.lgl-table-wrap {
    border: 1px solid var(--mist);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,.03);
}

.lgl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.lgl-table thead th {
    background: var(--ink);
    color: rgba(255,255,255,.75);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 14px 18px;
    text-align: left;
}

.lgl-table thead th:first-child { color: #fff; }

.lgl-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: .15s;
}

.lgl-table tbody tr:last-child { border-bottom: none; }

.lgl-table tbody tr:hover { background: var(--blue-l); }

.lgl-table td {
    padding: 13px 18px;
    vertical-align: middle;
    color: var(--ink2);
    font-weight: 600;
}

.lgl-table td:first-child {
    font-weight: 700;
    color: var(--ink);
}

.lgl-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
}

.lgl-badge--red    { background: var(--red-l);    color: #991b1b; border: 1px solid #fecaca; }
.lgl-badge--amber  { background: var(--amber-l);  color: #78350f; border: 1px solid #fde68a; }
.lgl-badge--blue   { background: var(--blue-l);   color: var(--blue-d); border: 1px solid #bfdbfe; }
.lgl-badge--green  { background: var(--green-l);  color: #065f46; border: 1px solid #a7f3d0; }
.lgl-badge--purple { background: var(--purple-l); color: var(--purple); border: 1px solid #ddd6fe; }

/* ============================================================
   CONTACT CARD
   ============================================================ */
.lgl-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.lgl-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--snow);
    border: 1px solid var(--mist);
    border-radius: 14px;
    transition: .2s;
    text-decoration: none;
    color: inherit;
}

.lgl-contact-item:hover {
    border-color: var(--blue);
    background: var(--blue-l);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37,99,235,.08);
}

.lgl-contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.lgl-contact-icon--blue   { background: var(--blue-l); color: var(--blue); }
.lgl-contact-icon--green  { background: var(--green-l); color: var(--green); }
.lgl-contact-icon--amber  { background: var(--amber-l); color: #92400e; }
.lgl-contact-icon--purple { background: var(--purple-l); color: var(--purple); }

.lgl-contact-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--silver);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 2px;
}

.lgl-contact-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

/* ============================================================
   ESCALATION STEPS  (SLA)
   ============================================================ */
.lgl-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    margin-bottom: 16px;
}

.lgl-steps::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--blue), var(--mist));
}

.lgl-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    position: relative;
    z-index: 1;
}

.lgl-step-dot {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37,99,235,.3);
}

.lgl-step-body {}

.lgl-step-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 4px;
}

.lgl-step-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--slate);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   CTA BOTTOM SECTION
   ============================================================ */
.lgl-cta {
    padding: 64px 24px;
    background: var(--snow);
    border-top: 1px solid var(--mist);
}

.lgl-cta-box {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    background: var(--ink);
    border-radius: 24px;
    padding: 52px 40px;
    position: relative;
    overflow: hidden;
}

.lgl-cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.lgl-cta-box::after {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(37,99,235,.3) 0%, transparent 70%);
    pointer-events: none;
}

.lgl-cta-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    position: relative;
    z-index: 2;
    letter-spacing: -.4px;
}

.lgl-cta-box p {
    color: rgba(255,255,255,.55);
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 28px;
    position: relative;
    z-index: 2;
}

.lgl-cta-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* ============================================================
   PROGRESS / STATS STRIP
   ============================================================ */
.lgl-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--mist);
    border: 1px solid var(--mist);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
}

.lgl-stat-item {
    background: var(--white);
    padding: 24px;
    text-align: center;
}

.lgl-stat-val {
    font-size: 28px;
    font-weight: 900;
    color: var(--blue);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 6px;
}

.lgl-stat-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--silver);
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* ============================================================
   INLINE DIVIDER
   ============================================================ */
.lgl-divider {
    height: 1px;
    background: var(--mist);
    margin: 32px 0;
    position: relative;
}

.lgl-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 56px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .lgl-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 20px 60px;
    }

    .lgl-toc {
        position: static;
        display: none; /* hidden on mobile, nav-strip takes over */
    }

    .lgl-contact-grid {
        grid-template-columns: 1fr;
    }

    .lgl-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .lgl-hero {
        padding: 48px 20px 44px;
    }

    .lgl-hero h1 {
        font-size: 40px;
    }

    .lgl-cta-box {
        padding: 40px 22px;
    }

    .lgl-sec-title {
        font-size: 20px;
    }

    .lgl-nav-strip-in {
        gap: 4px;
    }

    .lgl-nav-pill {
        font-size: 13px;
        padding: 5px 10px;
    }
}