/*
==========================================================
DISCLAIMER PAGE
Part 1 - Layout & Foundation
==========================================================
*/



/*
==========================================================
RESET
==========================================================
*/

*,
*::before,
*::after{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

/*
==========================================================
GLOBAL
==========================================================
*/

.container{

    width:min(var(--container),92%);

    margin:auto;

}

img{

    max-width:100%;

}

a{

    color:var(--primary);

    text-decoration:none;

    transition:var(--transition);

}

a:hover{

    /* color:var(--primary-dark); */

}

/*
==========================================================
PAGE
==========================================================
*/

.legal-page{

    padding-bottom:80px;

}

/*
==========================================================
HERO
==========================================================
*/

.legal-hero{

    background:
    linear-gradient(
    135deg,
    #0f172a 0%,
    #1e3a8a 100%
    );

    color:#fff;

    padding:90px 0 80px;

}

.page-tag{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:8px 18px;

    background:rgba(255,255,255,.15);

    border:1px solid rgba(255,255,255,.2);

    border-radius:100px;

    font-size:14px;

    letter-spacing:.5px;

    margin-bottom:24px;

    backdrop-filter:blur(8px);

}

.legal-hero h1{

    font-size:52px;

    font-weight:700;

    margin-bottom:20px;

    line-height:1.15;

}

.page-description{

    max-width:820px;

    font-size:18px;

    color:rgba(255,255,255,.9);

    line-height:1.9;

}

.last-updated{

    margin-top:35px;

    display:inline-block;

    padding:14px 20px;

    border-radius:12px;

    background:rgba(255,255,255,.12);

    border:1px solid rgba(255,255,255,.18);

    font-size:15px;

}

/*
==========================================================
MAIN LAYOUT
==========================================================
*/

.legal-wrapper{

    margin-top:70px;

}

.legal-wrapper .container{

    display:grid;

    grid-template-columns:320px 1fr;

    gap:40px;

    align-items:start;

}

/*
==========================================================
SIDEBAR
==========================================================
*/

.legal-sidebar{

    position:sticky;

    top:110px;

}

/*
==========================================================
TABLE OF CONTENTS
==========================================================
*/

.toc-card{

    border-radius: 16px;

    box-shadow:var(--shadow);

        border: 1px solid var(--border);

    overflow:hidden;

}

.toc-card h3{

    padding:24px 28px;

    font-size:20px;

    color:var(--heading);

    border-bottom:1px solid var(--border);

}

.toc-card nav{

    max-height:70vh;

    overflow-y:auto;

}

.toc-card ul{

    list-style:none;

}

.toc-card li{

    border-bottom:1px solid #f2f2f2;

}

.toc-card li:last-child{

    border-bottom:none;

}

.toc-card a{

    display:block;

    padding:15px 26px;

    

    font-size:15px;

    transition:var(--transition);

}

.toc-card a:hover{

    color:var(--primary);

    background:#eff6ff;

    padding-left:34px;

}

/*
==========================================================
ACTIVE LINK
(JS WILL ADD THIS CLASS)
==========================================================
*/

.toc-card a.active{

    background:#dbeafe;

    color:var(--primary-dark);

    border-left:4px solid var(--primary);

    font-weight:600;

}

/*
==========================================================
LEGAL CONTENT
==========================================================
*/

.legal-content{

    min-width:0;

}

.legal-card{

    background:var(--surface);

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    border:1px solid var(--border);

    padding:60px;

}

/*
==========================================================
CONTENT SPACING
==========================================================
*/

.legal-card section{

    scroll-margin-top:110px;

}

.legal-card section:not(:last-child){

    margin-bottom:40px;

}

/*
==========================================================
DISCLAIMER PAGE
Part 2 - Typography & Content
==========================================================
*/

/*
==========================================================
SECTION HEADINGS
==========================================================
*/

.legal-card h2{

    font-size:32px;

    font-weight:700;

    color:var(--heading);

    line-height:1.3;

    margin-bottom:28px;

    position:relative;

    padding-bottom:16px;

}

.legal-card h2::after{

    content:"";

    position:absolute;

    left:0;

    bottom:0;

    width:70px;

    height:4px;

    border-radius:50px;

    background:var(--primary);

}

/*
==========================================================
OPTIONAL SUB HEADINGS
==========================================================
*/

.legal-card h3{

    font-size:24px;

    font-weight:600;

    color:var(--heading);

    margin-top:35px;

    margin-bottom:18px;

}

.legal-card h4{

    font-size:20px;

    font-weight:600;

    color:var(--heading);

    margin-top:28px;

    margin-bottom:15px;

}

/*
==========================================================
PARAGRAPHS
==========================================================
*/

.legal-card p{

    

    font-size:17px;

    line-height:1.95;

    margin-bottom:22px;

}

.legal-card p:last-child{

    margin-bottom:0;

}

/*
==========================================================
BOLD
==========================================================
*/

.legal-card strong{

    font-weight:700;

    color:var(--heading);

}

/*
==========================================================
ITALIC
==========================================================
*/

.legal-card em{

    font-style:italic;

}

/*
==========================================================
LISTS
==========================================================
*/

.legal-card ul,
.legal-card ol{

    margin:25px 0 28px 28px;

}

.legal-card li{

    margin-bottom:14px;

    

    line-height:1.9;

    padding-left:6px;

}

.legal-card li::marker{

    color:var(--primary);

    font-weight:600;

}

/*
==========================================================
LINKS
==========================================================
*/

.legal-card a{

    color:var(--primary);

    font-weight:500;

    text-decoration:none;

    border-bottom:1px solid transparent;

    transition:var(--transition);

}

.legal-card a:hover{

    color:var(--primary-dark);

    border-bottom-color:var(--primary);

}

/*
==========================================================
HORIZONTAL RULE
==========================================================
*/

.legal-card hr{

    border:none;

    height:1px;

    background:var(--border);

    margin:55px 0;

}

/*
==========================================================
BLOCKQUOTE
==========================================================
*/

.legal-card blockquote{

    margin:35px 0;

    padding:25px 30px;

    border-left:5px solid var(--primary);

    background:#eff6ff;

    border-radius:12px;

    

    font-size:17px;

    font-style:italic;

}

/*
==========================================================
INLINE CODE
==========================================================
*/

.legal-card code{

    background:#eef2ff;

    color:#4338ca;

    padding:3px 8px;

    border-radius:6px;

    font-size:.95rem;

    font-family:Consolas,monospace;

}

/*
==========================================================
CODE BLOCK
==========================================================
*/

.legal-card pre{

    margin:30px 0;

    padding:24px;

    overflow:auto;

    border-radius:12px;

    background:#0f172a;

    color:#f8fafc;

    font-size:15px;

    line-height:1.8;

}

.legal-card pre code{

    background:none;

    color:inherit;

    padding:0;

}

/*
==========================================================
TABLE
==========================================================
*/

.legal-card table{

    width:100%;

    border-collapse:collapse;

    margin:35px 0;

    overflow:hidden;

    border-radius:12px;

}

.legal-card th{

    background:var(--primary);

    color:#fff;

    text-align:left;

    padding:16px;

    font-weight:600;

}

.legal-card td{

    padding:16px;

    border:1px solid var(--border);

}

.legal-card tbody tr:nth-child(even){

    background:#f9fafb;

}

/*
==========================================================
IMAGE
==========================================================
*/

.legal-card img{

    display:block;

    margin:35px auto;

    border-radius:14px;

    box-shadow:var(--shadow);

}

/*
==========================================================
FIGURE
==========================================================
*/

.legal-card figure{

    margin:35px 0;

}

.legal-card figcaption{

    text-align:center;

    margin-top:12px;

    font-size:14px;

    color:var(--text-light);

}

/*
==========================================================
NOTICE BOX
==========================================================
*/

.notice{

    margin:35px 0;

    padding:22px 26px;

    border-left:5px solid #f59e0b;

    background:#fffbeb;

    border-radius:12px;

}

.notice h4{

    margin-top:0;

}

.notice p{

    margin-bottom:0;

}

/*
==========================================================
SUCCESS BOX
==========================================================
*/

.success{

    margin:35px 0;

    padding:22px 26px;

    border-left:5px solid #22c55e;

    background:#f0fdf4;

    border-radius:12px;

}

/*
==========================================================
ERROR BOX
==========================================================
*/

.error{

    margin:35px 0;

    padding:22px 26px;

    border-left:5px solid #ef4444;

    background:#fef2f2;

    border-radius:12px;

}

/*
==========================================================
INFO BOX
==========================================================
*/

.info{

    margin:35px 0;

    padding:22px 26px;

    border-left:5px solid var(--primary);

    background:#eff6ff;

    border-radius:12px;

}

/*
==========================================================
SCROLLBAR
==========================================================
*/

.toc-card nav::-webkit-scrollbar{

    width:8px;

}

.toc-card nav::-webkit-scrollbar-track{

    background:#f3f4f6;

}

.toc-card nav::-webkit-scrollbar-thumb{

    background:#cbd5e1;

    border-radius:20px;

}

.toc-card nav::-webkit-scrollbar-thumb:hover{

    background:#94a3b8;

}

/*
==========================================================
TEXT SELECTION
==========================================================
*/

::selection{

    background:#bfdbfe;

    color:#111827;

}

/*
==========================================================
FOCUS
==========================================================
*/

a:focus,
button:focus{

    outline:3px solid rgba(37,99,235,.25);

    outline-offset:3px;

}

/*
==========================================================
DISCLAIMER PAGE
Part 3 - Responsive & Final Polish
==========================================================
*/

/*
==========================================================
TOC LINK ANIMATION
==========================================================
*/

.toc-card a{

    position:relative;

    overflow:hidden;

}

.toc-card a::before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    width:4px;

    height:100%;

    background:var(--primary);

    transform:scaleY(0);

    transform-origin:top;

    transition:.3s ease;

}

