:root{
    font-size: 62.5%;

    --bg: #131218;
    --surface: #18181a;
    --surface-2: #222228;

    --text: #f5f8fa;
    --text-muted: #a9adb5;

    --accent: rgb(201, 174, 22);
    --accent-hover: rgb(222, 194, 34);

    --border: rgba(255,255,255,.08);

    --radius-sm: 1rem;
    --radius-md: 2rem;
    --radius-lg: 3rem;

    --transition: .3s ease;

    --shadow-sm: 0 1rem 2.5rem rgba(0,0,0,.18);
    --shadow-md: 0 2rem 5rem rgba(0,0,0,.3);

    --gradient-main:
        linear-gradient(
            135deg,
            #18181a 0%,
            #252533 55%,
            rgb(201,174,22) 100%
        );
}

/* RESET */

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

html{
    scroll-behavior: smooth;
}

body{
    min-height: 100vh;
    cursor: default;
    overflow-x: hidden;
    background: radial-gradient(circle at top right, rgba(201,174,22,.08), transparent 35rem), var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.6rem;
    line-height: 1.7;
}

/* GENERAL CONTAINER */

.container{
    width: min(92%, 110rem);
    margin-inline: auto;
}

/* LEGAL PAGE */

.legal-page{
    position: relative;
    margin-top: 7rem;
    margin-bottom: 7rem;
    padding: 5rem;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Gold top line */

.legal-page::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: .4rem;
    background: var(--accent);
}

/* Decorative glow */

.legal-page::after{
    content: "";
    position: absolute;
    top: -15rem;
    right: -15rem;
    width: 32rem;
    height: 32rem;
    border-radius: 50%;
    background: rgba(201,174,22,.06);
    pointer-events: none;
}

/* HEADINGS */

.legal-page h1{
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-size: clamp(3.2rem, 6vw, 5.2rem);
    line-height: 1.15;
    letter-spacing: -.03em;
}

.legal-page h1::after{
    content: "";
    display: block;
    width: 7rem;
    height: .4rem;
    margin-top: 1.8rem;
    background: var(--accent);
    border-radius: 100rem;
}

.legal-page h2{
    position: relative;
    z-index: 1;
    margin-top: 4rem;
    margin-bottom: 1.4rem;
    color: var(--accent);
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.3;
}

.legal-page h3{
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 2rem;
}

/* PARAGRAPHS */

.legal-page p{
    position: relative;
    z-index: 1;
    max-width: 90rem;
    margin-bottom: 1.8rem;
    color: var(--text-muted);
    font-size: 1.65rem;
    line-height: 1.85;
}

.legal-page strong{
    color: var(--text);
}

/* LINKS */

.legal-page a{
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color var(--transition);
}

.legal-page a:hover{
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: .4rem;
}

.legal-page a:focus-visible{
    outline: .2rem solid var(--accent);
    outline-offset: .4rem;
    border-radius: .3rem;
}

/* LISTS */

.legal-page ul, .legal-page ol{
    position: relative;
    z-index: 1;
    margin: 1.5rem 0 2rem 2.5rem;
}

.legal-page li{
    margin-bottom: 1.2rem;
    padding-left: .6rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.legal-page li::marker{
    color: var(--accent);
}

/* SECTION DIVIDERS */

.legal-page h2:not(:first-of-type){
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

/* CONTACT PAGE LINKS */

.legal-page a[href^="mailto:"], .legal-page a[href*="x.com"]{
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.6rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: color var(--transition), border-color var(--transition), transform var(--transition), background var(--transition);
}

.legal-page a[href^="mailto:"]:hover, .legal-page a[href*="x.com"]:hover{
    color: var(--accent);
    text-decoration: none;
    background: rgba(201,174,22,.07);
    border-color: rgba(201,174,22,.45);
    transform: translateY(-.2rem);
}

/* OPTIONAL NOTICE BOX */

.legal-notice{
    margin: 3rem 0;
    padding: 2rem 2.2rem;
    color: var(--text-muted);
    background: rgba(201,174,22,.07);
    border: 1px solid rgba(201,174,22,.25);
    border-left: .5rem solid var(--accent);
    border-radius: var(--radius-sm);
}

/* OPTIONAL DATE */

.last-updated{
    display: inline-block;
    margin-bottom: 3rem;
    padding: .8rem 1.4rem;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 100rem;
    font-size: 1.35rem;
}

/* OPTIONAL BACK-HOME LINK */

.back-home{
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    padding: 1rem 1.6rem;
    color: var(--text);
    background: rgba(24,24,26,.9);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(1.4rem);
    text-decoration: none;
    transition: color var(--transition), border-color var(--transition), transform var(--transition);
}

.back-home:hover{
    color: var(--accent);
    border-color: rgba(201,174,22,.4);
    transform: translateY(-.2rem);
}

/* OPTIONAL FOOTER */

.landing-footer{
    padding: 7rem 0 3rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.footer-grid{
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 5rem;
}

.footer-grid h3{
    margin-bottom: 1.2rem;
    font-size: 2.3rem;
}

.footer-grid h4{
    margin-bottom: 2rem;
    color: var(--text);
}

.footer-grid p{
    margin-top: 1.2rem;
    color: var(--text-muted);
}

.footer-grid a{
    display: block;
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-grid a:hover{
    color: var(--accent);
}

.copyright{
    margin-top: 5rem;
    padding-top: 3rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 1.4rem;
}

/* TEXT SELECTION */

::selection{
    background: var(--accent);
    color: #111;
}

/* SCROLLBAR */

::-webkit-scrollbar{
    width: 1rem;
}

::-webkit-scrollbar-track{
    background: var(--bg);
}

::-webkit-scrollbar-thumb{
    background: var(--surface-2);
    border: .2rem solid var(--bg);
    border-radius: 100rem;
}

::-webkit-scrollbar-thumb:hover{
    background: var(--accent);
}

/* RESPONSIVE */

@media(max-width: 900px){
    .footer-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px){
    :root{
        font-size: 56%;
    }

    .legal-page{
        margin-top: 4rem;
        margin-bottom: 4rem;
        padding: 3.5rem 2.5rem;
        border-radius: var(--radius-md);
    }

    .legal-page h2{
        margin-top: 3.2rem;
    }

    .back-home{
        position: static;
        width: fit-content;
        margin: 2rem;
    }

    .footer-grid{
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
}

@media(max-width: 480px){
    :root{
        font-size: 52%;
    }
  
    .container{
        width: min(94%, 110rem);
    }

    .legal-page{
        padding: 3rem 2rem;
    }

    .legal-page p, .legal-page li{
        font-size: 1.6rem;
    }
}
