/* ===========================
   Global
=========================== */

:root{
    --bg:#ffffff;
    --surface:#ffffff;
    --surface-alt:#f8fafc;

    --text:#1f2937;
    --text-light:#6b7280;

    --border:#e5e7eb;

    --primary:#2563eb;
    --primary-hover:#1d4ed8;

    --shadow:0 10px 35px rgba(0,0,0,.06);
}

body.dark{

    --bg:#0f172a;
    --surface:#111827;
    --surface-alt:#1f2937;

    --text:#f3f4f6;
    --text-light:#cbd5e1;

    --border:#374151;

    --primary:#3b82f6;
    --primary-hover:#60a5fa;

    --shadow:0 12px 35px rgba(0,0,0,.35);
}

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

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Inter',sans-serif;

    background:var(--bg);

    color:var(--text);

    line-height:1.7;

    transition:
        background .25s ease,
        color .25s ease;
}

.container{

    width:90%;

    max-width:1000px;

    margin:auto;
}

/* ===========================
   Theme Toggle
=========================== */

#theme-toggle{

    position:fixed;

    top:20px;

    right:20px;

    width:48px;

    height:48px;

    border:none;

    border-radius:50%;

    background:var(--surface);

    color:var(--text);

    cursor:pointer;

    font-size:1.2rem;

    box-shadow:var(--shadow);

    transition:.25s;

    z-index:999;
}

#theme-toggle:hover{

    transform:scale(1.08);
}

/* ===========================
   Header
=========================== */

header{

    position:sticky;

    top:0;

    z-index:100;

    background:var(--surface);

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

    backdrop-filter:blur(8px);

    transition:.25s;
}

.nav{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:22px 0;
}

nav{

    display:flex;

    gap:30px;
}

nav a{

    color:var(--text);

    text-decoration:none;

    font-weight:500;

    transition:.2s;
}

nav a:hover{

    color:var(--primary);
}

/* ===========================
   Hero
=========================== */

.hero{

    text-align:center;

    padding:120px 20px;
}

.hero h1{

    font-size:3rem;

    margin-bottom:25px;
}

.hero p{

    max-width:650px;

    margin:auto;

    color:var(--text-light);

    font-size:1.1rem;
}

.button{

    display:inline-block;

    margin-top:45px;

    padding:15px 34px;

    border-radius:8px;

    background:var(--primary);

    color:white;

    text-decoration:none;

    font-weight:600;

    transition:.2s;
}

.button:hover{

    background:var(--primary-hover);

    transform:translateY(-2px);
}

/* ===========================
   Sections
=========================== */

section{

    padding:80px 0;
}

section h2{

    margin-bottom:25px;

    font-size:2rem;
}

.cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:25px;

    margin-top:35px;
}

.card{

    background:var(--surface);

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

    border-radius:14px;

    padding:30px;

    box-shadow:var(--shadow);

    transition:.25s;
}

.card:hover{

    transform:translateY(-5px);
}

.card h3{

    margin-bottom:15px;
}

.card p{

    color:var(--text-light);
}

/* ===========================
   Generic Pages
=========================== */

.page{

    padding:80px 0;
}

.center{

    text-align:center;
}

/* ===========================
   Footer
=========================== */

footer{

    margin-top:80px;

    padding:40px;

    text-align:center;

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

    color:var(--text-light);
}

/* ===========================
   Privacy / Terms
=========================== */

body.document-page{

    background:var(--surface-alt);
}

.document{

    max-width:850px;

    margin:80px auto;

    padding:55px;

    background:var(--surface);

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

    border-radius:16px;

    box-shadow:var(--shadow);

    transition:.25s;
}

.document h1{

    margin-bottom:30px;

    font-size:2.4rem;
}

.document h2{

    margin-top:40px;

    margin-bottom:15px;

    font-size:1.4rem;
}

.document p{

    margin-bottom:18px;

    color:var(--text-light);
}

.document ul{

    margin-left:22px;

    margin-bottom:20px;
}

.document li{

    margin-bottom:10px;
}

.document a{

    color:var(--primary);

    text-decoration:none;
}

.document a:hover{

    text-decoration:underline;
}

.document-footer{

    margin-top:50px;

    padding-top:25px;

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

#email{
    color: var(--text);
}

/* ===========================
   Responsive
=========================== */

@media(max-width:700px){

    .nav{

        flex-direction:column;

        gap:20px;
    }

    nav{

        flex-wrap:wrap;

        justify-content:center;
    }

    .hero{

        padding:90px 20px;
    }

    .hero h1{

        font-size:2.2rem;
    }

    .document{

        margin:30px 15px;

        padding:35px 25px;
    }

    #theme-toggle{

        top:15px;

        right:15px;
    }

}