/* legal.css — Shared styles for SUDO EGO legal pages */

:root {
    --bg-deep: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --accent-cyan: #00d4ff;
    --accent-purple: #a855f7;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-subtle: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.7;
}

/* Starfield background */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(0,212,255,0.5), transparent),
        radial-gradient(1px 1px at 230px 80px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 300px 200px, rgba(168,85,247,0.4), transparent);
    background-size: 400px 400px;
    opacity: 0.6;
}

.content {
    position: relative;
    z-index: 10;
}

/* Navigation */
nav {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
}

.logo {
    font-family: 'Space Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--text-primary);
}

/* Main content */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

/* Page header */
.page-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Language switcher */
.lang-switch {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.75rem;
}

.lang-switch a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.lang-switch a:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-switch a.active {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    pointer-events: none;
}

/* Sections */
section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h3 {
    font-size: 1.15rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

h4 {
    font-size: 1rem;
    margin: 1.25rem 0 0.6rem;
    color: var(--text-primary);
    font-weight: 600;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

ul, ol {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Highlight box */
.highlight-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--accent-cyan);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.highlight-box p {
    margin-bottom: 0;
}

.highlight-box.important {
    border-left-color: var(--accent-purple);
}

/* Draft warning */
.draft-warning {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-left: 4px solid var(--accent-purple);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.draft-warning p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.draft-warning strong {
    color: var(--accent-purple);
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

th {
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--border-subtle);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.9rem;
    vertical-align: top;
}

tr:last-child td {
    border-bottom: none;
}

/* Compact info table (2 columns, no header) */
table.info-table th {
    display: none;
}

table.info-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    width: 200px;
}

/* Table of Contents */
.toc {
    margin-bottom: 3rem;
}

.toc summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    padding: 0.75rem 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc summary::before {
    content: '\25B6';
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.toc[open] summary::before {
    transform: rotate(90deg);
}

.toc ol {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.toc li {
    margin-bottom: 0.35rem;
}

.toc a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.toc a:hover {
    color: var(--accent-cyan);
}

/* Code */
code {
    font-family: 'Space Mono', monospace;
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--accent-cyan);
}

/* Section divider */
hr {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 3rem 0;
}

/* Contact box */
.contact-box {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.contact-box h2 {
    margin-bottom: 0.75rem;
}

.contact-box a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
}

.contact-box a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 2rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

footer a:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    main {
        padding: 3rem 1.5rem 4rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .contact-box {
        padding: 1.5rem;
    }

    table {
        min-width: 400px;
    }

    th, td {
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
    }

    table.info-table td:first-child {
        width: 140px;
    }
}
