:root {
    --bg: #0a1121;
    --bg-alt: #111c2f;
    --text: #dbe4ee;
    --text-muted: #9fb0c2;
    --title: #ffffff;
    --accent: #00adb6;
    --card: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
    color: var(--text);
}

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

a:hover {
    text-decoration: underline;
}

.legal-wrapper {
    min-height: 100vh;
    padding: 40px 16px 56px;
}

.legal-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.legal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--title);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.home-link {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.legal-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 28px 22px;
    backdrop-filter: blur(8px);
}

.legal-title {
    margin: 0 0 10px;
    color: var(--title);
    font-size: 1.9rem;
    line-height: 1.2;
}

.legal-meta {
    margin: 0 0 22px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.legal-section h2 {
    margin: 0 0 8px;
    color: var(--title);
    font-size: 1.15rem;
}

.legal-section p {
    margin: 0;
    line-height: 1.7;
}

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

.legal-list {
    margin: 8px 0 0;
    padding-left: 18px;
    line-height: 1.7;
}

.legal-list li + li {
    margin-top: 6px;
}

.legal-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.93rem;
}

@media (max-width: 640px) {
    .legal-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .legal-card {
        padding: 20px 16px;
    }

    .legal-title {
        font-size: 1.55rem;
    }
}
