/* KenOmega.io — Terms of Service (matches ken-whitepaper aesthetic) */

:root {
    --bg: #000000;
    --panel: rgba(5, 10, 20, 0.86);
    --panel2: rgba(5, 10, 20, 0.72);
    --border: rgba(0, 170, 255, 0.22);
    --border2: rgba(0, 255, 255, 0.18);
    --text: #e0e0e0;
    --muted: #c9c9c9;
    --muted2: #a9a9a9;
    --blue: #00aaff;
    --blue2: #7fd3ff;
}

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

html {
    max-width: 100%;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Share Tech Mono', monospace;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    padding-top: 82px; /* room for fixed navbar */
}

header {
    background-color: #050a14;
    border-bottom: 1px solid rgba(0, 170, 255, 0.4);
    padding: 15px 3%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    min-height: 50px;
}

.logo a {
    font-size: 24px;
    color: var(--blue);
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.7);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links li a {
    color: #c0c0c0;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
    padding: 5px 0;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.nav-links li a:hover,
.nav-links li a.is-active {
    color: var(--blue);
    text-shadow: 0 0 8px rgba(0, 170, 255, 0.8);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    position: relative;
    z-index: 1100;
    padding: 12px;
    margin-right: -8px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--blue);
    transition: all 0.25s ease-in-out;
    pointer-events: none;
}

main {
    padding: 0 5%;
    max-width: 100%;
    overflow-x: hidden;
}

.legal-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 34px 0 56px;
    width: 100%;
    overflow-x: hidden;
}

.hero-card {
    background: var(--panel);
    border: 1px solid var(--border2);
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(0, 170, 255, 0.12);
    padding: 26px 22px;
}

.hero-title {
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--blue);
    margin-bottom: 8px;
}

.hero-sub {
    color: #c0c0c0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: 0.2px;
    font-size: 15px;
    line-height: 1.65;
}

.legal-inline-sep {
    display: inline-block;
    margin: 0 0.55rem;
    opacity: 0.7;
}

.badge-row {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    border: 1px solid rgba(0, 255, 255, 0.18);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.24);
    font-size: 13px;
    color: var(--text);
}

.badge strong { color: var(--blue); font-weight: 700; }

.legal-section {
    margin-top: 18px;
    background: var(--panel2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    max-width: 100%;
    overflow-x: hidden;
    scroll-margin-top: 84px;
}

.legal-section h2 {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--blue);
    margin-bottom: 10px;
    font-size: 18px;
}

.legal-section p,
.legal-section li {
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--muted);
    font-size: 15px;
}

.legal-section p + p {
    margin-top: 10px;
}

.legal-section ul {
    margin: 10px 0 0 18px;
}

.legal-section li {
    margin-bottom: 6px;
}

.legal-section ul ul {
    margin-top: 6px;
    margin-bottom: 4px;
}

.legal-strong {
    color: var(--text);
    font-weight: 700;
}

.legal-section a {
    color: var(--blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 170, 255, 0.35);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.legal-section a:visited,
.legal-section a:active {
    color: var(--blue);
}

.legal-section a:hover {
    color: var(--blue2);
    border-bottom-color: var(--blue2);
}

footer {
    text-align: center;
    padding: 18px 0;
    color: #555;
    font-size: 13px;
}

@media screen and (max-width: 992px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #050a14;
        border-top: 1px solid rgba(0, 170, 255, 0.4);
        padding: 10px 0;
        transform: none;
        z-index: 1050;
        gap: 0;
    }

    .nav-links.active { display: flex; }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 8px 0;
    }

    .hamburger { display: flex; }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .legal-wrap {
        padding: 24px 0 48px;
    }

    .hero-card,
    .legal-section {
        padding: 16px 12px;
    }

    .hero-title {
        font-size: 22px;
    }

    .legal-section h2 {
        font-size: 16px;
    }

    .legal-section p,
    .legal-section li {
        font-size: 14px;
    }
}
