/* Legal pages shared styles — matches main site dark theme */

html, body {
    margin: 0;
    padding: 0;
    background: #121212;
    color: #e0e0e0;
    font-family: "Inter", sans-serif;
}

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

/* Navbar (shared with main site) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: #121212;
    border-bottom: 1px solid #2a2a2a;
    z-index: 100;
}

.navbar a { display: flex; }
.navbar img { height: 28px; }

.button {
    display: inline-flex;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    border: 1px solid #6eaaff;
    background: transparent;
    color: #6eaaff;
    font-family: "Reddit Mono", monospace;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.button:hover { background: rgba(110, 170, 255, 0.12); }

.button-primary {
    background: #6eaaff;
    color: #121212;
}

.button-primary:hover { background: #8bbfff; }

.nav-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-contact { display: inline-flex; }

/* Burger menu */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: #c2c2c2;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #121212;
    z-index: 99;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.mobile-menu.open { display: flex; }
.mobile-menu .button { font-size: 18px; padding: 12px 24px; }

/* Legal layout */
.legal-layout {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 80px;
    min-height: 100vh;
}

/* Sidebar */
.legal-sidebar {
    position: sticky;
    top: 80px;
    width: 240px;
    min-width: 240px;
    padding: 32px 24px;
    align-self: flex-start;
    border-right: 1px solid #2a2a2a;
}

.legal-sidebar h3 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin: 0 0 16px 0;
}

.legal-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legal-sidebar nav a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
    line-height: 1.4;
}

.legal-sidebar nav a:hover {
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.04);
}

.legal-sidebar nav a.active {
    color: #6eaaff;
    background: rgba(110, 170, 255, 0.08);
}

/* Content */
.legal-content {
    flex: 1;
    padding: 32px 48px 80px 48px;
    max-width: 800px;
    line-height: 1.7;
}

.legal-content h1 {
    font-size: 28px;
    font-weight: 700;
    color: #f0f0f0;
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.legal-meta {
    font-size: 13px;
    color: #777;
    margin: 0 0 32px 0;
}

.legal-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: #e8e8e8;
    margin: 40px 0 16px 0;
    padding-top: 16px;
    border-top: 1px solid #2a2a2a;
}

.legal-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: #ccc;
    margin: 24px 0 8px 0;
}

.legal-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #bbb;
    margin: 20px 0 8px 0;
}

.legal-content p {
    font-size: 14px;
    color: #bbb;
    margin: 0 0 12px 0;
}

.legal-content ul, .legal-content ol {
    font-size: 14px;
    color: #bbb;
    padding-left: 24px;
    margin: 0 0 12px 0;
}

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

.legal-content strong {
    color: #ddd;
}

.legal-content a {
    color: #6eaaff;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px 0;
    font-size: 13px;
}

.legal-content th {
    text-align: left;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid #2a2a2a;
    color: #ccc;
    font-weight: 600;
}

.legal-content td {
    padding: 10px 12px;
    border-bottom: 1px solid #1e1e1e;
    color: #bbb;
    vertical-align: top;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar { padding: 12px 20px; }
    .nav-contact { display: none; }
    .burger { display: flex; }

    .legal-layout {
        flex-direction: column;
        padding-top: 60px;
    }

    .legal-sidebar {
        position: static;
        width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid #2a2a2a;
        padding: 20px 20px 16px 20px;
    }

    .legal-sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }

    .legal-sidebar nav a {
        font-size: 13px;
        padding: 6px 10px;
    }

    .legal-content {
        padding: 24px 20px 60px 20px;
    }

    .legal-content h1 { font-size: 24px; }
    .legal-content h2 { font-size: 18px; }

    .legal-content table {
        display: block;
        overflow-x: auto;
    }
}
