:root {
    --bg-color: #111318;
    --surface-color: #1d2024;
    --surface-hover-color: #282a2f;
    --on-bg-color: #e2e2e8;
    --on-surface-color: #e2e2e8;
    --on-surface-variant-color: #c6c5d7;
    --accent-color: #b7c1ff;
    --primary-color: #bec2ff;
    --outline-color: #8f8fa0;
    --border-color: rgba(255, 255, 255, 0.05);
    --selection-bg: rgba(183, 193, 255, 0.3);
}

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

body {
    background-color: var(--bg-color);
    color: var(--on-bg-color);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--selection-bg);
    color: white;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

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

::-webkit-scrollbar-thumb:hover {
    background: #454655;
}

/* Layout */
.legal-main {
    flex: 1;
    overflow-y: auto;
    padding: 32px 24px 128px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.legal-container {
    max-width: 48rem; /* max-w-3xl */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 48px; /* space-y-12 */
}

/* Header */
.legal-header {
    text-align: center;
    margin-bottom: 48px;
}

.legal-title {
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.legal-last-updated {
    font-size: 12px;
    line-height: 16px;
    color: var(--outline-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

/* Sections */
.legal-content {
    display: flex;
    flex-direction: column;
    gap: 24px; /* space-y-6 */
}

.legal-card {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.legal-card:hover {
    background-color: var(--surface-hover-color);
}

.legal-card-glow {
    position: absolute;
    inset: 0;
    background-color: rgba(183, 193, 255, 0.05);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.legal-card:hover .legal-card-glow {
    opacity: 1;
}

.legal-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
    z-index: 10;
}

.legal-section-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: -0.05em;
}

.legal-section-title {
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
    color: var(--accent-color);
}

.legal-section-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--on-surface-variant-color);
    position: relative;
    z-index: 10;
}

.legal-section-body p {
    margin-bottom: 16px;
}

.legal-section-body p:last-child {
    margin-bottom: 0;
}

.legal-section-body ul {
    list-style: disc;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-section-body li strong {
    color: white;
    font-weight: 600;
}

/* Links */
.legal-body-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.legal-body-link:hover {
    text-decoration: underline;
}

/* Footer */
.legal-footer {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    padding-bottom: 48px;
}

.legal-footer-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--outline-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s ease;
}

.legal-footer-link:hover {
    color: white;
}

.legal-footer-link.active {
    color: var(--accent-color);
    pointer-events: none;
}