.toc-card a:hover::before,
.toc-card a.active::before{

    transform:scaleY(1);

}

/*
==========================================================
SECTION HOVER
==========================================================
*/

.legal-card section{

    transition:.3s ease;

}

.legal-card section:hover{

    transform:translateY(-2px);

}

/*
==========================================================
SCROLLBAR
==========================================================
*/

::-webkit-scrollbar{

    width:10px;

    height:10px;

}

::-webkit-scrollbar-track{

    background:#f3f4f6;

}

::-webkit-scrollbar-thumb{

    background:#cbd5e1;

    border-radius:50px;

}

::-webkit-scrollbar-thumb:hover{

    background:#94a3b8;

}

/*
==========================================================
BACK TO TOP BUTTON
==========================================================
*/

.back-to-top{

    position:fixed;

    right:30px;

    bottom:30px;

    width:54px;

    height:54px;

    border:none;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    cursor:pointer;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:22px;

    box-shadow:0 10px 30px rgba(37,99,235,.35);

    opacity:0;

    visibility:hidden;

    transition:.3s ease;

    z-index:1000;

}

.back-to-top.show{

    opacity:1;

    visibility:visible;

}

.back-to-top:hover{

    background:var(--primary-dark);

    transform:translateY(-4px);

}

/*
==========================================================
READING PROGRESS BAR
==========================================================
*/

