/* Shared styles for the legal pages and the 404 page. */
:root {
    --bg-void: #030508;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --text-title: #f8fafc;
    --text-body: #94a3b8;
    --text-muted: #64748b;
    --cyan-primary: #38bdf8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg-void);
    color: var(--text-body);
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--cyan-primary);
}

.legal {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.back {
    display: inline-block;
    margin-bottom: 24px;
    text-decoration: none;
    font-weight: 600;
}

.lang-switch {
    font-size: 13px;
    color: var(--text-muted);
}

article {
    padding-top: 24px;
}

article + article {
    margin-top: 48px;
    border-top: 1px solid var(--border-subtle);
}

h1 {
    color: var(--text-title);
    font-size: 26px;
    line-height: 1.3;
    margin: 0 0 6px;
}

h2 {
    color: var(--text-title);
    font-size: 17px;
    margin: 32px 0 8px;
}

.updated {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 0;
}

ul {
    padding-left: 20px;
}

strong {
    color: var(--text-title);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    text-align: left;
    vertical-align: top;
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-subtle);
}

th {
    color: var(--text-title);
}

.notfound {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.notfound h1 {
    font-size: 64px;
    margin-bottom: 8px;
}

@media (max-width: 560px) {
    th, td {
        display: block;
        padding: 6px 0;
    }

    thead {
        display: none;
    }

    tr {
        display: block;
        padding: 8px 0;
        border-bottom: 1px solid var(--border-subtle);
    }

    td {
        border-bottom: none;
    }
}
