/* ==========================================================================
   SWARAG LEGAL & DOCUMENTATION PAGES STYLESHEET
   ========================================================================== */
:root {
    --bg-dark: #0a0b10;
    --bg-card: rgba(18, 20, 29, 0.85);
    --border-color: rgba(255, 255, 255, 0.1);
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --accent: #10b981;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.legal-header {
    background: rgba(10, 11, 16, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.legal-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.legal-logo span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-back-home:hover,
.btn-back-home:focus-visible {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
    outline: 2px solid var(--primary);
}

.legal-container {
    max-width: 900px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    flex: 1;
}

.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
}

.legal-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.last-updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    margin: 1.8rem 0 0.8rem 0;
    color: #e5e7eb;
}

p {
    margin-bottom: 1rem;
    color: #d1d5db;
    font-size: 0.98rem;
}

ul {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
    color: #d1d5db;
}

li {
    margin-bottom: 0.4rem;
}

a {
    color: #818cf8;
    text-decoration: underline;
}

a:hover {
    color: #c7d2fe;
}

.highlight-box {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    padding: 1.2rem;
    margin: 1.5rem 0;
}

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

.legal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: auto;
}

.legal-footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.legal-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.legal-footer-links a:hover,
.legal-footer-links a:focus-visible {
    color: var(--text-main);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .legal-header {
        padding: 0.8rem 1rem;
    }
    .legal-card {
        padding: 1.5rem;
    }
    h1 {
        font-size: 1.75rem;
    }
}
