/* TeleNotify Pro — Legal Pages Stylesheet */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --tg: #1DA1D6;
    --tg-dk: #1585b2;
    --tg-lt: #e6f5fb;
    --tg-mid: #b3dff0;
    --gr: #00B87A;
    --gr-lt: #e5f8f1;
    --ink: #080d1a;
    --ink2: #2c3454;
    --dim: #64748b;
    --dim2: #94a3b8;
    --border: #e2e8f0;
    --bg: #f5f8ff;
    --white: #fff;
    
    --r4: 4px;
    --r8: 8px;
    --r12: 12px;
    --r16: 16px;
    --r20: 20px;
    --r24: 24px;
    --r32: 32px;
    
    --s1: 0 1px 3px rgba(0,0,0,.06),0 2px 6px rgba(0,0,0,.04);
    --s2: 0 4px 16px rgba(0,0,0,.08),0 1px 4px rgba(0,0,0,.04);
    --s3: 0 12px 40px rgba(0,0,0,.1),0 2px 8px rgba(0,0,0,.06);
    --s4: 0 24px 64px rgba(0,0,0,.12),0 4px 16px rgba(0,0,0,.06);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--ink);
    font-weight: 700;
}

a {
    color: var(--tg);
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
}

a:hover {
    color: var(--tg-dk);
    text-decoration: underline;
}

/* Accessibility: Keyboard Focus */
a:focus, button:focus, input:focus {
    outline: 2px solid var(--tg);
    outline-offset: 2px;
}

p {
    color: var(--dim);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/* NAVIGATION */
#nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 200;
    background: rgba(245, 248, 255, 0.93);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    transition: box-shadow 0.3s;
}

#nav.up {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
}

.nav-w {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-box {
    width: 38px;
    height: 38px;
    background: var(--tg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(29, 161, 214, 0.35);
}

.logo-box i {
    color: #fff;
    font-size: 18px;
}

.logo-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 9px;
    height: 9px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--bg);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .6; transform: scale(1.2); }
}

.logo-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.logo-name em {
    color: var(--tg);
    font-style: normal;
}

.nav-mid {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-mid a {
    text-decoration: none;
    color: var(--dim);
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-mid a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tg);
    border-radius: 2px;
    transition: width 0.25s ease;
}

.nav-mid a:hover {
    color: var(--tg);
}

.nav-mid a:hover::after {
    width: 100%;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--tg);
    color: #fff;
    padding: 9px 20px;
    border-radius: var(--r8);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-btn:hover {
    background: var(--tg-dk);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(29, 161, 214, 0.4);
    text-decoration: none;
    color: #white;
}

.hamburger {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--ink2);
    width: 38px;
    height: 38px;
    border-radius: var(--r8);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background 0.2s;
}

.hamburger:hover {
    background: var(--tg-lt);
}

/* MOBILE DRAWER */
.drawer {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    z-index: 199;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: var(--s3);
    transform: translateY(-120%);
    transition: transform 0.32s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}

.drawer.show {
    transform: none;
    pointer-events: all;
}

.drawer a {
    text-decoration: none;
    color: var(--ink2);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer a.dcta {
    background: var(--tg);
    color: #fff;
    justify-content: center;
    border-radius: var(--r8);
    padding: 13px;
    font-weight: 700;
    margin-top: 8px;
    border: none;
}

/* HERO SECTION FOR LEGAL PAGES */
.legal-hero {
    padding: 120px 20px 50px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, #edf5fe 0%, #f0faf8 50%, #f5f8ff 100%);
    border-bottom: 1px solid var(--border);
}

.legal-hero-in {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--tg-lt);
    color: var(--tg-dk);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.legal-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--dim);
}

.legal-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legal-meta-item i {
    color: var(--tg);
}

/* MAIN CONTENT GRID */
.legal-main {
    padding: 60px 20px 80px;
}

