/* Copyright (c) 2026 BrandRider. All rights reserved. */

:root {
    --bg-color: #0a0a0f;
    --text-color: #ffffff;
    --accent-color: #00d4ff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --muted-color: rgba(255, 255, 255, 0.72);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.3;
}

.bg-animation::before,
.bg-animation::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: float 20s infinite ease-in-out;
}

.bg-animation::before {
    width: 420px;
    height: 420px;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    top: -120px;
    left: -120px;
}

.bg-animation::after {
    width: 420px;
    height: 420px;
    background: linear-gradient(135deg, #8800ff, #ff0055);
    right: -120px;
    bottom: -120px;
    animation-delay: 10s;
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -40px) scale(1.08);
    }

    50% {
        transform: translate(-30px, 30px) scale(0.92);
    }

    75% {
        transform: translate(20px, 50px) scale(1.04);
    }
}

.page-shell {
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 48px 20px 32px;
}

.legal-container {
    width: min(960px, 100%);
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    padding: 40px;
}

.page-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.18);
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.page-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}

.page-intro {
    color: var(--muted-color);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 760px;
}

.language-selector-block {
    min-width: 120px;
}

.language-select {
    min-width: 120px;
    background: rgba(15, 15, 20, 0.85);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(15, 15, 20, 0.85);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(8px);
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 25px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.language-select:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.language-select option {
    background: #0a0a0f;
    color: #fff;
    padding: 10px;
}

.markdown-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 28px;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: 14px;
    margin-top: 24px;
    line-height: 1.2;
}

.markdown-content h1 {
    margin-top: 0;
    font-size: 2rem;
}

.markdown-content h2 {
    font-size: 1.45rem;
}

.markdown-content p,
.markdown-content li {
    color: var(--muted-color);
    line-height: 1.9;
}

.markdown-content p {
    margin-bottom: 16px;
}

.markdown-content ul {
    display: grid;
    gap: 12px;
    padding-left: 22px;
    margin-bottom: 16px;
}

.markdown-content code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 6px;
    font-family: Consolas, monospace;
    color: #ffffff;
}

.markdown-content a {
    color: var(--accent-color);
}

.markdown-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    margin: 24px 0;
}

.markdown-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.markdown-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.markdown-table-wrapper th,
.markdown-table-wrapper td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted-color);
    line-height: 1.7;
}

.markdown-table-wrapper th {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
}

.markdown-table-wrapper tbody tr:last-child td {
    border-bottom: none;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.action-link.primary {
    background: linear-gradient(135deg, #8800ff 0%, #ff0055 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(136, 0, 255, 0.3);
}

.action-link.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(136, 0, 255, 0.45);
}

.action-link.secondary {
    color: rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-link.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.footer {
    text-align: center;
    padding: 16px 20px 28px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    width: 100%;
    position: relative;
    z-index: 10;
}

.footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .page-shell {
        padding: 32px 16px 24px;
    }

    .legal-container {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .markdown-card {
        padding: 22px 18px;
    }
}
