/* Legal Pages (Terms, Privacy) - Using Login Layout Style */

/* Override card styling to be scrollable for legal content - maintain centering */
.gl-card {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

    .gl-card h2 {
        margin-top: 20px;
        margin-bottom: 8px;
    }

.gl-legal-updated {
    color: #6b7280;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 24px;
}

.gl-legal-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

    .gl-legal-content section {
        margin-bottom: 24px;
    }

        .gl-legal-content section h3 {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 8px;
            color: #1f2937;
        }

        .gl-legal-content section p {
            font-size: 0.95rem;
            line-height: 1.6;
            color: #374151;
            margin: 0;
            text-align: justify;
        }

.gl-legal-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

    /* Back button styled as primary (green, like Google button) */
    .gl-legal-footer .gl-google-btn {
        display: inline-block;
        width: auto !important;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
        color: white !important;
        padding: 12px 32px !important;
        margin: 0 auto !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
    }

        .gl-legal-footer .gl-google-btn:hover {
            background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
            transform: translateY(-2px) !important;
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
        }

/* Scrollbar styling for legal content */
.gl-legal-content::-webkit-scrollbar {
    width: 6px;
}

.gl-legal-content::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

.gl-legal-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

    .gl-legal-content::-webkit-scrollbar-thumb:hover {
        background: #9ca3af;
    }

/* Mobile optimization */
@media (max-width: 768px) {
    .gl-card {
        max-height: 85vh;
        width: 360px !important;
    }

    .gl-legal-content section h3 {
        font-size: 0.95rem;
    }

    .gl-legal-content section p {
        font-size: 0.9rem;
        text-align: left;
    }
}

/* Tablet optimization */
@media (min-width: 769px) and (max-width:de 1024px) {
    .gl-card {
        max-height: 85vh;
        width: 540px !important;
    }

    .gl-legal-content section h3 {
        font-size: 1.1rem;
    }

    .gl-legal-content section p {
        font-size: 0.98rem;
    }
}

/* Desktop optimization */
@media (min-width: 1025px) {
    .gl-card {
        max-height: 85vh;
        width: 720px !important;
        padding: 52px 56px 44px !important;
    }

        .gl-card h2 {
            font-size: 1.75rem;
        }

    .gl-legal-updated {
        font-size: 1rem;
    }

    .gl-legal-content section h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .gl-legal-content section p {
        font-size: 1rem;
        line-height: 1.75;
    }
}
