@font-face {
    font-family: 'Plateia';
    src: url('Plateia.ttf') format('truetype');
    font-display: swap;
}

body {
    background-color: #0F1410;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 17.6px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body h1,
body h2,
body h3 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.font-segoe {
    font-family: 'Plateia', 'Inter', sans-serif;
}

::-webkit-scrollbar {
    width: 8px;
    background: #0F1410;
}

::-webkit-scrollbar-thumb {
    background: #344733;
    border-radius: 4px;
}

.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #84CC16, #22D3EE);
}

.section-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9CA3AF;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 4px 12px;
    margin-bottom: 24px;
}

.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    margin: 0;
}

nav a[href="/app"] {
    white-space: nowrap;
}

.legal-email-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: 1px solid rgba(132, 204, 22, 0.35);
    border-radius: 999px;
    color: #E5E7EB;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    white-space: nowrap;
    transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.legal-email-button i {
    color: #84CC16;
    font-size: 1.125rem;
}

.legal-email-button:hover {
    color: #FFFFFF;
    border-color: rgba(132, 204, 22, 0.7);
    background: rgba(132, 204, 22, 0.08);
    box-shadow: 0 0 24px rgba(132, 204, 22, 0.1);
}

.legal-shell {
    position: relative;
    overflow: hidden;
    padding-top: 10rem;
    padding-bottom: 6rem;
}

.legal-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top left, rgba(132, 204, 22, 0.14), transparent 38rem),
        radial-gradient(ellipse at 80% 8rem, rgba(34, 211, 238, 0.10), transparent 34rem),
        linear-gradient(to bottom, rgba(15, 20, 16, 0.62), #0F1410 32rem);
    pointer-events: none;
}

.legal-panel {
    background: rgba(25, 33, 26, 0.72);
    border: 1px solid rgba(132, 204, 22, 0.18);
    border-radius: 16px;
    box-shadow: 0 0 60px rgba(132, 204, 22, 0.06);
    backdrop-filter: blur(10px);
}

.legal-prose h2 {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #344733;
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}

.legal-prose h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.legal-prose h2 .num {
    min-width: 2.5rem;
    color: #84CC16;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.legal-prose p,
.legal-prose li {
    color: #9CA3AF;
    font-size: 15px;
    line-height: 1.75;
}

.legal-prose p {
    margin-bottom: 0.9rem;
}

.legal-prose ul {
    list-style: none;
    margin: 0.5rem 0 1rem;
    padding-left: 0;
}

.legal-prose li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

.legal-prose li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.82rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #84CC16;
    box-shadow: 0 0 16px rgba(132, 204, 22, 0.45);
}

.legal-prose a {
    color: #84CC16;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-prose strong {
    color: #FFFFFF;
    font-weight: 600;
}

.legal-table {
    width: 100%;
    margin: 1.25rem 0 1.75rem;
    overflow: hidden;
    border: 1px solid #344733;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
}

.legal-table th,
.legal-table td {
    padding: 0.875rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #344733;
    color: #9CA3AF;
    font-size: 13px;
    line-height: 1.6;
}

.legal-table th {
    background: rgba(36, 48, 37, 0.72);
    color: #FFFFFF;
    font-weight: 700;
}

.legal-table tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 640px) {
    .legal-shell {
        padding-top: 8rem;
    }

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

@media (max-width: 480px) {
    .legal-nav-actions {
        gap: 0.5rem;
    }

    .legal-discord-link {
        display: none;
    }

    .legal-email-button {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
    }

    .legal-email-button span {
        display: none;
    }

    nav .font-segoe {
        font-size: 1.25rem;
    }

    nav a[href="/app"] {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