.reading-progress{

    position:fixed;

    top:0;

    left:0;

    width:0;

    height:4px;

    background:var(--primary);

    z-index:99999;

    transition:width .1s linear;

}

/*
==========================================================
TABLE RESPONSIVE
==========================================================
*/

.legal-card{

    overflow:hidden;

}

.legal-card table{

    display:block;

    overflow-x:auto;

    white-space:nowrap;

}

/*
==========================================================
LARGE DESKTOP
==========================================================
*/

@media (min-width:1600px){

    .container{

        width:min(1500px,90%);

    }

}

/*
==========================================================
LAPTOP
==========================================================
*/

@media (max-width:1200px){

    .legal-wrapper .container{

        grid-template-columns:280px 1fr;

        gap:30px;

    }

    .legal-card{

        padding:45px;

    }

    .legal-hero h1{

        font-size:44px;

    }

}

/*
==========================================================
TABLET
==========================================================
*/

@media (max-width:992px){

    .legal-wrapper .container{

        grid-template-columns:1fr;

    }

    .legal-sidebar{

        position:relative;

        top:0;

        order:-1;

    }

    .toc-card{

        margin-bottom:30px;

    }

    .toc-card nav{

        max-height:320px;

    }

    .legal-card{

        padding:40px;

    }

}