.legal-layout {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

/* SIDEBAR TABLE OF CONTENTS */
.legal-sidebar {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 12px;
}

/* Scrollbar for sidebar */
.legal-sidebar::-webkit-scrollbar {
    width: 4px;
}
.legal-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.legal-sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.toc-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ink2);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-item a {
    display: block;
    font-size: 0.85rem;
    color: var(--dim);
    line-height: 1.4;
    padding: 4px 0;
    transition: all 0.2s;
}

.toc-item a:hover {
    color: var(--tg);
    text-decoration: none;
    transform: translateX(3px);
}

.toc-item.active a {
    color: var(--tg);
    font-weight: 600;
    border-left: 2px solid var(--tg);
    padding-left: 8px;
}

/* ARTICLE CONTENT */
.legal-article {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r24);
    padding: 40px;
    box-shadow: var(--s2);
}

.intro-lead {
    font-size: 1.05rem;
    color: var(--ink2);
    line-height: 1.75;
    margin-bottom: 5px;
}

.legal-section {
    scroll-margin-top: 100px;
    margin-bottom: 40px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.35rem;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.legal-section h2 span.sec-num {
    background: var(--tg-lt);
    color: var(--tg-dk);
    font-size: 0.9rem;
    font-weight: 700;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Space Grotesk', sans-serif;
    margin-top: 2px;
}

.legal-section p {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.legal-section ul, .legal-section ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--dim);
    font-size: 0.95rem;
}

.legal-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-section strong {
    color: var(--ink);
}

/* Contact Info Box */
.contact-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r16);
    padding: 24px;
    margin-top: 20px;
}

.contact-details {
    list-style: none !important;
    padding-left: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--ink2) !important;
}

.contact-details i {
    color: var(--tg);
    font-size: 1.1rem;
    margin-top: 4px;
    width: 20px;
    text-align: center;
}

.contact-details strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dim);
}

/* BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--s2);
    transition: all 0.2s;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--tg);
    color: #fff;
    border-color: var(--tg);
    transform: translateY(-3px);
    box-shadow: var(--s3);
}

/* FOOTER */
footer {
    background: #080d1a;
    color: rgba(255, 255, 255, 0.6);
    padding: 56px 20px 26px;
}

.foot-w {
    max-width: 1180px;
    margin: 0 auto;
}

.foot-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.foot-brand p {
    font-size: 0.8rem;
    line-height: 1.7;
    margin: 10px 0 16px;
    color: rgba(255, 255, 255, 0.4);
    max-width: 250px;
}

.socials {
    display: flex;
    gap: 8px;
}

.soc {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.42);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s;
}

.soc:hover {
    background: var(--tg);
    color: #fff;
}

.foot-col h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.77rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 13px;
}

.foot-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.foot-col ul a {
    color: rgba(255, 255, 255, 0.42);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.foot-col ul a:hover {
    color: #white;
}

.foot-bot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 22px;
    font-size: 0.76rem;
    flex-wrap: wrap;
    gap: 10px;
}

.foot-bot a {
    color: rgba(255, 255, 255, 0.32);
    text-decoration: none;
    transition: color 0.2s;
}

.foot-bot a:hover {
    color: #white;
}

/* RESPONSIVE DESIGN */
@media(max-width: 1080px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .legal-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
        border-bottom: 1px solid var(--border);
        padding-bottom: 20px;
    }
    
    .toc-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 16px;
    }
    
    .foot-top {
        grid-template-columns: 1fr 1fr;
        gap: 26px;
    }
}

@media(max-width: 768px) {
    .nav-mid, .nav-btn {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .legal-hero {
        padding: 100px 20px 40px;
    }
    
    .legal-main {
        padding: 40px 20px 60px;
    }
    
    .legal-article {
        padding: 24px;
        border-radius: var(--r16);
    }
    
    .toc-list {
        grid-template-columns: 1fr;
    }
    
    .foot-top {
        grid-template-columns: 1fr;
    }
    
    .foot-bot {
        flex-direction: column;
        text-align: center;
    }
}
