:root {
    --primary: #6c5ce7;
    --secondary: #a29bfe;
    --bg-dark: #0f0c29;
    --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #b2bec3;
    --accent: #00cec9;
}

.text-xs {
    font-size: 0.75rem;
}

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

.flex {
    display: flex !important;
}

.items-center {
    align-items: center !important;
}

.justify-between {
    justify-content: space-between !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-4 {
    gap: 1rem !important;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-dark);
    background-image: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 30%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 206, 201, 0.15) 0%, transparent 50%);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 40px;
    border-radius: 24px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-main);
    font-weight: 700;
}

p,
ul {
    margin-bottom: 15px;
    color: var(--text-muted);
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary);
}

.sticky-back-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: sticky;
    top: 4.5rem;
    /* Positioned below the sticky header */
    z-index: 40;
    padding: 10px 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-back-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.nav-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Header */
.legal-header {
    padding: 0.75rem 1.5rem;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    font-weight: 900;
}

.logo span {
    background: linear-gradient(to right, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.portal-link-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.portal-link-icon:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    margin-top: 4rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

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

.footer-links a {
    color: #64748b;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.privacy-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 9999px;
    color: rgba(199, 210, 254, 0.8);
    font-size: 0.75rem;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropbtn {
    background: transparent;
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    transition: all 0.3s;
    font-family: inherit;
}

.lang-dropbtn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background-color: rgba(20, 20, 40, 0.95);
    min-width: 140px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    border-radius: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
}

.lang-dropdown-content::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: 0;
    width: 100%;
    height: 1rem;
}

.lang-dropdown-content.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-dropdown-content a {
    color: var(--text-muted);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.2s;
    border-radius: 8px;
    font-size: 0.9rem;
}

.lang-dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.lang-dropdown-content a.active {
    background-color: rgba(108, 92, 231, 0.2);
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 600px) {
    .glass-panel {
        padding: 24px;
    }

    h1 {
        font-size: 2rem;
    }

    /* Hide logo text on small screens like main app */
    .logo span {
        display: none;
    }

    /* Hide language text on small screens */
    .lang-text {
        display: none;
    }
}