/*
==========================================================
MOBILE
==========================================================
*/

@media (max-width:768px){

    .legal-hero{

        padding:70px 0 60px;

    }

    .legal-hero h1{

        font-size:38px;

    }

    .page-description{

        font-size:16px;

    }

    .legal-card{

        padding:30px;

        border-radius:16px;

    }

    .legal-card h2{

        font-size:28px;

    }

    .legal-card p{

        font-size:16px;

    }

    .toc-card h3{

        font-size:18px;

    }

    .toc-card a{

        font-size:14px;

        padding:13px 18px;

    }

    .back-to-top{

        width:48px;

        height:48px;

        right:20px;

        bottom:20px;

    }

}

/*
==========================================================
SMALL MOBILE
==========================================================
*/

@media (max-width:576px){

    .container{

        width:94%;

    }

    .legal-hero{

        text-align:center;

    }

    .page-tag{

        font-size:13px;

    }

    .legal-hero h1{

        font-size:32px;

    }

    .page-description{

        font-size:15px;

    }

    .last-updated{

        width:100%;

        text-align:center;

        font-size:14px;

    }

    .legal-card{

        padding:24px;

    }

    .legal-card h2{

        font-size:24px;

    }

    .legal-card h3{

        font-size:20px;

    }

    .legal-card p{

        font-size:15px;

        line-height:1.8;

    }

    .legal-card ul,
    .legal-card ol{

        margin-left:22px;

    }

    .legal-card li{

        font-size:15px;

    }

}

/*
==========================================================
PRINT
==========================================================
*/

@media print{

    body{

        background:#fff;

        color:#000;

    }

    .legal-sidebar,
    .reading-progress,
    .back-to-top{

        display:none !important;

    }

    .legal-wrapper .container{

        display:block;

    }

    .legal-card{

        box-shadow:none;

        border:none;

        padding:0;

    }

    .legal-hero{

        background:#fff;

        color:#000;

        padding:0 0 30px;

    }

    .page-description{

        color:#000;

    }

}

/*
==========================================================
DARK MODE
==========================================================
*/

@media (prefers-color-scheme:dark){


    .toc-card a:hover{

        background:#1e293b1c;

    }

    .toc-card a.active{

        background:#1e3a8a;

        color:#fff;

    }

    .legal-card blockquote{

        background:#172554;

    }

    .notice{

        background:#3b2f08;

    }

    .success{

        background:#052e16;

    }

    .error{

        background:#450a0a;

    }

    .info{

        background:#172554;

    }

}

/*
==========================================================
REDUCE MOTION
==========================================================
*/

@media (prefers-reduced-motion:reduce){

    *{

        animation:none !important;

        transition:none !important;

        scroll-behavior:auto !important;

    }

}

/*
==========================================================
ACCESSIBILITY
==========================================================
*/

:focus-visible{

    outline:3px solid var(--primary);

    outline-offset:4px;

}

/*
==========================================================
FINAL TOUCH
==========================================================
*/

.legal-card{

    transition:.35s ease;

}

.legal-card:hover{

    box-shadow:
        0 18px 50px rgba(15,23,42,.10);

}